print more to see the test in the log that was never finished.
This commit is contained in:
parent
a29ec40032
commit
1f7dcb874d
2 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,7 @@ type
|
||||||
actionCompile = "compile"
|
actionCompile = "compile"
|
||||||
actionReject = "reject"
|
actionReject = "reject"
|
||||||
actionRunNoSpec = "runNoSpec"
|
actionRunNoSpec = "runNoSpec"
|
||||||
|
|
||||||
TResultEnum* = enum
|
TResultEnum* = enum
|
||||||
reNimcCrash, # nim compiler seems to have crashed
|
reNimcCrash, # nim compiler seems to have crashed
|
||||||
reMsgsDiffer, # error messages differ
|
reMsgsDiffer, # error messages differ
|
||||||
|
|
@ -39,6 +40,7 @@ type
|
||||||
reBuildFailed # package building failed
|
reBuildFailed # package building failed
|
||||||
reIgnored, # test is ignored
|
reIgnored, # test is ignored
|
||||||
reSuccess # test was successful
|
reSuccess # test was successful
|
||||||
|
|
||||||
TTarget* = enum
|
TTarget* = enum
|
||||||
targetC = "C"
|
targetC = "C"
|
||||||
targetCpp = "C++"
|
targetCpp = "C++"
|
||||||
|
|
|
||||||
|
|
@ -195,7 +195,7 @@ proc addResult(r: var TResults, test: TTest, target: TTarget,
|
||||||
expected, given: string, success: TResultEnum) =
|
expected, given: string, success: TResultEnum) =
|
||||||
let name = test.name.extractFilename & " " & $target & test.options
|
let name = test.name.extractFilename & " " & $target & test.options
|
||||||
let duration = epochTime() - test.startTime
|
let duration = epochTime() - test.startTime
|
||||||
let durationStr = duration.formatFloat(ffDecimal, precision = 8)
|
let durationStr = duration.formatFloat(ffDecimal, precision = 8).align(11)
|
||||||
backend.writeTestResult(name = name,
|
backend.writeTestResult(name = name,
|
||||||
category = test.cat.string,
|
category = test.cat.string,
|
||||||
target = $target,
|
target = $target,
|
||||||
|
|
@ -465,6 +465,7 @@ proc testExec(r: var TResults, test: TTest) =
|
||||||
proc makeTest(test, options: string, cat: Category, action = actionCompile,
|
proc makeTest(test, options: string, cat: Category, action = actionCompile,
|
||||||
env: string = ""): TTest =
|
env: string = ""): TTest =
|
||||||
# start with 'actionCompile', will be overwritten in the spec:
|
# start with 'actionCompile', will be overwritten in the spec:
|
||||||
|
echo "makeTest: ", test
|
||||||
result = TTest(cat: cat, name: test, options: options,
|
result = TTest(cat: cat, name: test, options: options,
|
||||||
action: action, startTime: epochTime())
|
action: action, startTime: epochTime())
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue