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

. ../../testenv.sh

analyze test_load.vhdl
elab test_load

if c_compiler_is_available && ghdl_has_feature test_load vpi; then
  add_vpi_path

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

  simulate test_load --vpi=./vpi1.vpi

  rm -f vpi1.vpi vpi1.o
fi
clean

echo "Test successful"