Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: a3e0eecf76
Fetching contributors…

Cannot retrieve contributors at this time

48 lines (40 sloc) 1.23 kb
thisdir = jtests
SUBDIRS =
INTERNAL_MJS = $(TEST_RUNTIME) $(topdir)/tools/mjs/mjs.exe
all: test-compiler-jit
include ../build/rules.make
include Test.Sources
all-local install-local:
test-local:
run-test-local: test-compiler-jit
test-compiler-jit: test-compiler-jit-real
test-compiler-jit-real:
@rm -f *.exe *.out; \
/bin/echo "*** Tests ***" > results.out; \
/bin/echo "*** Tests ***"; \
for i in $(TEST_SOURCES) ; do \
/bin/echo -n -e "===\n$$i: " >> results.out; \
/bin/echo -n "$$i: "; \
if $(INTERNAL_MJS) $$i.js 1>output ; then \
/bin/echo -n "COMPILED OK : " >> results.out; \
/bin/echo -n "COMPILED OK : " ; \
true; \
else \
/bin/echo -n -e "FAILED COMPILATION\n---\n" >> results.out; \
cat output >> results.out; \
/bin/echo "FAILED COMPILATION" ; \
continue; \
fi ; \
if $(TEST_RUNTIME) ./$$i.exe 1>output ; then \
/bin/echo "EXECUTED OK" >> results.out; \
/bin/echo "EXECUTED OK"; \
else \
/bin/echo -n -e "$$i : FAILED AT RUNTIME\n---\n" >> results.out; \
cat output >> results.out; \
/bin/echo "$$i : FAILED AT RUNTIME" ; \
fi ; \
rm -f ./$$i.exe output; \
done; \
/bin/echo "===" >> results.out
clean-local:
rm *~
Jump to Line
Something went wrong with that request. Please try again.