2020-12-21 11:45:07 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "json_serialization"
|
|
|
|
version = "0.1.0"
|
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Flexible JSON serialization not relying on run-time type information"
|
|
|
|
license = "Apache License 2.0"
|
|
|
|
skipDirs = @["tests"]
|
|
|
|
|
|
|
|
requires "nim >= 0.17.0",
|
|
|
|
"serialization",
|
|
|
|
"stew"
|
|
|
|
|
2022-01-14 09:51:22 +00:00
|
|
|
proc test(args, path: string) =
|
2021-02-02 11:46:38 +00:00
|
|
|
if not dirExists "build":
|
|
|
|
mkDir "build"
|
2022-01-14 09:51:22 +00:00
|
|
|
|
|
|
|
exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args &
|
2022-05-20 11:39:42 +00:00
|
|
|
" -d:nimOldCaseObjects " &
|
2022-01-14 09:51:22 +00:00
|
|
|
" -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:error " & path
|
2020-12-21 11:45:07 +00:00
|
|
|
|
2021-02-02 11:46:38 +00:00
|
|
|
task test, "Run all tests":
|
|
|
|
test "--threads:off", "tests/test_all"
|
|
|
|
test "--threads:on", "tests/test_all"
|