2019-02-06 15:49:11 +01:00
|
|
|
packageName = "chronos"
|
2019-03-15 02:43:51 +02:00
|
|
|
version = "2.2.1"
|
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
|
|
|
|
|
2018-05-22 01:07:11 +03:00
|
|
|
requires "nim > 0.18.0"
|
2018-05-16 11:22:34 +03:00
|
|
|
|
|
|
|
task test, "Run all tests":
|
2019-01-12 13:55:31 +01:00
|
|
|
for tfile in @[
|
|
|
|
"testsync",
|
|
|
|
"testsoon",
|
|
|
|
"testtime",
|
|
|
|
"testfut",
|
|
|
|
"testsignal",
|
|
|
|
"testaddress",
|
|
|
|
"testdatagram",
|
|
|
|
"teststream",
|
|
|
|
"testserver",
|
|
|
|
"testbugs",
|
|
|
|
]:
|
|
|
|
for cmd in @[
|
|
|
|
"nim c -r -d:useSysAssert -d:useGcAssert tests/" & tfile,
|
|
|
|
"nim c -r tests/" & tfile,
|
2019-03-15 02:43:51 +02:00
|
|
|
#"nim c -r --gc:markAndSweep tests/" & tfile,
|
|
|
|
"nim c -r -d:release tests/" & tfile
|
2019-01-12 13:55:31 +01:00
|
|
|
]:
|
|
|
|
echo "\n" & cmd
|
|
|
|
exec cmd
|
2019-01-15 01:41:18 +01:00
|
|
|
rmFile("tests/" & tfile.toExe())
|
2018-05-22 11:51:11 +03:00
|
|
|
|