Reduce number of test vectors for debug builds.

Force full recompilation of sources.
This commit is contained in:
cheatfate 2018-09-27 14:04:40 +03:00
parent 2a250634d0
commit 833574837f
2 changed files with 11 additions and 11 deletions

View File

@ -11,17 +11,17 @@ requires "nim > 0.18.0"
requires "https://github.com/cheatfate/nimcrypto"
task test, "Run all tests":
exec "nim c -r tests/tarith"
exec "nim c -r -d:release tests/tarith"
exec "nim c -f -r tests/tarith"
exec "nim c -f -r -d:release tests/tarith"
exec "nim c -r tests/tfields"
exec "nim c -r -d:release tests/tfields"
exec "nim c -f -r tests/tfields"
exec "nim c -f -r -d:release tests/tfields"
exec "nim c -r tests/tgroups"
exec "nim c -r -d:release tests/tgroups"
exec "nim c -f -r tests/tgroups"
exec "nim c -f -r -d:release tests/tgroups"
exec "nim c -r tests/tpairing"
exec "nim c -r -d:release tests/tpairing"
exec "nim c -f -r tests/tpairing"
exec "nim c -f -r -d:release tests/tpairing"
exec "nim c -r tests/tvectors"
exec "nim c -r -d:release tests/tvectors"
exec "nim c -f -r tests/tvectors"
exec "nim c -f -r -d:release tests/tvectors"

View File

@ -3,7 +3,7 @@ import nimcrypto/utils
import ../bncurve/[fields, groups]
when not defined(release):
const TestsCount = 1000
const TestsCount = 100
else:
const TestsCount = 10000