From 752230d7288cd8efd7606f7c4032077590fbac0f Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 5 Mar 2022 12:30:59 +0100 Subject: tests: Add option parsing tests --- tests/004-missing_argument_for_option.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/004-missing_argument_for_option.sh (limited to 'tests/004-missing_argument_for_option.sh') diff --git a/tests/004-missing_argument_for_option.sh b/tests/004-missing_argument_for_option.sh new file mode 100644 index 0000000..071ea07 --- /dev/null +++ b/tests/004-missing_argument_for_option.sh @@ -0,0 +1,10 @@ +#!/bin/sh + +source ./assert.sh + +PROGRAM_EXEC="$1" + +assert_error "missing argument for option '-b'" $PROGRAM_EXEC -b +assert_error "missing argument for option '-s'" $PROGRAM_EXEC -s + +exit 0 -- cgit v1.2.3