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