739ce79e21
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
30 lines
667 B
Bash
Executable File
30 lines
667 B
Bash
Executable File
#! /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
|