added 'koch testinstall' command; more installer related bugfixes

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

View File

@@ -1,9 +1,9 @@
discard """
file: "tasynceverror.nim"
exitcode: 1
outputsub: "Error: unhandled exception: Connection reset by peer"
outputsub: "Error: unhandled exception: "
"""
# error message is actually different on OSX
import
asyncdispatch,
asyncnet,

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: