From 9dc3cbc78420e49ac350f4f418c92e18fa2c2243 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 24 Feb 2013 07:04:15 -0600 Subject: [PATCH] testsuite: add a test for tilde quoting --- tests/lib1/tilde-quoting.pc | 5 +++++ tests/run.sh.in | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 tests/lib1/tilde-quoting.pc diff --git a/tests/lib1/tilde-quoting.pc b/tests/lib1/tilde-quoting.pc new file mode 100644 index 0000000..4d37978 --- /dev/null +++ b/tests/lib1/tilde-quoting.pc @@ -0,0 +1,5 @@ +Name: tilde +Description: Another pkg-config test +Version: 1.3 +Libs: -L~ -ltilde +Cflags: -I~ diff --git a/tests/run.sh.in b/tests/run.sh.in index f35868f..e514e69 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -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" \