mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2025-02-17 17:43:06 -05:00
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 <ilan.peer@intel.com>
This commit is contained in:
parent
5d60296ea7
commit
6e04f41168
@ -24,6 +24,14 @@ else
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
usage()
|
||||||
|
{
|
||||||
|
echo "$0 [-v | --valgrind | valgrind] [-t | --trace | trace]"
|
||||||
|
echo "\t[-n <num> | --channels <num>] [-B | --build]"
|
||||||
|
echo "\t[-c | --codecov ] [run-tests.py parameters]"
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
unset VALGRIND
|
unset VALGRIND
|
||||||
unset TRACE
|
unset TRACE
|
||||||
unset TRACE_ARGS
|
unset TRACE_ARGS
|
||||||
@ -60,6 +68,9 @@ while [ "$1" != "" ]; do
|
|||||||
CODECOV=lcov
|
CODECOV=lcov
|
||||||
BUILD_ARGS=-c
|
BUILD_ARGS=-c
|
||||||
;;
|
;;
|
||||||
|
-h | --help)
|
||||||
|
usage
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
RUN_TEST_ARGS="$RUN_TEST_ARGS$1 "
|
RUN_TEST_ARGS="$RUN_TEST_ARGS$1 "
|
||||||
shift
|
shift
|
||||||
|
Loading…
x
Reference in New Issue
Block a user