diff options
Diffstat (limited to 'tests/asicworld/run-test.sh')
-rwxr-xr-x | tests/asicworld/run-test.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/asicworld/run-test.sh b/tests/asicworld/run-test.sh index 24983f1a..d5708c45 100755 --- a/tests/asicworld/run-test.sh +++ b/tests/asicworld/run-test.sh @@ -1,2 +1,14 @@ #!/bin/bash -exec ${MAKE:-make} -f ../tools/autotest.mk EXTRA_FLAGS="-e" *.v + +OPTIND=1 +seed="" # default to no seed specified +while getopts "S:" opt +do + case "$opt" in + S) arg="${OPTARG#"${OPTARG%%[![:space:]]*}"}" # remove leading space + seed="SEED=$arg" ;; + esac +done +shift "$((OPTIND-1))" + +exec ${MAKE:-make} -f ../tools/autotest.mk $seed EXTRA_FLAGS="-e" *.v |