commit 2d8f37967eb9908ee9f9e05554998d665f5ef637
parent a152e35786b2a56dc63fc4b0203b8b1450eac0b8
Author: Dan Stillman <dstillman@zotero.org>
Date: Mon, 22 Feb 2016 16:00:15 -0500
Add -h flag to test runner to display help cleanly
Diffstat:
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/test/runtests.sh b/test/runtests.sh
@@ -34,16 +34,16 @@ Options
-d LEVEL enable debug logging
-f stop after first test failure
-g only run tests matching the given pattern (grep)
+ -h display this help
-t generate test data and quit
-x FX_EXECUTABLE path to Firefox executable (default: $FX_EXECUTABLE)
- -b skip bundled translator/style installation
TESTS set of tests to run (default: all)
DONE
exit 1
}
DEBUG_LEVEL=0
-while getopts "bcd:fg:tx:" opt; do
+while getopts "bcd:fg:htx:" opt; do
case $opt in
b)
FX_ARGS="$FX_ARGS -ZoteroSkipBundledFiles"
@@ -61,6 +61,9 @@ while getopts "bcd:fg:tx:" opt; do
g)
GREP="$OPTARG"
;;
+ h)
+ usage
+ ;;
t)
FX_ARGS="$FX_ARGS -makeTestData"
;;