-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnimBMP.nimble
36 lines (29 loc) · 1.08 KB
/
nimBMP.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
30
31
32
33
34
35
36
packageName = "nimBMP"
version = "0.1.8"
author = "Andri Lim"
description = "BMP encoder and decoder"
license = "MIT"
skipDirs = @["tests", "manual"]
requires: "nim >= 1.0.2"
### Helper functions
proc test(env, path: string) =
# Compilation language is controlled by TEST_LANG
var lang = "c"
if existsEnv"TEST_LANG":
lang = getEnv"TEST_LANG"
exec "nim " & lang & " " & env &
" -r --hints:off --warnings:off " & path
task test, "Run tests":
test "-d:debug", "tests/test_codec.nim"
test "-d:debug", "tests/test_suite.nim"
test "-d:debug", "tests/test_misc.nim"
test "-d:release", "tests/test_codec.nim"
test "-d:release", "tests/test_suite.nim"
test "-d:release", "tests/test_misc.nim"
test "-d:release --gc:arc", "tests/test_codec.nim"
test "-d:release --gc:arc", "tests/test_suite.nim"
test "-d:release --gc:arc", "tests/test_misc.nim"
task testvcc, "Run tests with vcc compiler":
test "--cc:vcc -d:release", "tests/test_codec.nim"
test "--cc:vcc -d:release", "tests/test_suite.nim"
test "--cc:vcc -d:release", "tests/test_misc.nim"