mirror of
https://github.com/YosysHQ/yosys
synced 2025-09-04 17:17:43 +00:00
Add optional SEED=n command line option to Makefile, and -S n command line option to test scripts, for deterministic regression tests.
This commit is contained in:
parent
d8ad889594
commit
f4240cc8a4
14 changed files with 175 additions and 24 deletions
|
@ -1,7 +1,18 @@
|
|||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
bash ../tools/autotest.sh -G *.v
|
||||
|
||||
OPTIND=1
|
||||
seed="" # default to no seed specified
|
||||
while getopts "S:" opt
|
||||
do
|
||||
case "$opt" in
|
||||
S) seed="-S $OPTARG" ;;
|
||||
esac
|
||||
done
|
||||
shift "$((OPTIND-1))"
|
||||
|
||||
bash ../tools/autotest.sh $seed -G *.v
|
||||
|
||||
for f in `egrep -l 'expect-(wr|rd)-ports' *.v`; do
|
||||
echo -n "Testing expectations for $f .."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue