2021-04-15 07:44:41 +00:00
|
|
|
## Running autobahn test suite.
|
|
|
|
|
|
|
|
### Install autobahn
|
2021-05-28 16:48:23 +00:00
|
|
|
```bash
|
|
|
|
# Set up virtualenv in autobahn folder
|
|
|
|
virtualenv --python=/usr/bin/python2 autobahn
|
2021-04-15 07:44:41 +00:00
|
|
|
|
2021-05-28 16:48:23 +00:00
|
|
|
# Activate the virtualenv
|
|
|
|
source autobahn/bin/activate
|
2021-04-15 07:44:41 +00:00
|
|
|
|
2021-05-28 16:48:23 +00:00
|
|
|
# Install autobahn
|
|
|
|
pip install autobahntestsuite
|
|
|
|
```
|
2021-04-15 07:44:41 +00:00
|
|
|
|
2021-05-28 16:48:23 +00:00
|
|
|
### 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 07:44:41 +00:00
|
|
|
|
2021-06-12 00:57:16 +00:00
|
|
|
* wss server: `nim c -r -d:tls examples/server.nim`
|
2021-05-28 16:48:23 +00:00
|
|
|
* autobahn: `wstest --mode fuzzingclient --spec fuzzingclient_tls.json`
|
|
|
|
* Reports will be generated in `reports/server_tls` which can be configured in `fuzzingclient_tls.json`
|
2021-06-12 00:57:16 +00:00
|
|
|
|
|
|
|
* ws client:
|
|
|
|
* autobahn: `wstest --mode fuzzingserver --spec fuzzingserver.json`
|
|
|
|
* ws: `nim c -r examples/autobahn_client.nim`
|
|
|
|
|
|
|
|
* wss client:
|
|
|
|
* autobahn: `wstest --mode fuzzingserver --spec fuzzingserver_tls.json`
|
|
|
|
* ws: `nim c -r -d:tls examples/autobahn_client.nim`
|