summaryrefslogtreecommitdiff
path: root/check/check-cmd-options
diff options
context:
space:
mode:
Diffstat (limited to 'check/check-cmd-options')
-rwxr-xr-xcheck/check-cmd-options17
1 files changed, 9 insertions, 8 deletions
diff --git a/check/check-cmd-options b/check/check-cmd-options
index 8b5ef4c..5f94cf1 100755
--- a/check/check-cmd-options
+++ b/check/check-cmd-options
@@ -4,25 +4,26 @@ set -e
. ${srcdir}/common
+# non-existent option should fail
+EXPECT_RETURN=1
+RESULT="Unknown option --blah"
+run_test --blah
+
# all of these should fail, but when '=' or ' ' aren't used consistently
# between the two options, broken popt sets the version to compare to be
# "a=b"
-ARGS="--define-variable=a=b --atleast-pkgconfig-version=999.999"
EXPECT_RETURN=1
RESULT=""
-run_test
+run_test --define-variable=a=b --atleast-pkgconfig-version=999.999
-ARGS="--define-variable=a=b --atleast-pkgconfig-version 999.999"
EXPECT_RETURN=1
RESULT=""
-run_test
+run_test --define-variable=a=b --atleast-pkgconfig-version 999.999
-ARGS="--define-variable a=b --atleast-pkgconfig-version 999.999"
EXPECT_RETURN=1
RESULT=""
-run_test
+run_test --define-variable a=b --atleast-pkgconfig-version 999.999
-ARGS="--define-variable a=b --atleast-pkgconfig-version=999.999"
EXPECT_RETURN=1
RESULT=""
-run_test
+run_test --define-variable a=b --atleast-pkgconfig-version=999.999