forked from Vindaar/TimepixAnalysis
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunTests.nims
More file actions
31 lines (27 loc) · 840 Bytes
/
runTests.nims
File metadata and controls
31 lines (27 loc) · 840 Bytes
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
# executes all tests
import shell
let dir = getCurrentDir()
var toContinue = true
template shellCheck(actions: untyped): untyped =
if toContinue:
let res = shellVerbose:
actions
toContinue = res[1] == 0
if not toContinue:
quit("One of the tests of TimepixAnalysis failed!")
shellCheck:
nim c "-r" ($dir)/Tests/tMatchAnyRunFolder.nim
shellCheck:
nim c "-r" ($dir)/Tests/tOldTosFolder.nim
shellCheck:
nim c "-r" ($dir)/Tests/io/tReadFadc.nim
shellCheck:
nim c "-r" ($dir)/Tests/io/tReadInGrid.nim
shellCheck:
nim c "-r --threads:on" ($dir)/Tests/reconstruction/tInGridGeometry.nim
shellCheck:
nim c "-r" ($dir)/Tests/tZipEm.nim
shellCheck:
nim c "-r --threads:on" ($dir)/Tests/raw_data_manipulation/tRawDataTest.nim
shellCheck:
nim c "-r --threads:on" ($dir)/Tests/reconstruction/tReconstruction.nim