JavaTXCompilerInJavaTXNoMaven/test.sh

17 lines
476 B
Bash
Raw Normal View History

##TEST ENVIRONMENT##
SRCDIR="javatx-src/main/java"
DESTDIR="out/src"
TESTDESTDIR="out/tests"
DEPENDENCIES="dependencies"
#compile all necessary test files
javac -cp "$DESTDIR:$DEPENDENCIES/*" -d "out/tests" tests/targetast/*
javac -cp "$TESTDESTDIR:$DESTDIR:$DEPENDENCIES/*" -d "out/tests" tests/TestComplete.java
cp -r resources out/tests/resources/
cd "$TESTDESTDIR"
#run tests with junit
java -cp "../src:.:../../dependencies/*" org.junit.runner.JUnitCore TestComplete