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/realmath/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/realmath/run-test.sh')
-rwxr-xr-x | tests/realmath/run-test.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/tests/realmath/run-test.sh b/tests/realmath/run-test.sh index f1ec5476b..e1a36c694 100755 --- a/tests/realmath/run-test.sh +++ b/tests/realmath/run-test.sh @@ -1,14 +1,26 @@ #!/bin/bash set -e +OPTIND=1 +count=100 +seed="" # default to no seed specified +while getopts "c:S:" opt +do + case "$opt" in + c) count="$OPTARG" ;; + S) seed="-S $OPTARG" ;; + esac +done +shift "$((OPTIND-1))" + rm -rf temp mkdir -p temp echo "generating tests.." -python3 generate.py +python3 generate.py -c $count $seed cd temp echo "running tests.." -for ((i = 0; i < 100; i++)); do +for ((i = 0; i < $count; i++)); do echo -n "[$i]" idx=$( printf "%05d" $i ) ../../../yosys -qq uut_${idx}.ys |