From fd9f511afae325181a09588ce4bd1dc75260ecfc Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Mon, 25 Feb 2013 08:50:11 -0600 Subject: [PATCH] testsuite: add --exists test for nonexistant package --- tests/run.sh.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/run.sh.in b/tests/run.sh.in index 92a68dd..6ba296f 100644 --- a/tests/run.sh.in +++ b/tests/run.sh.in @@ -62,6 +62,8 @@ run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo > 1.2 bar '-lfoo' '-I/usr/include/foo' '-fPIC' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --cflags --libs 'foo' '>' '1.2'" \ '-lfoo' '-I/usr/include/foo' '-fPIC' +run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists nonexistant; echo \$?" \ + '1' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists 'foo > 1.2'; echo \$?" \ '0' run_test "PKG_CONFIG_PATH='${selfdir}/lib1' ${1} --exists 'foo > 1.2.3'; echo \$?" \