test: provider usage text for shell test runner

This commit is contained in:
James Shubin
2016-09-01 22:52:32 -04:00
parent 786b896018
commit 8ab8e6679a

View File

@@ -1,6 +1,12 @@
#!/bin/bash
# simple test harness for testing mgmt
# NOTE: this will rm -rf /tmp/mgmt/
if [ "$1" == "--help" ] || [ "$1" == "-h" ]; then
echo -e "usage: ./"`basename $0`" [[--help] | <test>]"
echo -e "where: <test> is empty to run all tests, or <file>.sh from shell/ dir"
exit 1
fi
echo running test-shell.sh
set -o errexit
set -o pipefail