summary refs log tree commit diff stats
path: root/koch.nim
diff options
context:
space:
mode:
authorTimothee Cour <timothee.cour2@gmail.com>2020-06-27 07:51:17 -0700
committerGitHub <noreply@github.com>2020-06-27 16:51:17 +0200
commit90808877c54a3822a978124f39f470ea95e37d4d (patch)
tree1d972fd87d549629297fb4cd220c54bcaf7f6229 /koch.nim
parentfdb37400cba234938a27cf158b6f4cf3ac57d689 (diff)
downloadNim-90808877c54a3822a978124f39f470ea95e37d4d.tar.gz
testament: generic N-fold batching: windows CI 37mn=>16m (#14823)
* testament: run CI faster thanks to batching
* move ta_in, tstdin into existing tosproc
* move ta_out,tafalse,texitcode,tstderr into existing tosproc
* joinable osproc
* move tstdout into existing tosproc
* spec: batchable; fix tests
* fixup
Diffstat (limited to 'koch.nim')
-rw-r--r--koch.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/koch.nim b/koch.nim
index bbcb0e349..e279d76de 100644
--- a/koch.nim
+++ b/koch.nim
@@ -548,7 +548,12 @@ proc runCI(cmd: string) =
       execFold("Compile tester", "nim c -d:nimCoroutines --os:genode -d:posix --compileOnly testament/testament")
 
     # main bottleneck here
-    execFold("Run tester", "nim c -r -d:nimCoroutines testament/testament --pedantic all -d:nimCoroutines")
+    # xxx: even though this is the main bottlneck, we could use same code to batch the other tests
+    #[
+    BUG: with initOptParser, `--batch:'' all` interprets `all` as the argument of --batch
+    ]#
+    execFold("Run tester", "nim c -r -d:nimCoroutines testament/testament --pedantic --batch:$1 all -d:nimCoroutines" % ["NIM_TESTAMENT_BATCH".getEnv("_")])
+
     block CT_FFI:
       when defined(posix): # windows can be handled in future PR's
         execFold("nimble install -y libffi", "nimble install -y libffi")