3 INTERNAL_MJS
= $(TEST_RUNTIME
) $(topdir
)/tools
/mjs
/mjs.exe
5 include ..
/build
/rules.make
8 all-local install-local
:
12 run-test-local
: test-compiler-jit
14 test-compiler-jit
: test-compiler-jit-real
16 test-compiler-jit-real
:
18 /bin
/echo
"*** Tests ***" > results.out
; \
19 /bin
/echo
"*** Tests ***"; \
20 for i in
$(TEST_SOURCES
) ; do \
21 /bin
/echo
-n
-e
"===\n$$i: " >> results.out
; \
22 /bin
/echo
-n
"$$i: "; \
23 if
$(INTERNAL_MJS
) $$i.js
1>output
; then \
24 /bin
/echo
-n
"COMPILED OK : " >> results.out
; \
25 /bin
/echo
-n
"COMPILED OK : " ; \
28 /bin
/echo
-n
-e
"FAILED COMPILATION\n---\n" >> results.out
; \
29 cat output
>> results.out
; \
30 /bin
/echo
"FAILED COMPILATION" ; \
33 if
$(TEST_RUNTIME
) .
/$$i.exe
1>output
; then \
34 /bin
/echo
"EXECUTED OK" >> results.out
; \
35 /bin
/echo
"EXECUTED OK"; \
37 /bin
/echo
-n
-e
"$$i : FAILED AT RUNTIME\n---\n" >> results.out
; \
38 cat output
>> results.out
; \
39 /bin
/echo
"$$i : FAILED AT RUNTIME" ; \
41 rm -f .
/$$i.exe output
; \
43 /bin
/echo
"===" >> results.out