aboutsummaryrefslogtreecommitdiff
path: root/source/1.0/src/shflags_test_public.sh
diff options
context:
space:
mode:
authorkate.ward <kate.ward@forestent.com>2008-10-20 08:29:46 +0000
committerkate.ward <kate.ward@forestent.com>2008-10-20 08:29:46 +0000
commit49111ee8d4b75c8e13f3760b980d7ab5fe939b47 (patch)
treec48dc87c16f7cea37bdb68014de15444ed9ca90d /source/1.0/src/shflags_test_public.sh
parent437639ddb30a6152f2d75271b9ac7438b94cd8a4 (diff)
downloadshflags-49111ee8d4b75c8e13f3760b980d7ab5fe939b47.tar.gz
removed more-or-less duplicate help output test code
Diffstat (limited to 'source/1.0/src/shflags_test_public.sh')
-rwxr-xr-xsource/1.0/src/shflags_test_public.sh23
1 files changed, 2 insertions, 21 deletions
diff --git a/source/1.0/src/shflags_test_public.sh b/source/1.0/src/shflags_test_public.sh
index 694356e..3e45b5c 100755
--- a/source/1.0/src/shflags_test_public.sh
+++ b/source/1.0/src/shflags_test_public.sh
@@ -126,27 +126,8 @@ EOF
( FLAGS_HELP=${help}; FLAGS -h >"${stdoutF}" 2>"${stderrF}" )
diff "${expectedF}" "${stderrF}" >/dev/null
rtrn=$?
- assertTrue 'short flag help; unexpected help output' ${rtrn}
- [ ${__shunit_skip} -eq ${SHUNIT_FALSE} \
- -a ${rtrn} -ne ${FLAGS_TRUE} ] \
- && cat "${stderrF}"
-
- # long option testing
- flags_getoptIsStd && startSkipping
-
- cat >"${expectedF}" <<EOF
-USAGE: enhanced [flags] args
-flags:
- -b,--[no]test_bool: test boolean
- -s,--test_str: test string
- -h,--[no]help: show this help
-EOF
- ( FLAGS_HELP=${help}; FLAGS --help >"${stdoutF}" 2>"${stderrF}" )
- diff "${expectedF}" "${stderrF}" >/dev/null
- rtrn=$?
- assertTrue 'long flag help; unexpected help output' ${rtrn}
- [ ${__shunit_skip} -eq ${SHUNIT_FALSE} \
- -a ${rtrn} -ne ${FLAGS_TRUE} ] \
+ assertTrue 'unexpected help output' ${rtrn}
+ [ ${__shunit_skip} -eq ${SHUNIT_FALSE} -a ${rtrn} -ne ${FLAGS_TRUE} ] \
&& cat "${stderrF}"
}