2019-02-06 14:49:11 +00:00
|
|
|
packageName = "chronos"
|
2021-03-02 13:27:42 +00:00
|
|
|
version = "2.6.0"
|
2018-05-16 08:22:34 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
2019-02-06 14:49:11 +00:00
|
|
|
description = "Chronos"
|
2018-05-16 08:22:34 +00:00
|
|
|
license = "Apache License 2.0 or MIT"
|
2019-02-06 15:24:57 +00:00
|
|
|
skipDirs = @["tests"]
|
2018-05-16 08:22:34 +00:00
|
|
|
|
|
|
|
### Dependencies
|
|
|
|
|
2020-07-12 16:22:47 +00:00
|
|
|
requires "nim > 1.2.0",
|
|
|
|
"stew",
|
2021-01-30 18:17:22 +00:00
|
|
|
"bearssl",
|
2021-02-02 10:51:48 +00:00
|
|
|
"httputils"
|
2018-05-16 08:22:34 +00:00
|
|
|
|
|
|
|
task test, "Run all tests":
|
2019-03-30 22:31:10 +00:00
|
|
|
var commands = [
|
2020-08-15 22:45:41 +00:00
|
|
|
"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/"
|
2019-03-24 16:57:36 +00:00
|
|
|
]
|
2020-07-06 06:33:13 +00:00
|
|
|
for testname in ["testall"]:
|
|
|
|
for cmd in commands:
|
|
|
|
let curcmd = cmd & testname
|
|
|
|
echo "\n" & curcmd
|
|
|
|
exec curcmd
|