java: add 'check' target to Makefile

This commit is contained in:
Nguyen Anh Quynh 2014-10-01 17:13:58 +08:00
parent 984d45068c
commit a3f87a54d9
2 changed files with 9 additions and 0 deletions

View File

@ -59,3 +59,11 @@ ifdef BUILDDIR
rm -rf $(BLDIR)
rm -rf $(OBJDIR)
endif
TESTS = test arm arm64 mips ppc sparc systemz x86 xcore
check:
@for t in $(TESTS); do \
echo Check $$t ... ; \
./run.sh $$t > /dev/null && echo OK || echo FAILED; \
done

View File

@ -12,6 +12,7 @@ fi
case "$1" in
"") java -classpath ${JNA}:. Test ;;
"test") java -classpath ${JNA}:. Test ;;
"arm") java -classpath ${JNA}:. TestArm ;;
"arm64") java -classpath ${JNA}:. TestArm64 ;;
"mips") java -classpath ${JNA}:. TestMips ;;