add testcase for comments in fields (grr, nettle)

feature/tap-sh
William Pitcock 2015-04-20 09:19:33 -05:00
parent 853b7e9849
commit b700a6cde6
2 changed files with 12 additions and 0 deletions

View File

@ -0,0 +1,9 @@
Name: comments-in-fields
Description: Comments in fields test case
URL: http://pkgconf.org/
Version: 0
Requires: # foo
Requires.private: foo
Libs: # -lbar
Libs.private: -lbar
Cflags: -I${includedir}

View File

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