diff options
author | Araq <rumpf_a@web.de> | 2014-01-22 17:32:38 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-01-22 17:32:38 +0100 |
commit | 37229df7fc044fe108d2f4d88f127141cabeb6a6 (patch) | |
tree | 2dd7dbacaa4afecdd9c6bde5180c43df24b0a914 /koch.nim | |
parent | 85a5bfe60520a59ff9ce493dfa65bf9cbd86059e (diff) | |
download | Nim-37229df7fc044fe108d2f4d88f127141cabeb6a6.tar.gz |
next steps for closure iterators
Diffstat (limited to 'koch.nim')
-rw-r--r-- | koch.nim | 9 |
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 |