From cd1fef027cde4bb5f7a5a039fb87b5c16df16644 Mon Sep 17 00:00:00 2001 From: Mark Spanbroek Date: Fri, 28 Jul 2023 09:51:03 +0200 Subject: [PATCH] Fix tests for stew with Nim < 1.6 Stew now requires a Nim >= 1.6, so this disables testing stew with earlier Nim versions. --- testmodules/stew/test.nimble | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/testmodules/stew/test.nimble b/testmodules/stew/test.nimble index 4bce04c..8406e46 100644 --- a/testmodules/stew/test.nimble +++ b/testmodules/stew/test.nimble @@ -3,7 +3,11 @@ author = "Questionable Authors" description = "Questionable tests for pkg/stew" license = "MIT" -requires "stew" +when (NimMajor, NimMinor) >= (1, 6): + requires "stew" -task test, "Runs the test suite": - exec "nim c -f -r --skipParentCfg test.nim" + task test, "Runs the test suite": + exec "nim c -f -r --skipParentCfg test.nim" +else: + task test, "Runs the test suite": + echo "Warning: Skipping test with stew on Nim < 1.6"