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

. ../../testenv.sh

analyze disptree.vhdl
elab disptree

if c_compiler_is_available && ghdl_has_feature disptree vpi; then
  add_vpi_path

  $GHDL --vpi-compile -v gcc -c vpi2.c
  $GHDL --vpi-link -v gcc -o vpi2.vpi vpi2.o

  simulate disptree --vpi=./vpi2.vpi | tee disptree.out
  diff_nocr -q disptree.ref disptree.out

  rm -f vpi2.o vpi2.vpi disptree.out
fi

clean

echo "Test successful"