From c544e9e052b54e038c0002da2ab2c34c034a6cdd Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Wed, 25 Jul 2012 17:07:34 -0500 Subject: [PATCH] tests: add test for argv-parse splitting issue with filenames --- tests/lib1/argv-parse-2.pc | 10 ++++++++++ tests/run.sh.in | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 tests/lib1/argv-parse-2.pc diff --git a/tests/lib1/argv-parse-2.pc b/tests/lib1/argv-parse-2.pc new file mode 100644 index 0000000..5b68e86 --- /dev/null +++ b/tests/lib1/argv-parse-2.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: argv-parse-2 +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -llib-1 -pthread ${libdir}/lib2.so +Cflags: diff --git a/tests/run.sh.in b/tests/run.sh.in index 6bd3c26..fbef43e 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -85,6 +85,8 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs --cflags baz" \ '-lbaz' '-fPIC' '-I/usr/include/foo' run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --static --libs baz" \ '-lfoo' '-lbaz' '-lzee' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --static --libs argv-parse-2" \ + '-pthread ' # 4) tests for parser bugs run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs dos-lineendings" \