From 1dc28ba666b5dac999b7aecda92654e59ab282c2 Mon Sep 17 00:00:00 2001 From: Baptiste Daroussin Date: Thu, 23 Apr 2015 21:45:26 +0200 Subject: [PATCH] testsuite: regression test for parsing comments Add a test case about a regression that happened when parsing comments (bug #75) --- tests/lib1/comments.pc | 6 ++++++ tests/run.sh.in | 3 +++ 2 files changed, 9 insertions(+) create mode 100644 tests/lib1/comments.pc diff --git a/tests/lib1/comments.pc b/tests/lib1/comments.pc new file mode 100644 index 0000000..be83b3e --- /dev/null +++ b/tests/lib1/comments.pc @@ -0,0 +1,6 @@ +Name: comments +Description: Portable CD-ROM I/O library +Version: 0 +#Requires: bar-2.0 +Libs: -lfoo +Cflags: -I${includedir} diff --git a/tests/run.sh.in b/tests/run.sh.in index a505fcd..aeeee07 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -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" \ "-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" \ '-L/sysroot/lib -lfoo' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' PKG_CONFIG_SYSROOT_DIR='/sysroot2' ${1} --libs sysroot-dir" \