SHELL := bash
JAVAC := javac
-JAVA_FILES := $(wildcard tests/*.java)
+JAVA_FILES := $(wildcard tests/*.java java/lang/*.java java/io/*.java)
CLASS_FILES := $(JAVA_FILES:.java=.class)
HS_FILES := $(wildcard Mate/*.hs)
HS_BOOT := $(wildcard Mate/*.hs-boot)
./$< tests/Instance1 | grep mainresult
@printf "should be: 0x%08x 0x%08x\n" 0x55 0x11
./$< tests/Instance2 | grep mainresult
- @printf "should be: 0x%08x\n" 0x198
+ @printf "should be: 0x%08x 0x%08x\n" 0x198 0x22
+ ./$< tests/Instance3 | grep mainresult
+ @printf "should be: 0x%08x 0x%08x\n" 0x33 0x44
+ ./$< tests/Instance4 | grep mainresult
+ @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
%.class: %.java
$(JAVAC) $<