megatest checks output and nimout

This commit is contained in:
Arne Döring 2018-12-05 00:42:56 +01:00 • committed by Araq
commit 3859878db8
16 changed files with 218 additions and 202 deletions

View file

@ -57,7 +57,7 @@ type
input*: string
outputCheck*: TOutputCheck
sortoutput*: bool
outp*: string
output*: string
line*, column*: int
tfile*: string
tline*, tcolumn*: int
@ -161,12 +161,12 @@ proc parseSpec*(filename: string): TSpec =
discard parseInt(e.value, result.tcolumn)
of "output":
result.outputCheck = ocEqual
result.outp = strip(e.value)
result.output = strip(e.value)
of "input":
result.input = e.value
of "outputsub":
result.outputCheck = ocSubstr
result.outp = strip(e.value)
result.output = strip(e.value)
of "sortoutput":
try:
result.sortoutput = parseCfgBool(e.value)