mirror of
https://github.com/logos-storage/asynctest.git
synced 2026-01-02 13:03:07 +00:00
Tests for chronos v4
This commit is contained in:
parent
ce1b7a8603
commit
2a92dd87a2
@ -6,7 +6,7 @@ license = "MIT"
|
||||
skipDirs = @["testmodules"]
|
||||
|
||||
task test, "Runs the test suite":
|
||||
for module in ["stdlib", "chronosv3", "unittest2"]:
|
||||
for module in ["stdlib", "chronosv3", "chronosv4", "unittest2"]:
|
||||
withDir "testmodules/" & module:
|
||||
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
||||
exec "nimble install -d -y"
|
||||
|
||||
3
testmodules/chronosv4/nim.cfg
Normal file
3
testmodules/chronosv4/nim.cfg
Normal file
@ -0,0 +1,3 @@
|
||||
--path:"../.."
|
||||
--hint:"XCannotRaiseY:off"
|
||||
--define:"chronosPreviewV4" # TODO: remove once chronos v4 is released
|
||||
0
testmodules/chronosv4/nimbledeps/.keep
Normal file
0
testmodules/chronosv4/nimbledeps/.keep
Normal file
5
testmodules/chronosv4/test.nim
Normal file
5
testmodules/chronosv4/test.nim
Normal file
@ -0,0 +1,5 @@
|
||||
import pkg/asynctest
|
||||
import pkg/chronos
|
||||
|
||||
include ../stdlib/testbody
|
||||
include ../stdlib/testfail
|
||||
9
testmodules/chronosv4/test.nimble
Normal file
9
testmodules/chronosv4/test.nimble
Normal file
@ -0,0 +1,9 @@
|
||||
version = "0.1.0"
|
||||
author = "Asynctest Authors"
|
||||
description = "Asynctest tests for std/unittest and pkg/chronos"
|
||||
license = "MIT"
|
||||
|
||||
requires "chronos#head" # TODO: use "chronos >= 4.0.0 & < 5.0.0" once it's released
|
||||
|
||||
task test, "Runs the test suite":
|
||||
exec "nim c -f -r --skipParentCfg test.nim"
|
||||
Loading…
x
Reference in New Issue
Block a user