#!/bin/sh
if [ "x$GCTLIB" = "x" ]
then
  GCTLIB=`pwd`/../../../
  PATH=.:`pwd`/../../..:$PATH
  export PATH
fi

ROOT=..
. $ROOT/run.source

clean
gct-init $GCTLIB	# So we can initially compile the test-driver.
make_constant_objects


std_test quest
std_test quest2
std_test if
std_test switch
std_test switch2
std_test switch3
std_test switch4
std_test switch5
std_test switch6
std_test switch7
init switch8
gct -c -B$GCTLIB switch8.c > switch8.out 2>&1
diff switch8.out switch8.ref
std_test while
std_test while2
std_test while3
std_test while4
std_test do
std_test do2
std_test do3
std_test for
std_test for2
std_test for3
std_test for4
std_test for5
std_test loop1
std_test loop2
std_test loop3
std_test loop4
std_test loop5
std_test loop6
std_test loop7
std_test loop8

exit 0
