nim-stew/stew.nimble

28 lines
1.1 KiB
Plaintext
Raw Normal View History

mode = ScriptMode.Verbose
2019-07-06 17:12:24 +00:00
packageName = "stew"
version = "0.1.0"
author = "Status Research & Development GmbH"
2019-05-08 20:05:16 +00:00
description = "Backports, standard library candidates and small utilities that don't yet deserve their own repository"
license = "Apache License 2.0"
skipDirs = @["tests"]
requires "nim >= 1.2.0",
"unittest2"
2019-07-06 18:00:37 +00:00
2021-01-07 03:33:01 +00:00
### Helper functions
proc test(args, path: string) =
2021-01-07 03:33:01 +00:00
# Compilation language is controlled by TEST_LANG
exec "nim " & getEnv("TEST_LANG", "c") & " " & getEnv("NIMFLAGS") & " " & args &
2021-12-02 15:24:02 +00:00
" -r --hints:off --skipParentCfg --styleCheck:usages --styleCheck:error " & path
2021-01-07 03:33:01 +00:00
2019-07-06 18:00:37 +00:00
task test, "Run all tests":
2021-01-07 03:33:01 +00:00
test "--threads:off", "tests/all_tests"
test "--threads:on -d:nimTypeNames", "tests/all_tests"
test "--threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests"
2020-06-15 14:09:41 +00:00
task testvcc, "Run all tests with vcc compiler":
2021-01-07 03:33:01 +00:00
test "--cc:vcc --threads:off", "tests/all_tests"
test "--cc:vcc --threads:on -d:nimTypeNames", "tests/all_tests"
test "--cc:vcc --threads:on -d:noIntrinsicsBitOpts -d:noIntrinsicsEndians", "tests/all_tests"