nimble: remove nimcache setting, add release mode test task

This commit is contained in:
Jacek Sieka 2018-09-07 13:31:02 -06:00
parent 806988abf5
commit f19dc30836
No known key found for this signature in database
GPG Key ID: 6299FEB3EB6FA465
1 changed files with 4 additions and 3 deletions

View File

@ -12,16 +12,17 @@ requires "nim >= 0.18.0", "nimcrypto >= 0.1.0"
proc test(name: string, lang: string = "c") =
if not dirExists "build":
mkDir "build"
if not dirExists "nimcache":
mkDir "nimcache"
--run
--nimcache: "nimcache"
switch("out", ("./build/" & name))
setCommand lang, "tests/" & name & ".nim"
task test, "Run Proof-of-Work tests (without mining)":
test "all_tests"
task testRelease, "test release mode":
switch("define", "release")
testTask()
task test_mining, "Run Proof-of-Work and mining tests (test in release mode + OpenMP + march=native)":
switch("define", "release")
switch("define", "openmp")