From 1a0cd2c496660f41c5144c0445d1ac70098fefbd Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Wed, 20 Dec 2023 15:02:12 +0100 Subject: [PATCH] Tests for chronos v3 --- asynctest.nimble | 2 +- testmodules/{chronos => chronosv3}/nim.cfg | 0 testmodules/{chronos => chronosv3}/nimbledeps/.keep | 0 testmodules/{chronos => chronosv3}/test.nim | 0 testmodules/{chronos => chronosv3}/test.nimble | 2 +- 5 files changed, 2 insertions(+), 2 deletions(-) rename testmodules/{chronos => chronosv3}/nim.cfg (100%) rename testmodules/{chronos => chronosv3}/nimbledeps/.keep (100%) rename testmodules/{chronos => chronosv3}/test.nim (100%) rename testmodules/{chronos => chronosv3}/test.nimble (84%) diff --git a/asynctest.nimble b/asynctest.nimble index a7c6d8d..4cd49c8 100644 --- a/asynctest.nimble +++ b/asynctest.nimble @@ -6,7 +6,7 @@ license = "MIT" skipDirs = @["testmodules"] task test, "Runs the test suite": - for module in ["stdlib", "chronos", "unittest2"]: + for module in ["stdlib", "chronosv3", "unittest2"]: withDir "testmodules/" & module: delEnv "NIMBLE_DIR" # use nimbledeps dir exec "nimble install -d -y" diff --git a/testmodules/chronos/nim.cfg b/testmodules/chronosv3/nim.cfg similarity index 100% rename from testmodules/chronos/nim.cfg rename to testmodules/chronosv3/nim.cfg diff --git a/testmodules/chronos/nimbledeps/.keep b/testmodules/chronosv3/nimbledeps/.keep similarity index 100% rename from testmodules/chronos/nimbledeps/.keep rename to testmodules/chronosv3/nimbledeps/.keep diff --git a/testmodules/chronos/test.nim b/testmodules/chronosv3/test.nim similarity index 100% rename from testmodules/chronos/test.nim rename to testmodules/chronosv3/test.nim diff --git a/testmodules/chronos/test.nimble b/testmodules/chronosv3/test.nimble similarity index 84% rename from testmodules/chronos/test.nimble rename to testmodules/chronosv3/test.nimble index 2d37313..85228b2 100644 --- a/testmodules/chronos/test.nimble +++ b/testmodules/chronosv3/test.nimble @@ -3,7 +3,7 @@ author = "Asynctest Authors" description = "Asynctest tests for std/unittest and pkg/chronos" license = "MIT" -requires "chronos" +requires "chronos >= 3.2.0 & < 4.0.0" task test, "Runs the test suite": exec "nim c -f -r --skipParentCfg test.nim"