aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite
diff options
context:
space:
mode:
authorTristan Gingold <tgingold@free.fr>2017-02-15 08:36:39 +0100
committerTristan Gingold <tgingold@free.fr>2017-02-15 08:36:39 +0100
commit1883ec075065535d02aef1be618685b432ea308a (patch)
tree68c94d13eb9ca15c749024c00ef01a3e639ccf75 /testsuite
parent4a0b7fe3e93149a74ad25c5695bcf9feb1cec946 (diff)
downloadghdl-yosys-plugin-1883ec075065535d02aef1be618685b432ea308a.tar.gz
ghdl-yosys-plugin-1883ec075065535d02aef1be618685b432ea308a.tar.bz2
ghdl-yosys-plugin-1883ec075065535d02aef1be618685b432ea308a.zip
Add testsuite.
Diffstat (limited to 'testsuite')
-rwxr-xr-xtestsuite/test-icestick/testsuite.sh27
-rwxr-xr-xtestsuite/testsuite.sh20
2 files changed, 47 insertions, 0 deletions
diff --git a/testsuite/test-icestick/testsuite.sh b/testsuite/test-icestick/testsuite.sh
new file mode 100755
index 0000000..889f5b3
--- /dev/null
+++ b/testsuite/test-icestick/testsuite.sh
@@ -0,0 +1,27 @@
+#!/bin/sh
+
+. ../testenv.sh
+
+src=../../icestick
+
+analyze $src/leds.vhdl
+
+files="fixed1.vhdl
+ fixed1.vhdl
+ blink.vhdl
+ multi1.vhdl
+ multi2.vhdl
+ spin1.vhdl
+ rotate1.vhdl
+ rotate2.vhdl
+ rotate3.vhdl
+ rotate4.vhdl
+"
+# spin2.vhdl
+
+for f in $files; do
+ analyze $src/$f
+ synth leds
+done
+
+clean
diff --git a/testsuite/testsuite.sh b/testsuite/testsuite.sh
new file mode 100755
index 0000000..a2bfad8
--- /dev/null
+++ b/testsuite/testsuite.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+for d in */; do
+ if [ -f $d/testsuite.sh ]; then
+ echo "############ $d"
+ cd $d
+ if ./testsuite.sh; then
+ echo "OK"
+ else
+ echo "FAILED!"
+ exit 1
+ fi
+ cd ..
+ else
+ echo "#### Skip $d (no testsuite.sh)"
+ fi
+done
+
+echo "All tests are OK"
+exit 0