From 0c27cf15874094150278729c4714fe63b7e8aeb4 Mon Sep 17 00:00:00 2001 From: mes5k Date: Mon, 22 Dec 2003 02:06:01 +0000 Subject: [PATCH] first checkin --- tests/test17.out | 41 +++++++++++++++++++++++++++++++++++++++++ tests/test17.sh | 10 ++++++++++ 2 files changed, 51 insertions(+) create mode 100644 tests/test17.out create mode 100755 tests/test17.sh diff --git a/tests/test17.out b/tests/test17.out new file mode 100644 index 0000000..bc13b01 --- /dev/null +++ b/tests/test17.out @@ -0,0 +1,41 @@ +PARSE ERROR: + One or more required arguments missing! + + +USAGE: + + ../examples/test3 [-i=] ... -s= [-B] [--] [-v] [-h] ... + +Where: + + -i , --intTest (accepted multiple times) + (value required) multi int test + + -s , --stringTest + (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. + + + (required) (value required) unlabeled test one + + + (required) (value required) unlabeled test two + + (accepted multiple times) + (value required) file names + + + +this is a message + diff --git a/tests/test17.sh b/tests/test17.sh new file mode 100755 index 0000000..122e56d --- /dev/null +++ b/tests/test17.sh @@ -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 +