testsuite: add a test for tilde quoting

pull/48/head
William Pitcock 2013-02-24 07:04:15 -06:00
parent 2936927008
commit 9dc3cbc784
2 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,5 @@
Name: tilde
Description: Another pkg-config test
Version: 1.3
Libs: -L~ -ltilde
Cflags: -I~

View File

@ -118,6 +118,10 @@ 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'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --libs tilde-quoting" \
'-L~'
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags tilde-quoting" \
'-I~'
# 5) tests for other regressions
run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --variable=includedir foo" \