varargs: make printf working
[mate.git] / Makefile
index 2b4182d46c57c28e13e35a28701e2d9884639e1d..87aca3b6201941f6e8a9ae1ab9ffec5fbac91138 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -60,6 +60,15 @@ test: mate $(CLASS_FILES)
        @printf "should be:  0x%08x 0x%08x\n" 0x1337 0x1337
        ./$< tests/Native2 | grep "printstream"
        @printf "should be:   0x%08x\n" 0x1337
+       ./$< tests/Native3 | egrep -e "^Hello World"
+       @printf "should be: %s\n" "Hello World"
+       ./$< tests/Strings1 | egrep -c -e "^okay :-\)"
+       @printf "should be: %d\n" 3
+       ./$< tests/Array1 | grep "printstream"
+       @printf "should be:   0x%08x 0x%08x\n" 0x264 0x8
+       ./$< tests/Integer1 | grep mainresult
+       @printf "should be:  0x%08x\n" 0x1337
+       ./$< tests/VarArgs1 | grep mainresult
 
 %.class: %.java
        $(JAVAC) $<