svn path=/trunk/mono/; revision=14576
-TEST_PROG=../jit/mono
+TEST_PROG=../mini/mono
+RUNTIME_ARGS="-O=all"
CSC=mcs
inline3.cs \
inline4.cs \
inline5.cs \
+ inline6.cs \
muldiv.cs \
loops.cs \
initlocals.cs \
@failed=0; \
passed=0; \
for i in $(TESTSI); do \
- if ./test-driver $(TEST_PROG) $$i; \
+ if ./test-driver $(TEST_PROG) $$i $(RUNTIME_ARGS); \
then \
passed=`expr $${passed} + 1`; \
else \
--- /dev/null
+using System;
+
+public class Test {
+
+ public static int test (int n) {
+ int x = n + 1;
+
+ return x;
+ }
+
+ public static int Main (string[] args) {
+ int repeat = 1;
+
+ /*
+ if (args.Length == 1)
+ repeat = Convert.ToInt32 (args [0]);
+
+ Console.WriteLine ("Repeat = " + repeat);
+ */
+
+ for (int i = 0; i < repeat; i++)
+ for (int j = 0; j < 500000000; j++)
+ test (12345);
+
+ return 0;
+ }
+}
+
+
for ($c = 20 - length ($test); $c > 0; $c--) { print " "; }
-my $res = system("/usr/bin/time -o .res -f '%U' $interpreter $test 2>/dev/null 1>$stdout");
+my $res = system("/usr/bin/time -o .res -f '%U' $interpreter @ARGV $test 2>/dev/null 1>$stdout");
if ($res) {
printf ("failed $? (%d) signal (%d).\n", $? >> 8, $? & 127);