added 'koch testinstall' command; more installer related bugfixes

This commit is contained in:
Andreas Rumpf 2016-06-09 17:34:51 +02:00
commit 76c8d6164b
7 changed files with 78 additions and 17 deletions

View file

@ -155,7 +155,11 @@ proc parseSpec*(filename: string): TSpec =
result.nimout = e.value
of "disabled":
if parseCfgBool(e.value): result.err = reIgnored
of "cmd": result.cmd = e.value
of "cmd":
if e.value.startsWith("nim "):
result.cmd = "compiler" / e.value
else:
result.cmd = e.value
of "ccodecheck": result.ccodeCheck = e.value
of "target", "targets":
for v in e.value.normalize.split:

View file

@ -284,6 +284,7 @@ proc testSpec(r: var TResults, test: TTest) =
return
let tname = test.name.addFileExt(".nim")
#echo "TESTING ", tname
inc(r.total)
var expected: TSpec
if test.action != actionRunNoSpec: