Add upcoming/asyncdispatch.nim to tests.
This commit is contained in:
parent
e70f027870
commit
015e22c8c0
2 changed files with 12 additions and 0 deletions
2
tests/async/config.nims
Normal file
2
tests/async/config.nims
Normal file
|
|
@ -0,0 +1,2 @@
|
||||||
|
when defined(upcoming):
|
||||||
|
patchFile("stdlib", "asyncdispatch", "$lib/upcoming/asyncdispatch")
|
||||||
|
|
@ -202,6 +202,14 @@ proc ioTests(r: var TResults, cat: Category, options: string) =
|
||||||
testSpec c, makeTest("tests/system/helpers/readall_echo", options, cat)
|
testSpec c, makeTest("tests/system/helpers/readall_echo", options, cat)
|
||||||
testSpec r, makeTest("tests/system/io", options, cat)
|
testSpec r, makeTest("tests/system/io", options, cat)
|
||||||
|
|
||||||
|
# ------------------------- async tests ---------------------------------------
|
||||||
|
proc asyncTests(r: var TResults, cat: Category, options: string) =
|
||||||
|
template test(filename: untyped) =
|
||||||
|
testSpec r, makeTest(filename, options, cat)
|
||||||
|
testSpec r, makeTest(filename, options & " -d:upcoming_async", cat)
|
||||||
|
for t in os.walkFiles("tests/async/t*.nim"):
|
||||||
|
test(t)
|
||||||
|
|
||||||
# ------------------------- debugger tests ------------------------------------
|
# ------------------------- debugger tests ------------------------------------
|
||||||
|
|
||||||
proc debuggerTests(r: var TResults, cat: Category, options: string) =
|
proc debuggerTests(r: var TResults, cat: Category, options: string) =
|
||||||
|
|
@ -390,6 +398,8 @@ proc processCategory(r: var TResults, cat: Category, options: string, fileGlob:
|
||||||
threadTests r, cat, options & " --threads:on"
|
threadTests r, cat, options & " --threads:on"
|
||||||
of "io":
|
of "io":
|
||||||
ioTests r, cat, options
|
ioTests r, cat, options
|
||||||
|
of "async":
|
||||||
|
asyncTests r, cat, options
|
||||||
of "lib":
|
of "lib":
|
||||||
testStdlib(r, "lib/pure/*.nim", options, cat)
|
testStdlib(r, "lib/pure/*.nim", options, cat)
|
||||||
testStdlib(r, "lib/packages/docutils/highlite", options, cat)
|
testStdlib(r, "lib/packages/docutils/highlite", options, cat)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue