aboutsummaryrefslogtreecommitdiffstats
path: root/testsuite/testsuite.sh
blob: 02d280d3834d211261b77dc35f79051273fe3f8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#! /bin/sh

# Stop in case of error.
set -e

# Source the testsuite environment
. ./testenv.sh

# The GNA testsuite:
# regression testsuite using reports/issues from gna.org
do_gna ()
{
  echo "**** GNA ****"
  echo "*************"
  cd gna
  ./testsuite.sh
  cd ..
}

# Run a testsuite
do_test ()
{
  case $1 in
      gna)
	  do_gna;;
      *)
          echo "$0: test name '$1' is unknown"
          exit 1;;
  esac
}

all_list="gna"

echo "GHDL is: $GHDL"

if [ $# -eq 0 ]; then
  for t in $all_list; do
    do_test $t
   done
else
  for t; do
    do_test $t
  done
fi

echo
echo "$0: Success ($GHDL)"
$GHDL --version
exit 0