nim-stint/mpint.nimble

32 lines
870 B
Plaintext
Raw Normal View History

2018-02-15 12:11:01 +00:00
packageName = "mpint"
version = "0.0.1"
author = "Status Research & Development GmbH"
description = "Efficient multiprecision int in Nim"
2018-03-02 10:48:08 +00:00
license = "Apache License 2.0 or MIT"
2018-02-15 12:11:01 +00:00
srcDir = "src"
### Dependencies
2018-03-02 10:48:08 +00:00
requires "nim >= 0.18"
2018-02-15 14:09:58 +00:00
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_debug, "Run all tests - test implementation (MpUint[64] = 2x uint32":
switch("define", "mpint_test")
2018-02-15 14:09:58 +00:00
test "all_tests"
task test_prod, "Run all tests - prod implementation (MpUint[64] = uint64":
test "all_tests"
task test, "Run all tests - test and production implementation":
exec "nimble test_debug"
exec "nimble test_prod"