aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/005examples/testsuite.sh
blob: 7c708b2b99e86dc170f5eb149a82d58cb3c48e84 (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
27
#!/bin/sh

. ../../testenv.sh

# Skip the test if ../../../doc is not available.
if [ ! -d ../../../doc ]; then
  echo "test skipped, '../../../doc' not found"
  exit 0
fi

for d in ../../../doc/quick_start/simulation/*/; do
  cp "$d"*.vhdl ./
done

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"