aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue1326/testsuite.sh
blob: b90269d4bcbe485f92a1aa33da983020b9a2419f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh

. ../../testenv.sh

analyze mytestbench.vhdl
elab mytestbench

simulate mytestbench --wave=dump.ghw | tee mytestbench.out

if c_compiler_is_available; then

  gcc ../../../src/grt/ghwdump.c ../../../src/grt/ghwlib.c -I../../../src/grt/ -o ghwdump

  # We're just checking that ghwdump doesn't crash on a zero length signal.
  ./ghwdump -ths dump.ghw > dump.txt
fi

rm -f mytestbench.out ghwdump dump.txt dump.ghw
clean

echo "Test passed"