setup getPathsClause and parallels

This commit is contained in:
Jaremy Creechley 2023-07-17 16:27:07 -07:00
parent 62005c1a3c
commit 6eb8b5a20b
No known key found for this signature in database
GPG Key ID: 4E66FB67B21D3300
3 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
import std / [os, strutils, sequtils, osproc]
import std / [os, strutils, sequtils]
when declared(getPathsClause):
proc nimc(): string = "nim c " & getPathsClause()

View File

@ -6,7 +6,6 @@ description = "DHT based on the libp2p Kademlia spec"
license = "MIT"
skipDirs = @["tests"]
# Dependencies
requires "nim >= 1.2.0"
requires "secp256k1#b3f38e2795e805743b299dc5d96d332db375b520" # >= 0.5.2 & < 0.6.0

View File

@ -15,11 +15,10 @@ for d in walkDirRec("tests", {pcDir}):
if kind == pcFile and file.endswith(".nim") and file.startsWith("t"):
cmds.add nimc() & file.absolutePath.quoteShell()
when defined(testsPart1) or defined(testsAll):
cmds = cmds[0..cmds.len div 2]
when defined(testsPart2) or defined(testsAll):
cmds = cmds[cmds.len div 2..<cmds.len]
when defined(testsPart1):
cmds = cmds[0..cmds.len div 2 - 1]
when defined(testsPart2):
cmds = cmds[cmds.len div 2 - 1..<cmds.len]
echo "Running Test Commands: ", cmds
# quit execProcesses(cmds)