diff options
author | kate.ward <kate.ward@forestent.com> | 2013-01-04 21:52:23 +0000 |
---|---|---|
committer | kate.ward <kate.ward@forestent.com> | 2013-01-04 21:52:23 +0000 |
commit | e10dd53e3ea5cdf233cd4574819c6779f0cb058b (patch) | |
tree | c487b9c19db7c21b7755d7d06c640bec003c5e0c /source/1.0/src/shflags_test_public.sh | |
parent | cba92e5257f037285d46d6a5ea495800eed247fc (diff) | |
download | shflags-e10dd53e3ea5cdf233cd4574819c6779f0cb058b.tar.gz |
- fixed ksh and zsh version detection
- added alternate validFloat and validInt functions that use built-ins instead
of expr
- fixed some minor issues with FreeBSD 9.1
- fixed unit tests for Solaris 8 and 9
Diffstat (limited to 'source/1.0/src/shflags_test_public.sh')
-rwxr-xr-x | source/1.0/src/shflags_test_public.sh | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/source/1.0/src/shflags_test_public.sh b/source/1.0/src/shflags_test_public.sh index 0da9d02..adffb74 100755 --- a/source/1.0/src/shflags_test_public.sh +++ b/source/1.0/src/shflags_test_public.sh @@ -99,16 +99,17 @@ flags: -h show this help (default: false) EOF ( - _flags_columns() { mock_flags_columns "$@"; } + _flags_columns() { mock_flags_columns "\$@"; } FLAGS_HELP=${help}; FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) r3turn=$? assertTrue 'a call for help should not return an error' ${r3turn} + diff "${expectedF}" "${stderrF}" >/dev/null - differed=$? - assertTrue 'unexpected help output' ${differed} - th_showOutput ${differed} "${stdoutF}" "${stderrF}" + r3turn=$? + assertTrue 'unexpected help output' ${r3turn} + th_showOutput ${r3turn} "${stdoutF}" "${stderrF}" } testEnhancedHelpOutput() @@ -137,9 +138,14 @@ flags: (default: 'this_is_a_long_default_value_to_force_alternate_indentation') -h,--help: show this help (default: false) EOF - ( FLAGS_HELP=${help}; FLAGS -h >"${stdoutF}" 2>"${stderrF}" ) + ( + _flags_columns() { mock_flags_columns "\$@"; } + FLAGS_HELP=${help}; + FLAGS -h >"${stdoutF}" 2>"${stderrF}" + ) r3turn=$? assertTrue 'a call for help should not return an error' ${r3turn} + diff "${expectedF}" "${stderrF}" >/dev/null differed=$? assertTrue 'unexpected help output' ${differed} |