aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/005examples/testsuite.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/sanity/005examples/testsuite.sh')
-rwxr-xr-xtestsuite/sanity/005examples/testsuite.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/sanity/005examples/testsuite.sh b/testsuite/sanity/005examples/testsuite.sh
new file mode 100755
index 000000000..2cf61446f
--- /dev/null
+++ b/testsuite/sanity/005examples/testsuite.sh
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+. ../../testenv.sh
+
+# Extract examples
+python extract_vhdl.py hello.vhdl heartbeat.vhdl adder.vhdl adder_tb.vhdl < ../../../doc/using/QuickStartGuide.rst
+
+analyze hello.vhdl
+elab_simulate hello_world
+
+analyze heartbeat.vhdl
+elab_simulate heartbeat --stop-time=100ns
+
+analyze adder.vhdl
+analyze adder_tb.vhdl
+elab_simulate adder_tb
+
+clean
+
+echo "test successful"