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