nim-faststreams/faststreams.nimble

30 lines
817 B
Plaintext
Raw Normal View History

mode = ScriptMode.Verbose
packageName = "faststreams"
version = "0.2.0"
author = "Status Research & Development GmbH"
description = "Nearly zero-overhead input/output streams for Nim"
license = "Apache License 2.0"
skipDirs = @["tests"]
requires "nim >= 1.2.0",
2020-04-13 18:59:34 +00:00
"stew",
2020-05-01 18:39:08 +00:00
"testutils",
"chronos",
"unittest2"
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 &
" -r --hints:off --skipParentCfg " & path
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"