diff --git a/tests/lib1/comments-in-fields.pc b/tests/lib1/comments-in-fields.pc new file mode 100644 index 0000000..bff4006 --- /dev/null +++ b/tests/lib1/comments-in-fields.pc @@ -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} diff --git a/tests/run.sh.in b/tests/run.sh.in index befa89a..a505fcd 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -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" \