aboutsummaryrefslogtreecommitdiffstats
path: root/tests/arch/anlogic/run-test.sh
diff options
context:
space:
mode:
authorMiodrag Milanović <mmicko@gmail.com>2019-10-18 14:29:44 +0200
committerGitHub <noreply@github.com>2019-10-18 14:29:44 +0200
commite8ef3fcdfcacbc711a4722deee95f0707634bed0 (patch)
tree971fae1a1b7d3204827759454fa55accdc9bc01f /tests/arch/anlogic/run-test.sh
parent3c41599ee1f62e4d77ba630fa1a245ef3fe236fa (diff)
parent190b40341abd73ab5edf0e6740b6526e9575253b (diff)
downloadyosys-e8ef3fcdfcacbc711a4722deee95f0707634bed0.tar.gz
yosys-e8ef3fcdfcacbc711a4722deee95f0707634bed0.tar.bz2
yosys-e8ef3fcdfcacbc711a4722deee95f0707634bed0.zip
Merge pull request #1454 from YosysHQ/mmicko/common_tests
Share common tests
Diffstat (limited to 'tests/arch/anlogic/run-test.sh')
-rwxr-xr-xtests/arch/anlogic/run-test.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/arch/anlogic/run-test.sh b/tests/arch/anlogic/run-test.sh
new file mode 100755
index 000000000..bf19b887d
--- /dev/null
+++ b/tests/arch/anlogic/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 -w 'Yosys has only limited support for tri-state logic at the moment.' $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