-
Notifications
You must be signed in to change notification settings - Fork 2
/
symbolicnim.nimble
29 lines (25 loc) · 995 Bytes
/
symbolicnim.nimble
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Package
version = "0.2.3"
author = "HugoGranstrom"
description = "A symbolic algebra library written in Nim"
license = "MIT"
srcDir = "src"
task test, "Runs the test suite":
const filenames = ["tests/testSuite.nim", "tests/testSuiteCT.nim"]
when defined(windows):
const binaryExt = ".exe"
else:
const binaryExt = ""
echo "####################\nRunning tests using Refc GC:\n####################"
for name in filenames:
exec "nim c -r --gc:refc -o:bin/testSuite" & binaryExt & " " & name
echo "####################\nRunning tests using GC:ARC:\n####################"
for name in filenames:
exec "nim c -r --gc:arc -o:bin/testSuite" & binaryExt & " " & name
echo "####################\nRunning tests using GC:ORC:\n####################"
for name in filenames:
exec "nim c -r --gc:orc -o:bin/testSuite" & binaryExt & " " & name
# Dependencies
requires "nim >= 1.2.6"
requires "arraymancer >= 0.5"
requires "terminaltables"