CI: separate libbacktrace test in its own task (#231)

This commit is contained in:
Ștefan Talpalaru 2021-11-08 18:09:06 +01:00 committed by GitHub
parent 8ce9f54bb7
commit df980dd713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -155,3 +155,4 @@ jobs:
nimble install -y --depsOnly
nimble install -y libbacktrace
nimble test
nimble test_libbacktrace

View File

@ -13,10 +13,10 @@ requires "nim > 1.2.0",
"httputils",
"https://github.com/status-im/nim-unittest2.git#head"
var commandStart = "nim c -r --hints:off --verbosity:0 --skipParentCfg:on --warning[ObservableStores]:off"
task test, "Run all tests":
var
commandStart = "nim c -r --hints:off --verbosity:0 --skipParentCfg:on --warning[ObservableStores]:off"
commands = @[
var commands = @[
commandStart & " -d:useSysAssert -d:useGcAssert tests/",
commandStart & " -d:chronosStackTrace -d:chronosStrictException tests/",
commandStart & " -d:release tests/",
@ -33,3 +33,14 @@ task test, "Run all tests":
exec curcmd
rmFile "tests/" & testname
task test_libbacktrace, "test with libbacktrace":
var commands = @[
commandStart & " -d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace tests/",
]
for testname in ["testall"]:
for cmd in commands:
let curcmd = cmd & testname
echo "\n" & curcmd
exec curcmd
rmFile "tests/" & testname