mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-01-20 16:29:12 +00:00
6b4f5a1d23
* Initial commit. * Fix one more place with deprecated constant. * Fix testall and nimble file. * Fix poll issue. * Workaround Nim's faulty declaration of `poll()` and types on MacOS. * Fix syntax errors. * Fix MacOS post-rebase issue. * Add more conditionals. * Address review comments. * Fix Nim 1.2 configuration defaults.
27 lines
1.1 KiB
Nim
27 lines
1.1 KiB
Nim
# Chronos Test Suite
|
|
# (c) Copyright 2018-Present
|
|
# Status Research & Development GmbH
|
|
#
|
|
# Licensed under either of
|
|
# Apache License, version 2.0, (LICENSE-APACHEv2)
|
|
# MIT license (LICENSE-MIT)
|
|
import ".."/chronos/config
|
|
|
|
when (chronosEventEngine in ["epoll", "kqueue"]) or defined(windows):
|
|
import testmacro, testsync, testsoon, testtime, testfut, testsignal,
|
|
testaddress, testdatagram, teststream, testserver, testbugs, testnet,
|
|
testasyncstream, testhttpserver, testshttpserver, testhttpclient,
|
|
testproc, testratelimit, testfutures, testthreadsync
|
|
|
|
# Must be imported last to check for Pending futures
|
|
import testutils
|
|
elif chronosEventEngine == "poll":
|
|
# `poll` engine do not support signals and processes
|
|
import testmacro, testsync, testsoon, testtime, testfut, testaddress,
|
|
testdatagram, teststream, testserver, testbugs, testnet,
|
|
testasyncstream, testhttpserver, testshttpserver, testhttpclient,
|
|
testratelimit, testfutures, testthreadsync
|
|
|
|
# Must be imported last to check for Pending futures
|
|
import testutils
|