From 4e954013180c520a9699b978d8193242d2a95e6e Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 5 May 2012 17:43:53 +0000 Subject: [PATCH] tests: add test for argv-parse bug causing audacious build failure --- tests/lib1/argv-parse.pc | 10 ++++++++++ tests/run.sh | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 tests/lib1/argv-parse.pc diff --git a/tests/lib1/argv-parse.pc b/tests/lib1/argv-parse.pc new file mode 100644 index 0000000..08999b5 --- /dev/null +++ b/tests/lib1/argv-parse.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: argv-parse +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -llib-3 -llib-1 -llib-2 -lpthread +Cflags: diff --git a/tests/run.sh b/tests/run.sh index 8a5bad9..7d8d837 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -62,9 +62,11 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs --cflags baz" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --static --libs baz" \ '-lfoo' '-lbaz' '-lzee' -# 4) tests for DOS line-endings +# 4) tests for parser bugs run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs dos-lineendings" \ '-L/usr/lib/dos-lineendings -ldos-lineendings' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs argv-parse" \ + '-llib-2 -lpthread' if [ ${failed} -gt 0 ]; then echo "${failed} of ${done} tests failed. See output for details." >&2