heptagon/test/scripts/config
Gwenal Delaval d1b0b196d3 Added test script for Java code generation
compile_javac_run script: compiles heptagon program with Java target code,
compile and run the produced Java code.
2012-09-28 13:01:09 +02:00

32 lines
569 B
Text

checkdir=_check_builds
shopt -s nullglob
# script de test
COMPILER_DIR="../compiler"
if [ -x $COMPILER_DIR/heptc.native ];
then
COMPILER=heptc.native
else
if [ -x $COMPILER_DIR/heptc.byte ];
then
COMPILER=heptc.byte
else
echo "Error: no compiler found."
exit 2
fi
fi
HEPTC="../$COMPILER_DIR/$COMPILER -stdlib ../../lib"
CC="gcc -std=c99 -I ../../../lib/c"
LD="gcc"
JAVAC="javac -classpath ../../../lib/java:."
JAVA="java -classpath ../../../lib/java:."
NBSTEP=100
if [ ! -x $checkdir ];
then
mkdir $checkdir
fi