3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00
yosys/tests/realmath/run-test.sh
2014-06-15 09:31:03 +02:00

24 lines
421 B
Bash
Executable file

#!/bin/bash
set -e
rm -rf temp
mkdir -p temp
echo "generating tests.."
python generate.py
cd temp
echo "running tests.."
for ((i = 0; i < 100; i++)); do
echo -n "[$i]"
idx=$( printf "%05d" $i )
../../../yosys -q uut_${idx}.ys
iverilog -o uut_${idx}_tb uut_${idx}_tb.v uut_${idx}.v uut_${idx}_syn.v
./uut_${idx}_tb | tee uut_${idx}.err
if test -s uut_${idx}.err; then
exit 1
fi
rm -f uut_${idx}.err
done
echo