Commits

Miki Tebeka  committed f178ed0

Java and Mono

  • Participants
  • Parent commits adbcaf8

Comments (0)

Files changed (3)

 syntax: glob
 
 noop
+noopcc
+noop.class
+noop.exe
+public class noop {
+    public static void Main() {
+    }
+}
 
 Program = namedtuple("Program", ["name", "compile", "run"])
 
-def program(compile, run):
-    name = compile[0]
+def program(compile, run, **kw):
+    name = kw.get("name") or compile[0]
 
-    return Program(compile[0].title(), with_args(compile), with_args(run))
+    return Program(name.title(), with_args(compile), with_args(run))
 
 programs = [
     program(["gcc", "-O3", "-o", "noop", "noop.c"],
             ["./noop"]),
     program(["g++", "-O3", "-o", "noopcc", "noop.cc"],
             ["./noopcc"]),
-    program(["javac", "noop.java"], ["java", "noop"]),
+    program(["javac", "noop.java"], ["java", "noop"], name="java"),
+    program(["gmcs", "-optimize+", "noop.cs"], ["./noop.exe"], name="mono"),
 ]
 
 def timeit(command):