TEST_PROG=../interpreter/mint JITTEST_PROG=../jit/mono CSC=csc /unsafe BENCHSRC=fib.cs random.cs nested-loops.cs ackermann.cs tight-loop.cs sieve.cs TESTSRC= \ array-init.cs \ arraylist.cs \ field-layout.cs \ hash-table.cs \ test-ops.cs \ obj.cs \ string.cs \ stringbuilder.cs \ switch.cs \ outparm.cs \ delegate.cs \ exception.cs \ exception2.cs \ exception3.cs \ exception4.cs \ exception5.cs \ exception6.cs \ exception7.cs \ struct.cs \ valuetype-gettype.cs \ static-constructor.cs \ pinvoke.cs \ box.cs \ array.cs \ enum.cs \ enum2.cs \ property.cs \ enumcast.cs \ custom-attr.cs \ double-cast.cs \ newobj-valuetype.cs \ arraylist-clone.cs \ setenv.cs \ vtype.cs \ isvaluetype.cs \ iface6.cs \ ipaddress.cs \ array-vt.cs \ interface1.cs \ reflection-enum.cs \ reflection-prop.cs \ reflection4.cs \ reflection5.cs \ many-locals.cs \ string-compare.cs \ test-prime.cs \ params.cs \ reflection.cs \ interface.cs \ iface.cs \ iface2.cs \ iface3.cs \ iface4.cs \ virtual-method.cs \ intptrcast.cs \ indexer.cs \ stream.cs \ console.cs \ jit-int.cs \ jit-uint.cs \ jit-long.cs \ long.cs \ jit-ulong.cs \ jit-float.cs \ pop.cs \ time.cs \ appdomain.cs \ appdomain-client.cs \ pointer.cs TESTSI=$(TESTSRC:.cs=.exe) TESTBS=$(BENCHSRC:.cs=.exe) EXTRA_DIST=test-driver $(TESTSRC) %.exe: %.cs $(CSC) $< test: $(TEST_PROG) $(TESTSI) libtest.la @failed=0; \ passed=0; \ export LD_LIBRARY_PATH="`pwd`/.libs:$${LD_LIBRARY_PATH}"; \ for i in $(TESTSI); do \ if ./test-driver $(TEST_PROG) $$i; \ then \ passed=`expr $${passed} + 1`; \ else \ failed=`expr $${failed} + 1`; \ fi \ done; \ echo "$${passed} test(s) passed. $${failed} test(s) failed." testb: $(TEST_PROG) $(TESTBS) for i in $(TESTBS); do \ ./test-driver $(TEST_PROG) $$i; \ done testjit: $(JITTEST_PROG) $(TESTSI) $(TESTBS) for i in $(TESTSI) $(TESTBS); do \ ./test-driver $(JITTEST_PROG) $$i; \ done testjitspeed: $(JITTEST_PROG) $(TESTBS) for i in $(TESTBS); do \ echo $$i; \ time $(JITTEST_PROG) $$i; \ done check: @echo no check yet noinst_LTLIBRARIES = libtest.la libtest_la_LDFLAGS = -rpath `pwd` libtest_la_SOURCES = libtest.c