Add -h flag to test runner to display help cleanly
This commit is contained in:
parent
a152e35786
commit
2d8f37967e
|
@ -34,16 +34,16 @@ Options
|
||||||
-d LEVEL enable debug logging
|
-d LEVEL enable debug logging
|
||||||
-f stop after first test failure
|
-f stop after first test failure
|
||||||
-g only run tests matching the given pattern (grep)
|
-g only run tests matching the given pattern (grep)
|
||||||
|
-h display this help
|
||||||
-t generate test data and quit
|
-t generate test data and quit
|
||||||
-x FX_EXECUTABLE path to Firefox executable (default: $FX_EXECUTABLE)
|
-x FX_EXECUTABLE path to Firefox executable (default: $FX_EXECUTABLE)
|
||||||
-b skip bundled translator/style installation
|
|
||||||
TESTS set of tests to run (default: all)
|
TESTS set of tests to run (default: all)
|
||||||
DONE
|
DONE
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
DEBUG_LEVEL=0
|
DEBUG_LEVEL=0
|
||||||
while getopts "bcd:fg:tx:" opt; do
|
while getopts "bcd:fg:htx:" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
b)
|
b)
|
||||||
FX_ARGS="$FX_ARGS -ZoteroSkipBundledFiles"
|
FX_ARGS="$FX_ARGS -ZoteroSkipBundledFiles"
|
||||||
|
@ -61,6 +61,9 @@ while getopts "bcd:fg:tx:" opt; do
|
||||||
g)
|
g)
|
||||||
GREP="$OPTARG"
|
GREP="$OPTARG"
|
||||||
;;
|
;;
|
||||||
|
h)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
t)
|
t)
|
||||||
FX_ARGS="$FX_ARGS -makeTestData"
|
FX_ARGS="$FX_ARGS -makeTestData"
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user