diff options
| author | Jan Sucan <jan@jansucan.com> | 2022-03-05 12:30:59 +0100 |
|---|---|---|
| committer | Jan Sucan <jan@jansucan.com> | 2022-03-05 12:37:19 +0100 |
| commit | 752230d7288cd8efd7606f7c4032077590fbac0f (patch) | |
| tree | 118371aec0c2959645ef1d38a7a470d5c2a47e07 /tests/001-missing_arguments.sh | |
| parent | 04533dd4293e6ddef4682129fda4154295bed96d (diff) | |
tests: Add option parsing tests
Diffstat (limited to 'tests/001-missing_arguments.sh')
| -rw-r--r-- | tests/001-missing_arguments.sh | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/001-missing_arguments.sh b/tests/001-missing_arguments.sh index baa7af1..8e00bf0 100644 --- a/tests/001-missing_arguments.sh +++ b/tests/001-missing_arguments.sh @@ -1,7 +1,10 @@ #!/bin/sh +source ./assert.sh + PROGRAM_EXEC="$1" -$PROGRAM_EXEC 1>/dev/null 2>&1 +assert_error "missing arguments" $PROGRAM_EXEC +assert_error "missing arguments" $PROGRAM_EXEC arg -[ $? -ne 0 ] && exit 0 || exit 1 +exit 0 |
