summaryrefslogtreecommitdiff
path: root/check/check-cmd-options
blob: 5f94cf13059c7d51e4c9e5d6f67c7b6aa0471961 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#! /bin/sh

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"
EXPECT_RETURN=1
RESULT=""
run_test --define-variable=a=b --atleast-pkgconfig-version=999.999

EXPECT_RETURN=1
RESULT=""
run_test --define-variable=a=b --atleast-pkgconfig-version 999.999

EXPECT_RETURN=1
RESULT=""
run_test --define-variable a=b --atleast-pkgconfig-version 999.999

EXPECT_RETURN=1
RESULT=""
run_test --define-variable a=b --atleast-pkgconfig-version=999.999