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
This commit is contained in:
parent
fdb37400cb
commit
90808877c5
16 changed files with 172 additions and 181 deletions
7
koch.nim
7
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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue