1#! /bin/sh 2 3. ../../testenv.sh 4 5analyze disptree.vhdl 6elab disptree 7 8if c_compiler_is_available && ghdl_has_feature disptree vpi; then 9 add_vpi_path 10 11 $GHDL --vpi-compile -v gcc -c vpi2.c 12 $GHDL --vpi-link -v gcc -o vpi2.vpi vpi2.o 13 14 simulate disptree --vpi=./vpi2.vpi | tee disptree.out 15 diff --strip-trailing-cr -q disptree.ref disptree.out 16 17 rm -f vpi2.o vpi2.vpi disptree.out 18fi 19 20clean 21 22echo "Test successful" 23