aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/005examples/testsuite.sh
blob: 452c8bef6cb384b7cbf6214143c5c23528e8eda2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh

. ../../testenv.sh

# Skip the test if python is not available.
if ! python -V > /dev/null 2>&1; then
  echo "test skipped, python not found"
  exit 0
fi

# 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"