nim-websock/autobahn/Readme.md

23 lines
734 B
Markdown
Raw Normal View History

2021-04-15 13:14:41 +05:30
## Running autobahn test suite.
### Install autobahn
```bash
# Set up virtualenv in autobahn folder
virtualenv --python=/usr/bin/python2 autobahn
2021-04-15 13:14:41 +05:30
# Activate the virtualenv
source autobahn/bin/activate
2021-04-15 13:14:41 +05:30
# Install autobahn
pip install autobahntestsuite
```
2021-04-15 13:14:41 +05:30
### Run the test Websocket client.
* ws server: `nim c -r examples/server.nim`
* autobahn: `wstest --mode fuzzingclient --spec fuzzingclient.json`
* Reports will be generated in `reports/server` which can be configured in `fuzzingclient.json`
2021-04-15 13:14:41 +05:30
* wss server: `nim c -r examples/tlsserver.nim`
* autobahn: `wstest --mode fuzzingclient --spec fuzzingclient_tls.json`
* Reports will be generated in `reports/server_tls` which can be configured in `fuzzingclient_tls.json`