aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/gna/bug097/testsuite.sh
blob: 34e1f8cd85a1bb6b6a5c8184cca19d376acdc620 (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

if c_compiler_is_available; then
  if [ -z "$CC" ]; then
    CC="gcc"
  fi

  $CC -c -fPIC getrand.c
  $CC -o getrand.so --shared getrand.o

  analyze tb.vhdl
  elab_simulate tb

  rm -f getrand.o getrand.so
fi
clean

echo "Test successful"