nim-chronos/chronos.nimble
Eugene Kabanov ef2430d08d
Add Accept header handling to httpserver.nim. (#211)
* Add `Accept` header handling to httpserver.nim.
Add simple test suite.
Bump version to 3.0.6.

* Fix compilation error.
2021-07-28 17:08:38 +03:00

36 lines
1.2 KiB
Nim

packageName = "chronos"
version = "3.0.6"
author = "Status Research & Development GmbH"
description = "Chronos"
license = "Apache License 2.0 or MIT"
skipDirs = @["tests"]
### Dependencies
requires "nim > 1.2.0",
"stew",
"bearssl",
"httputils",
"https://github.com/status-im/nim-unittest2.git#head"
task test, "Run all tests":
var
commandStart = "nim c -r --hints:off --verbosity:0 --skipParentCfg:on --warning[ObservableStores]:off"
commands = @[
commandStart & " -d:useSysAssert -d:useGcAssert tests/",
commandStart & " -d:chronosStackTrace -d:chronosStrictException tests/",
commandStart & " -d:release tests/",
commandStart & " -d:release -d:chronosFutureTracking tests/",
commandStart & " -d:release --debugger:native -d:chronosStackTrace -d:nimStackTraceOverride --import:libbacktrace tests/",
]
when (NimMajor, NimMinor) >= (1, 5):
commands.add commandStart & " --gc:orc -d:chronosFutureTracking -d:release -d:chronosStackTrace tests/"
for testname in ["testall"]:
for cmd in commands:
let curcmd = cmd & testname
echo "\n" & curcmd
exec curcmd
rmFile "tests/" & testname