From b700a6cde65decd5d1cb23e697b21881d74c7c45 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 20 Apr 2015 09:19:33 -0500 Subject: [PATCH] add testcase for comments in fields (grr, nettle) --- tests/lib1/comments-in-fields.pc | 9 +++++++++ tests/run.sh.in | 3 +++ 2 files changed, 12 insertions(+) create mode 100644 tests/lib1/comments-in-fields.pc 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" \