17 lines
476 B
Bash
Executable File
17 lines
476 B
Bash
Executable File
##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 |