diff options
author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2020-07-02 22:20:04 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-02 22:20:04 -0400 |
commit | 4a150af347b21e2269331a68f44f2a5ae7062b45 (patch) | |
tree | be588d459a0448bd6f78fda5e04fe4bf0d9893d0 | |
parent | acddc14942c2970f987572228f358c7e4954f30d (diff) | |
download | splitfits-4a150af347b21e2269331a68f44f2a5ae7062b45.tar.gz |
Update test_usage.sh
-rw-r--r-- | tests/test_usage.sh | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/test_usage.sh b/tests/test_usage.sh index 2a257d9..b3ebd9f 100644 --- a/tests/test_usage.sh +++ b/tests/test_usage.sh @@ -1,9 +1,29 @@ -test_splitfits_usage_longopt() { +test_splitfits_usage_longopt_help() { ${test_program} --help return $? } -test_splitfits_usage_shortopt() { +test_splitfits_usage_shortopt_help() { ${test_program} -h return $? } + +test_splitfits_usage_longopt_version() { + result=$(${test_program} --version) + retval=$? + + if [[ -z $result ]]; then + return 1 + fi + return $retval +} + +test_splitfits_usage_shortopt_version() { + result=$(${test_program} -V) + retval=$? + + if [[ -z $result ]]; then + return 1 + fi + return $retval +} |