runnableExamples: use the self exe to test the examples
This commit is contained in:
parent
ddc6cec69e
commit
31d9df9e75
1 changed files with 1 additions and 1 deletions
|
|
@ -607,7 +607,7 @@ proc testExamples(c: PContext) =
|
||||||
elif isDefined(c.config, "cpp"): "cpp"
|
elif isDefined(c.config, "cpp"): "cpp"
|
||||||
elif isDefined(c.config, "objc"): "objc"
|
elif isDefined(c.config, "objc"): "objc"
|
||||||
else: "c"
|
else: "c"
|
||||||
if os.execShellCmd("nim " & backend & " -r " & outp) != 0:
|
if os.execShellCmd(os.getAppFilename() & " " & backend & " -r " & outp) != 0:
|
||||||
quit "[Examples] failed"
|
quit "[Examples] failed"
|
||||||
removeFile(outp)
|
removeFile(outp)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue