Skip to content

Commit

Permalink
tests: Test the simple* UDP ports more systematically
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysn committed Jun 16, 2023
1 parent e08418d commit 4436b69
Showing 1 changed file with 31 additions and 5 deletions.
36 changes: 31 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
[tox]
; py3.7 runs into aiocoap unrelated trouble in setups on Debian sid, leaving
; this to `setup.py test` for now
;
; uvloop is only tested on one recent version; it is not tested on pypy
; because pypy support for uvloop is currently broken
; <https://github.com/MagicStack/uvloop/issues/521>
envlist = {py37,py38,py39,py310,py311,py312,pypy3}-{noextras,allextras},py311-uvloop
envlist = {py37,py38,py39,py310,py311,py312,pypy3}-{noextras,allextras},py311-uvloop,py311-uvloop-simpleudp,pypy3-simpleudp
skip_missing_interpreters = true

[testenv]
Expand Down Expand Up @@ -36,6 +32,23 @@ setenv =

[testenv:py311-uvloop]
description = Running on uvloop
deps =
coverage
pytest
uvloop
extras =
all
setenv =
AIOCOAP_TESTS_LOOP=uvloop

; Not running the -simple versions everywhere to save some CI time.
;
; For the CPython part we're using the uvloop runner, because AFAIR there were
; some extra workarounds. uvloop doesn't currently work with pypy, which gives
; us the opportunity there to run it on some Python also without uvloop.

[testenv:py311-uvloop-simpleudp]
description = Running on uvloop with simple* UDP transports
deps =
coverage
pytest
Expand All @@ -46,6 +59,19 @@ extras =
; alternative. that test could just as well be done on the default main loop,
; but AFAIR uvloop required occasional workarounds
setenv =
AIOCOAP_DEFAULTS_EXPECT_ALL=1
AIOCOAP_TESTS_LOOP=uvloop
AIOCOAP_CLIENT_TRANSPORT=oscore:tinydtls:tcpclient:tlsclient:ws:simple6
AIOCOAP_SERVER_TRANSPORT=oscore:tinydtls_server:tinydtls:tcpserver:tcpclient:tlsserver:tlsclient:ws:simplesocketserver

[testenv:pypy3-simpleudp]
description = Running pypy3 with simple UDP transports
deps =
coverage
pytest
extras =
all
setenv =
AIOCOAP_DEFAULTS_EXPECT_ALL=1
AIOCOAP_CLIENT_TRANSPORT=oscore:tinydtls:tcpclient:tlsclient:ws:simple6
AIOCOAP_SERVER_TRANSPORT=oscore:tinydtls_server:tinydtls:tcpserver:tcpclient:tlsserver:tlsclient:ws:simplesocketserver

0 comments on commit 4436b69

Please sign in to comment.