2018-05-16 11:22:34 +03:00
|
|
|
packageName = "asyncdispatch2"
|
2018-12-12 13:07:41 +02:00
|
|
|
version = "2.1.6"
|
2018-05-16 11:22:34 +03:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Asyncdispatch2"
|
|
|
|
license = "Apache License 2.0 or MIT"
|
2018-06-18 23:57:40 +03:00
|
|
|
skipDirs = @["tests", "Nim", "nim", "benchmarks"]
|
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,
|
|
|
|
"nim c -r --gc:markAndSweep tests/" & tfile,
|
|
|
|
"nim c -r -d:release tests/" & tfile,
|
|
|
|
]:
|
|
|
|
echo "\n" & cmd
|
|
|
|
exec cmd
|
|
|
|
rmFile("tests/" & tfile)
|
2018-05-22 11:51:11 +03:00
|
|
|
|