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/003-unknown_option.sh | |
| parent | 04533dd4293e6ddef4682129fda4154295bed96d (diff) | |
tests: Add option parsing tests
Diffstat (limited to 'tests/003-unknown_option.sh')
| -rw-r--r-- | tests/003-unknown_option.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/003-unknown_option.sh b/tests/003-unknown_option.sh new file mode 100644 index 0000000..919f125 --- /dev/null +++ b/tests/003-unknown_option.sh @@ -0,0 +1,9 @@ +#!/bin/sh + +source ./assert.sh + +PROGRAM_EXEC="$1" + +assert_error "unknown option '-x'" $PROGRAM_EXEC -x ref out + +exit 0 |
