Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCésar Natarén <cesar@mono-cvs.ximian.com>2004-01-16 12:02:25 +0300
committerCésar Natarén <cesar@mono-cvs.ximian.com>2004-01-16 12:02:25 +0300
commit70aae5a53644c0c89cbe43f6c9a5a924673a605d (patch)
tree6bc3d297f32a033cab7e0b819444e7f3b9ed46bb /mcs/jtests
parentc442550ec79e0d2150c50805c9623c68ddae67e8 (diff)
stole this makefile from Anirban's btests
svn path=/trunk/mcs/; revision=22157
Diffstat (limited to 'mcs/jtests')
-rw-r--r--mcs/jtests/Makefile47
1 files changed, 47 insertions, 0 deletions
diff --git a/mcs/jtests/Makefile b/mcs/jtests/Makefile
new file mode 100644
index 00000000000..ace842ef784
--- /dev/null
+++ b/mcs/jtests/Makefile
@@ -0,0 +1,47 @@
+thisdir = jtests
+SUBDIRS =
+INTERNAL_MJS = $(TEST_RUNTIME) $(topdir)/class/Microsoft.JScript/Microsoft.JScript/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 *~
+