tests: add test for multiline crasher

feature/tap-sh
William Pitcock 2012-07-30 01:31:14 -05:00
parent c4d89f9cec
commit dde296193f
2 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,11 @@
prefix=/usr
exec_prefix=${prefix}
libdir=${prefix}/lib
includedir=${prefix}/include
Name: argv-parse-3
Description: A testing pkg-config file
Version: 1.2.3
Libs: -llib-1 \
-pthread ${libdir}/lib2.so
Cflags:

View File

@ -100,6 +100,8 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs argv-parse" \
'-llib-2 -lpthread'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists -foo; echo \$?" \
'1'
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs argv-parse-3" \
'-llib-1'
# 5) tests for other regressions
run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --variable=includedir foo" \