new tests

This commit is contained in:
mes5k 2004-01-08 04:50:47 +00:00
parent dae80e0a1a
commit f1df55e8dc
4 changed files with 55 additions and 0 deletions

32
tests/test18.out Normal file
View 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
View 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
View 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
View 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