aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/001-no_options_given.sh7
-rw-r--r--tests/Makefile4
2 files changed, 11 insertions, 0 deletions
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
diff --git a/tests/Makefile b/tests/Makefile
new file mode 100644
index 0000000..e202c55
--- /dev/null
+++ b/tests/Makefile
@@ -0,0 +1,4 @@
+PROGRAM_EXEC=../$(PROGRAM_NAME)
+
+all:
+ sh ./001-no_options_given.sh $(PROGRAM_EXEC)