tests: add test for variable case-sensitivity (ref #60)

feature/tap-sh
William Pitcock 2014-02-10 23:50:45 +00:00
parent cd6d52b965
commit 8cf58d7ceb
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,7 @@
foo=3
Foo=4
Name: case-sensitivity
Description: Package for testing case-sensitivity
Version: 1
Requires: foo < ${foo}

View File

@ -237,6 +237,11 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'nonexi
run_test "PKG_CONFIG_PATH='${selfdir}/lib2' ${1} ${selfdir}/lib3/bar.pc --cflags" \
'-fPIC -I/usr/include/foo'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=foo case-sensitivity" \
"3"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=Foo case-sensitivity" \
"4"
# 10) tests for internal getopt implementation with options at the end
if [ "x@STRICT_MODE@" = "xno" ]; then
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} foo --libs" \