18 lines
945 B
Bash
Executable File
18 lines
945 B
Bash
Executable File
##TEST ENVIRONMENT##
|
|
|
|
DESTDIR="out/src"
|
|
TESTDESTDIR="out/tests"
|
|
DEPENDENCIES="dependencies/*"
|
|
TESTFILES="TestComplete TestPackages GenericParserTest TestTypeDeployment finiteClosure.SuperInterfacesTest astfactory.ASTFactoryTest targetast.ASTToTypedTargetAST targetast.GreaterEqualTest targetast.GreaterThanTest targetast.InheritTest2 targetast.InheritTest targetast.LessEqualTest targetast.LessThanTest targetast.OLTest targetast.PostIncTest targetast.PreIncTest targetast.PutTest targetast.TestCodegen targetast.TestGenerics targetast.TphTest targetast.WhileTest"
|
|
RESOURCES="lib/resources"
|
|
|
|
#compile all necessary test files
|
|
javac -cp "$TESTDESTDIR:$DESTDIR:$DEPENDENCIES" -d $TESTDESTDIR tests/**/*.java
|
|
javac -cp "$TESTDESTDIR:$DESTDIR:$DEPENDENCIES" -d $TESTDESTDIR tests/*.java
|
|
|
|
cp -r $RESOURCES $TESTDESTDIR/resources/
|
|
|
|
cd "$TESTDESTDIR"
|
|
|
|
#run tests with junit
|
|
java -cp "../src:.:../../dependencies/*" org.junit.runner.JUnitCore $TESTFILES |