From 2fd6c7dd03c6c5adbe65a6e18363f5f4705e204c Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 14 Aug 2024 10:34:45 +0200 Subject: [PATCH] pathing in tests --- tests/build.nims | 22 +++++++++++----------- tests/{testAll.nim => test.nim} | 0 2 files changed, 11 insertions(+), 11 deletions(-) rename tests/{testAll.nim => test.nim} (100%) diff --git a/tests/build.nims b/tests/build.nims index 5801ada..8c422bc 100644 --- a/tests/build.nims +++ b/tests/build.nims @@ -1,23 +1,23 @@ import std / [os, strutils, sequtils] task testAll, "Run DHT tests": - exec "nim c -r tests/testAll.nim" - rmFile "./tests/testAll" + exec "nim c -r testAll.nim" + rmFile "./testAll" task test, "Run DHT tests": # compile with trace logging to make sure it doesn't crash - exec "nim c -d:testsAll -d:chronicles_enabled=on -d:chronicles_log_level=TRACE tests/testAll.nim" - rmFile "./tests/testAll" - exec "nim c -r -d:testsAll --verbosity:0 tests/testAllParallel.nim" - rmFile "./tests/testAllParallel" + exec "nim c -d:testsAll -d:chronicles_enabled=on -d:chronicles_log_level=TRACE testAll.nim" + rmFile "./testAll" + exec "nim c -r -d:testsAll --verbosity:0 testAllParallel.nim" + rmFile "./testAllParallel" task testPart1, "Run DHT tests A": - exec "nim c -r -d:testsPart1 tests/testAllParallel.nim" - rmFile "./tests/testAllParallel" + exec "nim c -r -d:testsPart1 testAllParallel.nim" + rmFile "./testAllParallel" task testPart2, "Run DHT tests B": - exec "nim c -r -d:testsPart2 tests/testAllParallel.nim" - rmFile "./tests/testAllParallel" + exec "nim c -r -d:testsPart2 testAllParallel.nim" + rmFile "./testAllParallel" task coverage, "generates code coverage report": var (output, exitCode) = gorgeEx("which lcov") @@ -50,7 +50,7 @@ task coverage, "generates code coverage report": if f.endswith(".nim"): nimSrcs.add " " & f.absolutePath.quoteShell() echo "======== Running Tests ======== " - exec("nim c -r tests/coverage.nim") + exec("nim c -r coverage.nim") exec("rm nimcache/*.c") rmDir("coverage"); mkDir("coverage") echo " ======== Running LCOV ======== " diff --git a/tests/testAll.nim b/tests/test.nim similarity index 100% rename from tests/testAll.nim rename to tests/test.nim