From f3d2a5f0e786f79de44543dc61f4fa2db398cba6 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sun, 1 Jul 2012 21:24:53 -0500 Subject: [PATCH] testsuite: add tests for --atleast-version (issue #20) --- tests/run.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/run.sh b/tests/run.sh index 054e808..8d3acfe 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -98,6 +98,12 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --libs conflicts; echo \$?" \ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --ignore-conflicts --libs conflicts; echo \$?" \ '-lconflicts' '0' +# 9) tests for --atleast-version +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --atleast-version 1.0 foo; echo \$?" \ + '0' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --atleast-version 2.0 foo; echo \$?" \ + '1' + if [ ${failed} -gt 0 ]; then echo "${failed} of ${done} tests failed. See output for details." >&2 exit 1