Add a test case showing a regression where PKG_CONFIG_PATH is ignored

feature/tap-sh
Baptiste Daroussin 2013-03-20 14:51:15 +01:00
parent 24207bd1d6
commit 1d0f990afa
2 changed files with 14 additions and 1 deletions

10
tests/lib3/bar.pc Normal file
View File

@ -0,0 +1,10 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: bar
Description: Another pkg-config test
Version: 1.3
Libs: -L${libdir} -lbar
Requires: foo

View File

@ -225,9 +225,12 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs framework-2" \
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'foo > 0.6.0 foo < 0.8.0'; echo \$?" \
'1'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'nonexisting foo <= 3'; echo \$?" \
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists --print-errors 'nonexisting foo <= 3'; echo \$?" \
'1'
run_test "PKG_CONFIG_PATH='${selfdir}/lib2' ${1} ${selfdir}/lib3/bar.pc --cflags'" \
'-fPIC -I/usr/include/foo'
# 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" \