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/share/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/share/run-test.sh')
-rwxr-xr-x | tests/share/run-test.sh | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/share/run-test.sh b/tests/share/run-test.sh index 18dbbc279..1bcd8e423 100755 --- a/tests/share/run-test.sh +++ b/tests/share/run-test.sh @@ -5,10 +5,22 @@ 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 echo "running tests.." for i in $( ls temp/*.ys | sed 's,[^0-9],,g; s,^0*\(.\),\1,g;' ); do |