aboutsummaryrefslogtreecommitdiffstats
path: root/tests/xilinx/run-test.sh
diff options
context:
space:
mode:
authorEddie Hung <eddie@fpgeh.com>2019-08-28 09:24:19 -0700
committerEddie Hung <eddie@fpgeh.com>2019-08-28 09:24:19 -0700
commit975aaf190f0bbbeacc253397ccada6889c69e8f7 (patch)
treed5c98ab57b276d5cb06f1922739f51b1519f4c03 /tests/xilinx/run-test.sh
parentba5d81c7f1d97ca09cefb0185b33e549e166cee2 (diff)
downloadyosys-975aaf190f0bbbeacc253397ccada6889c69e8f7.tar.gz
yosys-975aaf190f0bbbeacc253397ccada6889c69e8f7.tar.bz2
yosys-975aaf190f0bbbeacc253397ccada6889c69e8f7.zip
Add xilinx_srl test
Diffstat (limited to 'tests/xilinx/run-test.sh')
-rwxr-xr-xtests/xilinx/run-test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/xilinx/run-test.sh b/tests/xilinx/run-test.sh
new file mode 100755
index 000000000..ea56b70f0
--- /dev/null
+++ b/tests/xilinx/run-test.sh
@@ -0,0 +1,20 @@
+#!/usr/bin/env bash
+set -e
+{
+echo "all::"
+for x in *.ys; do
+ echo "all:: run-$x"
+ echo "run-$x:"
+ echo " @echo 'Running $x..'"
+ echo " @../../yosys -ql ${x%.ys}.log $x"
+done
+for s in *.sh; do
+ if [ "$s" != "run-test.sh" ]; then
+ echo "all:: run-$s"
+ echo "run-$s:"
+ echo " @echo 'Running $s..'"
+ echo " @bash $s"
+ fi
+done
+} > run-test.mk
+exec ${MAKE:-make} -f run-test.mk