From: Ilan Peer Date: Mon, 27 Oct 2014 14:00:55 +0000 (-0400) Subject: tests: Add usage() to run-all.sh X-Git-Tag: hostap_2_4~1170 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e04f411680c6bf76829c456bed0b9e7bea70da8;p=thirdparty%2Fhostap.git tests: Add usage() to run-all.sh The -h or --help command line arguments can now be used to request usage information for run-all.sh. Signed-off-by: Ilan Peer --- diff --git a/tests/hwsim/run-all.sh b/tests/hwsim/run-all.sh index 20e8e349e..9bdb7b17e 100755 --- a/tests/hwsim/run-all.sh +++ b/tests/hwsim/run-all.sh @@ -24,6 +24,14 @@ else fi fi +usage() +{ + echo "$0 [-v | --valgrind | valgrind] [-t | --trace | trace]" + echo "\t[-n | --channels ] [-B | --build]" + echo "\t[-c | --codecov ] [run-tests.py parameters]" + exit 1 +} + unset VALGRIND unset TRACE unset TRACE_ARGS @@ -60,6 +68,9 @@ while [ "$1" != "" ]; do CODECOV=lcov BUILD_ARGS=-c ;; + -h | --help) + usage + ;; *) RUN_TEST_ARGS="$RUN_TEST_ARGS$1 " shift