mirror of
https://github.com/cuberite/TCLAP.git
synced 2025-08-04 02:06:29 -04:00
new tests
This commit is contained in:
parent
dae80e0a1a
commit
f1df55e8dc
32
tests/test18.out
Normal file
32
tests/test18.out
Normal file
@ -0,0 +1,32 @@
|
||||
PARSE ERROR: Argument: -*s
|
||||
Couldn't find match for argument
|
||||
|
||||
|
||||
USAGE:
|
||||
|
||||
../examples/test4 [-A] [-B] -s <string> [--] [-v] [-h]
|
||||
|
||||
Where:
|
||||
|
||||
-A, --sA
|
||||
exist Test B
|
||||
|
||||
-B, --sB
|
||||
exist Test B
|
||||
|
||||
-s <string>, --Bs <string>
|
||||
(required) (value required) string test
|
||||
|
||||
--, --ignore_rest
|
||||
Ignores the rest of the labeled arguments following this flag.
|
||||
|
||||
-v, --version
|
||||
Displays version information and exits.
|
||||
|
||||
-h, --help
|
||||
Displays usage information and exits.
|
||||
|
||||
|
||||
|
||||
this is a message
|
||||
|
10
tests/test18.sh
Executable file
10
tests/test18.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
../examples/test4 -Bs --Bs asdf > tmp.out 2>&1
|
||||
|
||||
if cmp -s tmp.out test18.out; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
3
tests/test19.out
Normal file
3
tests/test19.out
Normal file
@ -0,0 +1,3 @@
|
||||
for string we got : asdf
|
||||
for bool B we got : 1
|
||||
for bool A we got : 1
|
10
tests/test19.sh
Executable file
10
tests/test19.sh
Executable file
@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
../examples/test4 -BA --Bs asdf > tmp.out 2>&1
|
||||
|
||||
if cmp -s tmp.out test19.out; then
|
||||
exit 0
|
||||
else
|
||||
exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user