parent
66d79bf9a0
commit
22aa3c1d13
1 changed files with 10 additions and 0 deletions
|
|
@ -1002,7 +1002,17 @@ proc test(options: Options) =
|
||||||
optsCopy.action.compileOptions = @[]
|
optsCopy.action.compileOptions = @[]
|
||||||
optsCopy.action.compileOptions.add("-r")
|
optsCopy.action.compileOptions.add("-r")
|
||||||
optsCopy.action.compileOptions.add("--path:.")
|
optsCopy.action.compileOptions.add("--path:.")
|
||||||
|
let
|
||||||
|
binFileName = file.path.changeFileExt(ExeExt)
|
||||||
|
existsBefore = existsFile(binFileName)
|
||||||
|
|
||||||
execBackend(optsCopy)
|
execBackend(optsCopy)
|
||||||
|
|
||||||
|
let
|
||||||
|
existsAfter = existsFile(binFileName)
|
||||||
|
canRemove = not existsBefore and existsAfter
|
||||||
|
if canRemove:
|
||||||
|
removeFile(binFileName)
|
||||||
|
|
||||||
display("Success:", "All tests passed", Success, HighPriority)
|
display("Success:", "All tests passed", Success, HighPriority)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue