From 7e9034e80ea8ce4dc8a4635a42894e7294ecc85e Mon Sep 17 00:00:00 2001 From: Jan Sucan Date: Sat, 1 May 2021 10:52:19 +0200 Subject: tests: Add test for invoking with no arguments --- tests/001-no_options_given.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 tests/001-no_options_given.sh (limited to 'tests/001-no_options_given.sh') diff --git a/tests/001-no_options_given.sh b/tests/001-no_options_given.sh new file mode 100644 index 0000000..baa7af1 --- /dev/null +++ b/tests/001-no_options_given.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +PROGRAM_EXEC="$1" + +$PROGRAM_EXEC 1>/dev/null 2>&1 + +[ $? -ne 0 ] && exit 0 || exit 1 -- cgit v1.2.3