Merge pull request #1669 from thasti/pyosys-attrs
[yosys.git] / tests / techmap / run-test.sh
1 #!/usr/bin/env bash
2 set -e
3 {
4 echo "all::"
5 for x in *.ys; do
6 echo "all:: run-$x"
7 echo "run-$x:"
8 echo " @echo 'Running $x..'"
9 echo " @../../yosys -ql ${x%.ys}.log -e 'select out of bounds' $x"
10 done
11 for s in *.sh; do
12 if [ "$s" != "run-test.sh" ]; then
13 echo "all:: run-$s"
14 echo "run-$s:"
15 echo " @echo 'Running $s..'"
16 echo " @bash $s > ${s%.sh}.log 2>&1"
17 fi
18 done
19 } > run-test.mk
20 exec ${MAKE:-make} -f run-test.mk