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