26 lines
774 B
Nim
26 lines
774 B
Nim
packageName = "chronos"
|
|
version = "2.5.1"
|
|
author = "Status Research & Development GmbH"
|
|
description = "Chronos"
|
|
license = "Apache License 2.0 or MIT"
|
|
skipDirs = @["tests"]
|
|
|
|
### Dependencies
|
|
|
|
requires "nim > 1.2.0",
|
|
"stew",
|
|
"bearssl"
|
|
|
|
task test, "Run all tests":
|
|
var commands = [
|
|
"nim c -r --skipUserCfg --skipParentCfg -d:useSysAssert -d:useGcAssert tests/",
|
|
"nim c -r --skipUserCfg --skipParentCfg -d:chronosStackTrace tests/",
|
|
"nim c -r --skipUserCfg --skipParentCfg -d:release tests/",
|
|
"nim c -r --skipUserCfg --skipParentCfg -d:release -d:chronosFutureTracking tests/"
|
|
]
|
|
for testname in ["testall"]:
|
|
for cmd in commands:
|
|
let curcmd = cmd & testname
|
|
echo "\n" & curcmd
|
|
exec curcmd
|