tester reports ignored tests and supports 'nimout'; fixes #2211

This commit is contained in:
Araq 2015-02-25 12:59:19 +01:00
commit 335c19c869
7 changed files with 48 additions and 10 deletions

View file

@ -48,6 +48,7 @@ type
err*: TResultEnum
substr*, sortoutput*: bool
targets*: set[TTarget]
nimout*: string
const
targetToExt*: array[TTarget, string] = ["c", "cpp", "m", "js"]
@ -94,6 +95,7 @@ proc parseSpec*(filename: string): TSpec =
result.file = filename
result.msg = ""
result.outp = ""
result.nimout = ""
result.ccodeCheck = ""
result.cmd = cmdTemplate
parseSpecAux:
@ -124,6 +126,8 @@ proc parseSpec*(filename: string): TSpec =
of "errormsg":
result.msg = e.value
result.action = actionReject
of "nimout":
result.nimout = e.value
of "disabled":
if parseCfgBool(e.value): result.err = reIgnored
of "cmd": result.cmd = e.value