aboutsummaryrefslogtreecommitdiff
path: root/tests/008-help_option.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/008-help_option.sh')
-rw-r--r--tests/008-help_option.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/008-help_option.sh b/tests/008-help_option.sh
new file mode 100644
index 0000000..d874780
--- /dev/null
+++ b/tests/008-help_option.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+source ./assert.sh
+
+PROGRAM_EXEC="$1"
+
+assert "Usage" "" 0 $PROGRAM_EXEC help
+assert "Usage" "" 0 $PROGRAM_EXEC backup -h
+assert "Usage" "" 0 $PROGRAM_EXEC restore -h
+
+exit 0