aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/issue450/testsuite.sh
blob: c41e34502d9c256966c111bcdc751d93412d0f17 (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

if [ "$OS" = "Windows_NT" ]; then
    vpi_lib=`$GHDL --vpi-library-dir | sed -e 's!\\\\!/!g' -e 's!^C:!/C!g'`
    echo vpi_lib: $vpi_lib
    PATH="$PATH:$vpi_lib"
fi

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

analyze disptree.vhdl
elab_simulate disptree --vpi=./vpi2.vpi | tee disptree.out
diff --strip-trailing-cr -q disptree.ref disptree.out

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

clean

echo "Test successful"