Enable -d:checkAbi in tests
This commit is contained in:
parent
25660ac475
commit
1f2d7892ad
2 changed files with 6 additions and 3 deletions
|
|
@ -18,8 +18,11 @@ proc execCmd(cmd: string) =
|
||||||
exec "tests/timeit " & cmd
|
exec "tests/timeit " & cmd
|
||||||
|
|
||||||
proc execTest(test: string, flags = "", runDocs = true) =
|
proc execTest(test: string, flags = "", runDocs = true) =
|
||||||
execCmd "nim c --hints:off -f " & flags & " -r " & test
|
execCmd "nim c --hints:off -f -d:checkAbi " & flags & " -r " & test
|
||||||
execCmd "nim cpp --hints:off " & flags & " -r " & test
|
let
|
||||||
|
# -d:checkAbi broken in cpp mode until post 1.2.0
|
||||||
|
cppAbi = when (NimMajor, NimMinor) >= (1, 3): "-d:checkAbi " else: ""
|
||||||
|
execCmd "nim cpp --hints:off " & cppAbi & flags & " -r " & test
|
||||||
|
|
||||||
if runDocs:
|
if runDocs:
|
||||||
let docPath = "build/html_" & test.extractFileName.changeFileExt("") & "_docs"
|
let docPath = "build/html_" & test.extractFileName.changeFileExt("") & "_docs"
|
||||||
|
|
|
||||||
|
|
@ -14,7 +14,7 @@ proc testCall(cmd, output: string, exitCode: int, delete = true) =
|
||||||
doAssert outp.contains(output), outp
|
doAssert outp.contains(output), outp
|
||||||
|
|
||||||
var
|
var
|
||||||
cmd = "nim c -f --hints:off -d:FLAGS=\"-f:ast2\""
|
cmd = "nim c -f --hints:off -d:FLAGS=\"-f:ast2\" -d:checkAbi"
|
||||||
lrcmd = " -r lzma.nim"
|
lrcmd = " -r lzma.nim"
|
||||||
zrcmd = " -r zlib.nim"
|
zrcmd = " -r zlib.nim"
|
||||||
lexp = "liblzma version = "
|
lexp = "liblzma version = "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue