testsuite: regression test for parsing comments

Add a test case about a regression that happened when parsing comments
(bug #75)
pull/81/head
Baptiste Daroussin 2015-04-23 21:45:26 +02:00
parent 663d45dffc
commit 1dc28ba666
2 changed files with 9 additions and 0 deletions

6
tests/lib1/comments.pc Normal file
View File

@ -0,0 +1,6 @@
Name: comments
Description: Portable CD-ROM I/O library
Version: 0
#Requires: bar-2.0
Libs: -lfoo
Cflags: -I${includedir}

View File

@ -255,6 +255,9 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=Foo case-sensitivity
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs comments-in-fields" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs comments-in-fields" \
"-lfoo" "-lfoo"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs comments" \
"-lfoo"
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/sysroot' ${1} --libs sysroot-dir" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/sysroot' ${1} --libs sysroot-dir" \
'-L/sysroot/lib -lfoo' '-L/sysroot/lib -lfoo'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/sysroot2' ${1} --libs sysroot-dir" \ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/sysroot2' ${1} --libs sysroot-dir" \