mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-07 08:54:08 +00:00
ce6e7d17b1
* Make Future tracking optional via -d:chronosDutureTracking compilation flag. * Stack traces is now optional, use -d:chronosStackTraces. * Fix mistypes and add test for chronosStackTrace option.
25 lines
638 B
Nim
25 lines
638 B
Nim
packageName = "chronos"
|
|
version = "2.4.2"
|
|
author = "Status Research & Development GmbH"
|
|
description = "Chronos"
|
|
license = "Apache License 2.0 or MIT"
|
|
skipDirs = @["tests"]
|
|
|
|
### Dependencies
|
|
|
|
requires "nim > 0.19.4",
|
|
"bearssl"
|
|
|
|
task test, "Run all tests":
|
|
var commands = [
|
|
"nim c -r -d:useSysAssert -d:useGcAssert tests/",
|
|
"nim c -r -d:chronosStackTrace tests/",
|
|
"nim c -r -d:release tests/",
|
|
"nim c -r -d:release -d:chronosFutureTracking tests/"
|
|
]
|
|
for testname in ["testall"]:
|
|
for cmd in commands:
|
|
let curcmd = cmd & testname
|
|
echo "\n" & curcmd
|
|
exec curcmd
|