all tests

This commit is contained in:
Jaremy Creechley 2024-02-16 15:23:17 -07:00
parent 30bead2ba2
commit 2b0219e689
3 changed files with 11 additions and 0 deletions

View File

@ -13,3 +13,4 @@ requires "threading"
requires "taskpools >= 0.0.5"
requires "chronicles"
include "build.nims"

8
build.nims Normal file
View File

@ -0,0 +1,8 @@
import std/[os, strutils]
task test, "unit tests":
for file in listFiles("tests"):
let name = file.splitPath().tail
if name.startsWith("t") and name.endsWith(".nim"):
exec "nim c -r " & file

View File

@ -1,2 +1,4 @@
--threads:on
include "build.nims"