Commit 36a2869d authored by Fardale's avatar Fardale

ajout make test pour junit test

parent 8aa6c9dc
......@@ -5,7 +5,7 @@
PACKAGEDIRS = ${shell find . -iname '*.java' | sed 's/\.\/\|[^/]*.java//g' | sort -g | uniq}
#TESTCLASS = ${shell find . -name *Test.java | sed 's/.\/src\/\|.java//g' | sed 's/\//./g'}
TESTPACKAGE = ${shell find . -name *Test.java | sed 's/.\/src\/\|.java//g' | sed 's/\//./g'}
PARSER = src/ingame_programming/Script.jj
......@@ -75,6 +75,9 @@ buildplay-term: all
genpars: $(PARSER)
@cd `dirname $<` ;find . -name *.jj | while read i; do java -cp lib/javacc-6.1.2.jar javacc $$i; done
test : all
cd $(BIN); java -cp lib/*:. org.junit.runner.JUnitCore $(TESTPACKAGE)
clean :
rm -rf $(BIN)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment