mirror of
https://github.com/codex-storage/nim-libp2p.git
synced 2025-01-13 04:24:09 +00:00
4c6a123d31
* Add chronos trackers and used them to sanitize resource disposal * Chronos trackers for transport tests wip * No more chronos leaks in testtransport * Make tcp transport and test more robust when closing * Test async leaking tracking wip * Fix a regression in wire connect * Add chronos trackers to more tests and sanitize resource closure * Wip fixing floodsub tests * Floodsub wip * Made floodsub basically deterministic, hit a nim bug with captures tho * Wrap up floodsub tests refactor * Wrapping up * Add allFuturesThrowing utility * Fix missing allFuturesThrowing in noise tests! * Make tests green * attempt fixing gossipsub failing cases * Make sure to check also fanout in waitSub * More verbose traces * Gossipsub test improvments * Refactor TcpTransport remove asyncCheck * Add Connection trackers * Add stricter connection tracking, wip mplex fix * More asynccheck removal, in order to avoid connection leaks * bump chronicles requirement * Enable tracker dump to check CI output * Wait for more futures in testmplex * Remove tracker dump messages * add tryAndWarn utility, fix mplex issue with go interop * All allFuturesThrowing to directchat too * make sure to cleanup on transport close
34 lines
940 B
Nim
34 lines
940 B
Nim
mode = ScriptMode.Verbose
|
|
|
|
packageName = "libp2p"
|
|
version = "0.0.2"
|
|
author = "Status Research & Development GmbH"
|
|
description = "LibP2P implementation"
|
|
license = "MIT"
|
|
skipDirs = @["tests", "examples", "Nim"]
|
|
|
|
requires "nim >= 1.2.0",
|
|
"nimcrypto >= 0.4.1",
|
|
"bearssl >= 0.1.4",
|
|
"chronicles >= 0.7.2",
|
|
"chronos >= 2.3.8",
|
|
"metrics",
|
|
"secp256k1",
|
|
"stew"
|
|
|
|
proc runTest(filename: string) =
|
|
exec "nim c -r --opt:speed -d:debug --verbosity:0 --hints:off tests/" & filename
|
|
rmFile "tests/" & filename.toExe
|
|
|
|
proc buildSample(filename: string) =
|
|
exec "nim c --opt:speed --threads:on -d:debug --verbosity:0 --hints:off examples/" & filename
|
|
rmFile "examples" & filename.toExe
|
|
|
|
task test, "Runs the test suite":
|
|
runTest "testnative"
|
|
runTest "testdaemon"
|
|
runTest "testinterop"
|
|
|
|
task examples_build, "Build the samples":
|
|
buildSample "directchat"
|