mirror of
https://github.com/logos-storage/nim-chronos.git
synced 2026-01-08 16:33:13 +00:00
* Update file headers, copyright date * Rename files and hopefully fix nimble * Forgot to change path in tests * Update readme
37 lines
888 B
Nim
37 lines
888 B
Nim
packageName = "chronos"
|
|
version = "2.2.0"
|
|
author = "Status Research & Development GmbH"
|
|
description = "Chronos"
|
|
license = "Apache License 2.0 or MIT"
|
|
# workaround while chronos is still named asyncdispatch2 in Nimble
|
|
srcDir = "chronos"
|
|
# skipDirs = @["tests"]
|
|
|
|
### Dependencies
|
|
|
|
requires "nim > 0.18.0"
|
|
|
|
task test, "Run all tests":
|
|
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,
|
|
"nim c -r --gc:markAndSweep tests/" & tfile,
|
|
"nim c -r -d:release tests/" & tfile,
|
|
]:
|
|
echo "\n" & cmd
|
|
exec cmd
|
|
rmFile("tests/" & tfile.toExe())
|
|
|