mirror of
https://github.com/status-im/nim-json-serialization.git
synced 2025-02-19 13:34:19 +00:00
fixes test
This commit is contained in:
parent
dd2a6d8ac3
commit
5d36ea5900
@ -11,7 +11,17 @@ requires "nim >= 0.17.0",
|
||||
"serialization",
|
||||
"stew"
|
||||
|
||||
task test, "Run all tests":
|
||||
exec "nim c -r --threads:off tests/test_all"
|
||||
exec "nim c -r --threads:on tests/test_all"
|
||||
proc test(env, path: string) =
|
||||
# Compilation language is controlled by TEST_LANG
|
||||
var lang = "c"
|
||||
if existsEnv"TEST_LANG":
|
||||
lang = getEnv"TEST_LANG"
|
||||
|
||||
if not dirExists "build":
|
||||
mkDir "build"
|
||||
exec "nim " & lang & " " & env &
|
||||
" -r --hints:off --warnings:off " & path
|
||||
|
||||
task test, "Run all tests":
|
||||
test "--threads:off", "tests/test_all"
|
||||
test "--threads:on", "tests/test_all"
|
||||
|
@ -269,4 +269,4 @@ suite "toJson tests":
|
||||
check decoded["tasks"][0]["label"] == newJString("nim-beacon-chain build")
|
||||
except SerializationError as err:
|
||||
checkpoint err.formatMsg("./cases/comments.json")
|
||||
fail
|
||||
check false
|
||||
|
Loading…
x
Reference in New Issue
Block a user