mirror of
https://github.com/logos-storage/logos-storage-nim-dht.git
synced 2026-01-07 07:53:06 +00:00
setup getPathsClause and parallels
This commit is contained in:
parent
62005c1a3c
commit
6eb8b5a20b
@ -1,4 +1,4 @@
|
||||
import std / [os, strutils, sequtils, osproc]
|
||||
import std / [os, strutils, sequtils]
|
||||
|
||||
when declared(getPathsClause):
|
||||
proc nimc(): string = "nim c " & getPathsClause()
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user