2018-12-17 21:48:33 +00:00
|
|
|
mode = ScriptMode.Verbose
|
|
|
|
|
|
|
|
packageName = "faststreams"
|
2020-04-29 18:19:18 +00:00
|
|
|
version = "0.2.0"
|
2018-12-17 21:48:33 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "Nearly zero-overhead input/output streams for Nim"
|
|
|
|
license = "Apache License 2.0"
|
|
|
|
skipDirs = @["tests"]
|
|
|
|
|
2020-04-16 21:22:35 +00:00
|
|
|
requires "nim >= 1.2.0",
|
2020-04-13 18:59:34 +00:00
|
|
|
"stew",
|
2020-05-01 18:39:08 +00:00
|
|
|
"testutils",
|
2021-05-27 22:36:44 +00:00
|
|
|
"chronos",
|
|
|
|
"unittest2"
|
2018-12-17 21:48:33 +00:00
|
|
|
|
2021-01-07 05:18:00 +00:00
|
|
|
### Helper functions
|
|
|
|
proc test(env, path: string) =
|
|
|
|
# Compilation language is controlled by TEST_LANG
|
|
|
|
var lang = "c"
|
|
|
|
if existsEnv"TEST_LANG":
|
|
|
|
lang = getEnv"TEST_LANG"
|
|
|
|
|
|
|
|
exec "nim " & lang & " " & env &
|
2021-05-27 22:36:44 +00:00
|
|
|
" -r --hints:off --skipParentCfg " & path
|
2019-01-09 22:21:31 +00:00
|
|
|
|
2021-01-07 05:18:00 +00:00
|
|
|
task test, "Run all tests":
|
|
|
|
test "-d:debug --threads:on", "tests/all_tests"
|
|
|
|
test "-d:release --threads:on", "tests/all_tests"
|
|
|
|
test "-d:danger --threads:on", "tests/all_tests"
|