aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/sanity/005examples/testsuite.sh
blob: 7ce252fdb8403b0541e6e06c5857fbfd592e8e4f (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/*/; 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"