(self, harness_class, port, args)
| 234 | 'accept_addr': [CompiledServerHarness, 49163, ['-DTEST_DGRAM=0', '-DTEST_ACCEPT_ADDR=1']], |
| 235 | }) |
| 236 | def test_sockets_echo(self, harness_class, port, args): |
| 237 | if harness_class == WebsockifyServerHarness and common.EMTEST_LACKS_NATIVE_CLANG: |
| 238 | self.skipTest('requires native clang') |
| 239 | if harness_class == WebsockifyServerHarness and EMTEST_SKIP_PYTHON_DEV_PACKAGES: |
| 240 | self.skipTest('requires python websockify and EMTEST_SKIP_PYTHON_DEV_PACKAGES=1') |
| 241 | if harness_class == CompiledServerHarness and EMTEST_SKIP_NODE_DEV_PACKAGES: |
| 242 | self.skipTest('requires node ws and EMTEST_SKIP_NODE_DEV_PACKAGES=1') |
| 243 | |
| 244 | with harness_class(test_file('sockets/test_sockets_echo_server.c'), args, port) as harness: |
| 245 | self.btest_exit('sockets/test_sockets_echo_client.c', cflags=[f'-DSOCKK={harness.listen_port}', *args]) |
| 246 | |
| 247 | @requires_dev_dependency('ws') |
| 248 | def test_sockets_echo_pthreads(self): |
nothing calls this directly
no test coverage detected