summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-22 17:32:38 +0100
committerAraq <rumpf_a@web.de>2014-01-22 17:32:38 +0100
commit37229df7fc044fe108d2f4d88f127141cabeb6a6 (patch)
tree2dd7dbacaa4afecdd9c6bde5180c43df24b0a914 /koch.nim
parent85a5bfe60520a59ff9ce493dfa65bf9cbd86059e (diff)
downloadNim-37229df7fc044fe108d2f4d88f127141cabeb6a6.tar.gz
next steps for closure iterators
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim9
1 files changed, 6 insertions, 3 deletions
diff --git a/koch.nim b/koch.nim
index 1814a0efc..35a86a597 100644
--- a/koch.nim
+++ b/koch.nim
@@ -42,7 +42,7 @@ Possible Commands:
   csource [options]        builds the C sources for installation
   zip                      builds the installation ZIP package
   inno [options]           builds the Inno Setup installer (for Windows)
-  tests                    run the testsuite
+  tests [options]          run the testsuite
   update                   updates nimrod to the latest version from github
                            (compile koch with -d:withUpdate to enable)
   temp options             creates a temporary compiler for testing
@@ -260,11 +260,14 @@ when defined(withUpdate):
 
 # -------------- tests --------------------------------------------------------
 
+template `|`(a, b): expr = (if a.len > 0: a else: b)
+
 proc tests(args: string) =
   # we compile the tester with taintMode:on to have a basic
   # taint mode test :-)
-  exec("nimrod cc --taintMode:on tests/testament/tester")
-  exec(getCurrentDir() / "tests/testament/tester".exe & " all")
+  exec "nimrod cc --taintMode:on tests/testament/tester"
+  exec quoteShell(getCurrentDir() / "tests/testament/tester".exe) & " " &
+      (args|"all")
 
 proc temp(args: string) =
   var output = "compiler" / "nimrod".exe