mirror of
https://github.com/vacp2p/nim-libp2p.git
synced 2025-02-05 05:14:32 +00:00
7cbb89c7e4
and refactored the "test" task in libp2p.nimble
22 lines
552 B
Nim
22 lines
552 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "libp2p"
|
|
version = "0.0.1"
|
|
author = "Status Research & Development GmbH"
|
|
description = "LibP2P implementation"
|
|
license = "MIT"
|
|
skipDirs = @["tests", "examples", "Nim"]
|
|
|
|
requires "nim > 0.18.0",
|
|
"nimcrypto >= 0.3.9",
|
|
"chronos"
|
|
|
|
import ospaths, strutils
|
|
|
|
task test, "Runs the test suite":
|
|
for filename in listFiles("tests"):
|
|
if filename.startsWith("tests" / "test") and filename.endsWith(".nim"):
|
|
exec "nim c -r " & filename
|
|
rmFile filename[0..^5]
|
|
|