From 6eb8b5a20bfa3e78de94367eaf7e28dde653c5b0 Mon Sep 17 00:00:00 2001 From: Jaremy Creechley Date: Mon, 17 Jul 2023 16:27:07 -0700 Subject: [PATCH] setup getPathsClause and parallels --- build.nims | 2 +- codexdht.nimble | 1 - tests/testAllParallel.nim | 9 ++++----- 3 files changed, 5 insertions(+), 7 deletions(-) diff --git a/build.nims b/build.nims index 1c4117d..9761a1f 100644 --- a/build.nims +++ b/build.nims @@ -1,4 +1,4 @@ -import std / [os, strutils, sequtils, osproc] +import std / [os, strutils, sequtils] when declared(getPathsClause): proc nimc(): string = "nim c " & getPathsClause() diff --git a/codexdht.nimble b/codexdht.nimble index a91f91f..b55626d 100644 --- a/codexdht.nimble +++ b/codexdht.nimble @@ -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 diff --git a/tests/testAllParallel.nim b/tests/testAllParallel.nim index 0589148..e44bdbd 100644 --- a/tests/testAllParallel.nim +++ b/tests/testAllParallel.nim @@ -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..