Add timeit to measure test timings
This commit is contained in:
parent
76d9be756a
commit
492eba8f22
4 changed files with 36 additions and 14 deletions
|
|
@ -2,16 +2,11 @@ import strutils
|
|||
|
||||
proc testCall(cmd, output: string, exitCode: int, delete = true) =
|
||||
var
|
||||
ccmd =
|
||||
when defined(windows):
|
||||
"cmd /c " & cmd
|
||||
else:
|
||||
cmd
|
||||
ccmd = "../tests/timeit " & cmd
|
||||
|
||||
if not delete:
|
||||
ccmd = ccmd.replace(" -f ", " ")
|
||||
|
||||
echo ccmd
|
||||
var
|
||||
(outp, exitC) = gorgeEx(ccmd)
|
||||
echo outp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue