diff options
author | Clifford Wolf <clifford@clifford.at> | 2016-09-23 13:42:08 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2016-09-23 13:42:08 +0200 |
commit | 6300c0b3c294110456b0644e05d5add85d444cc0 (patch) | |
tree | 76696c4da0c979b23c8951daed8162ffcdb8edc9 /tests/bram/run-test.sh | |
parent | 0c697b9eacacfebd69c9603c2cb79ec70311197d (diff) | |
parent | f4240cc8a4545e4d2e2f926a72aa911d5373ab95 (diff) | |
download | yosys-6300c0b3c294110456b0644e05d5add85d444cc0.tar.gz yosys-6300c0b3c294110456b0644e05d5add85d444cc0.tar.bz2 yosys-6300c0b3c294110456b0644e05d5add85d444cc0.zip |
Merge branch 'master' of https://github.com/brouhaha/yosys
Diffstat (limited to 'tests/bram/run-test.sh')
-rwxr-xr-x | tests/bram/run-test.sh | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/tests/bram/run-test.sh b/tests/bram/run-test.sh index f0bf0131e..a30416787 100755 --- a/tests/bram/run-test.sh +++ b/tests/bram/run-test.sh @@ -4,11 +4,26 @@ # MAKE="make -j8" time bash -c 'for ((i=0; i<100; i++)); do echo "-- $i --"; bash run-test.sh || exit 1; done' set -e + +OPTIND=1 +count=5 +seed="" # default to no seed specified +debug="" +while getopts "c:S:" opt +do + case "$opt" in + c) count="$OPTARG" ;; + d) debug="-d" ;; + S) seed="-S $OPTARG" ;; + esac +done +shift "$((OPTIND-1))" + rm -rf temp mkdir -p temp echo "generating tests.." -python3 generate.py +python3 generate.py $debug -c $count $seed { echo -n "all:" |