2020-12-21 11:45:07 +00:00
|
|
|
packageName = "httputils"
|
2021-10-06 13:10:43 +00:00
|
|
|
version = "0.3.0"
|
2020-12-21 11:45:07 +00:00
|
|
|
author = "Status Research & Development GmbH"
|
|
|
|
description = "HTTP request/response helpers & parsing procedures"
|
|
|
|
license = "Apache License 2.0"
|
|
|
|
skipDirs = @["tests", "Nim"]
|
|
|
|
|
|
|
|
### Dependencies
|
2021-10-06 13:10:43 +00:00
|
|
|
requires "nim >= 0.17.3",
|
2022-01-14 09:51:22 +00:00
|
|
|
"stew",
|
|
|
|
"unittest2"
|
2020-12-21 11:45:07 +00:00
|
|
|
|
|
|
|
task test, "run tests":
|
2022-01-14 09:51:22 +00:00
|
|
|
let envNimflags = getEnv("NIMFLAGS")
|
|
|
|
exec "nim c -r " & envNimflags & " -d:useSysAssert -d:useGcAssert --styleCheck:usages --styleCheck:error tests/tvectors"
|
|
|
|
exec "nim c -r " & envNimflags & " tests/tvectors"
|
|
|
|
exec "nim c -r " & envNimflags & " -d:release --threads:on tests/tvectors"
|