mirror of
https://github.com/status-im/asynctest.git
synced 2025-02-17 23:36:59 +00:00
Tests for chronos v4
This commit is contained in:
parent
1a0cd2c496
commit
c9423b198f
@ -6,7 +6,7 @@ license = "MIT"
|
|||||||
skipDirs = @["testmodules"]
|
skipDirs = @["testmodules"]
|
||||||
|
|
||||||
task test, "Runs the test suite":
|
task test, "Runs the test suite":
|
||||||
for module in ["stdlib", "chronosv3", "unittest2"]:
|
for module in ["stdlib", "chronosv3", "chronosv4", "unittest2"]:
|
||||||
withDir "testmodules/" & module:
|
withDir "testmodules/" & module:
|
||||||
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
delEnv "NIMBLE_DIR" # use nimbledeps dir
|
||||||
exec "nimble install -d -y"
|
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