diff options
author | Tristan Gingold <tgingold@free.fr> | 2021-06-10 07:57:35 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2021-06-10 07:57:35 +0200 |
commit | 46a2c6d28d57b17b52183d1ab9f4244661f97892 (patch) | |
tree | 8feae9b3c4fa616ef2687148d67e4a221fe68957 /testsuite/gna/issue237/testsuite.sh | |
parent | c64e7ba56376b933cb0ddb2b4949a83c926a3c67 (diff) | |
download | ghdl-46a2c6d28d57b17b52183d1ab9f4244661f97892.tar.gz ghdl-46a2c6d28d57b17b52183d1ab9f4244661f97892.tar.bz2 ghdl-46a2c6d28d57b17b52183d1ab9f4244661f97892.zip |
testsuite/gna: add reproducer for #237
Diffstat (limited to 'testsuite/gna/issue237/testsuite.sh')
-rwxr-xr-x | testsuite/gna/issue237/testsuite.sh | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/testsuite/gna/issue237/testsuite.sh b/testsuite/gna/issue237/testsuite.sh new file mode 100755 index 000000000..de9170e1b --- /dev/null +++ b/testsuite/gna/issue237/testsuite.sh @@ -0,0 +1,20 @@ +#! /bin/sh + +. ../../testenv.sh + +analyze test_array.vhdl +elab test_array + +if c_compiler_is_available && ghdl_has_feature test_array vpi; then + add_vpi_path + + $GHDL --vpi-compile -v gcc $CFLAGS -c vpi1.c + $GHDL --vpi-link -v gcc $CFLAGS -o vpi1.vpi vpi1.o + + simulate test_array --vpi=./vpi1.vpi + + rm -f vpi1.vpi vpi1.o +fi +clean + +echo "Test successful" |