tests: add test for argv-parse bug causing audacious build failure

feature/tap-sh
William Pitcock 2012-05-05 17:43:53 +00:00
parent e93b4a6c65
commit 4e95401318
2 changed files with 13 additions and 1 deletions

10
tests/lib1/argv-parse.pc Normal file
View File

@ -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:

View File

@ -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