From df980dd71311d90d1c5661c4c6275789a3518548 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C8=98tefan=20Talpalaru?= Date: Mon, 8 Nov 2021 18:09:06 +0100 Subject: [PATCH] CI: separate libbacktrace test in its own task (#231) --- .github/workflows/ci.yml | 1 + chronos.nimble | 17 ++++++++++++++--- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bd5263c..e13e65f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -155,3 +155,4 @@ jobs: nimble install -y --depsOnly nimble install -y libbacktrace nimble test + nimble test_libbacktrace diff --git a/chronos.nimble b/chronos.nimble index 9266fce..311c2d7 100644 --- a/chronos.nimble +++ b/chronos.nimble @@ -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