Disable libbacktrace enabled test on X86 platforms. (#523)
* Disable libbacktrace enabled test on X86 platforms. * Fix mistype. * Use macos-12 workers from now.
This commit is contained in:
parent
47cc17719f
commit
d4f1487b0c
|
@ -34,7 +34,7 @@ jobs:
|
|||
shell: bash
|
||||
- target:
|
||||
os: macos
|
||||
builder: macos-11
|
||||
builder: macos-12
|
||||
shell: bash
|
||||
- target:
|
||||
os: windows
|
||||
|
|
|
@ -20,6 +20,7 @@ let nimc = getEnv("NIMC", "nim") # Which nim compiler to use
|
|||
let lang = getEnv("NIMLANG", "c") # Which backend (c/cpp/js)
|
||||
let flags = getEnv("NIMFLAGS", "") # Extra flags for the compiler
|
||||
let verbose = getEnv("V", "") notin ["", "0"]
|
||||
let platform = getEnv("PLATFORM", "")
|
||||
let testArguments =
|
||||
when defined(windows):
|
||||
[
|
||||
|
@ -60,15 +61,16 @@ task test, "Run all tests":
|
|||
run args, "tests/testall"
|
||||
|
||||
task test_libbacktrace, "test with libbacktrace":
|
||||
let allArgs = @[
|
||||
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
|
||||
]
|
||||
if platform != "x86":
|
||||
let allArgs = @[
|
||||
"-d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace",
|
||||
]
|
||||
|
||||
for args in allArgs:
|
||||
if (NimMajor, NimMinor) > (1, 6):
|
||||
# First run tests with `refc` memory manager.
|
||||
run args & " --mm:refc", "tests/testall"
|
||||
run args, "tests/testall"
|
||||
for args in allArgs:
|
||||
if (NimMajor, NimMinor) > (1, 6):
|
||||
# First run tests with `refc` memory manager.
|
||||
run args & " --mm:refc", "tests/testall"
|
||||
run args, "tests/testall"
|
||||
|
||||
task docs, "Generate API documentation":
|
||||
exec "mdbook build docs"
|
||||
|
|
Loading…
Reference in New Issue