first checkin

This commit is contained in:
mes5k 2003-12-22 02:06:01 +00:00
parent dad99b8587
commit 0c27cf1587
2 changed files with 51 additions and 0 deletions

41
tests/test17.out Normal file
View File

@ -0,0 +1,41 @@
PARSE ERROR:
One or more required arguments missing!
USAGE:
../examples/test3 [-i=<int>] ... -s=<string> [-B] [--] [-v] [-h] <string> <string> <fileNameString> ...
Where:
-i <int>, --intTest <int> (accepted multiple times)
(value required) multi int test
-s <string>, --stringTest <string>
(required) (value required) string test
-B, --existTest B
exist Test B
--, --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.
<string>
(required) (value required) unlabeled test one
<string>
(required) (value required) unlabeled test two
<fileNameString> (accepted multiple times)
(value required) file names
this is a message

10
tests/test17.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
../examples/test3 -s=one homer -B > tmp.out 2>&1
if cmp -s tmp.out test17.out; then
exit 0
else
exit 1
fi