Skip to content

Commit

Permalink
server tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Oberstein committed Mar 23, 2017
1 parent c00958d commit eb27bb9
Show file tree
Hide file tree
Showing 3 changed files with 87 additions and 8 deletions.
52 changes: 50 additions & 2 deletions wstest/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -216,15 +216,63 @@ start_server: \


stop_testee_server:
pkill -f "testee_server*"
-pkill -f "testee_server*"


wstest_client:
# test individual server flavor - note that this will only
# produce a single report each, and it cannot be combined into
# a single report! here is the comment from wstest.py

# allow overriding servers from command line option, providing 1 server
# this is semi-useful, as you cannot accumulate a combined report for
# multiple servers by running wstest over and over again. the generated
# report is only for the last invocation - it would require a massive
# code restructering / rewriting to change that. no time for that unfort.

test_cpy2_tx_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9010

test_cpy3_tx_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9011

test_pypy2_tx_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9012

test_pypy3_tx_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9013


test_cpy2_aio_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9014

test_cpy3_aio_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9015

test_pypy2_aio_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9016

test_pypy3_aio_server:
./wstest/bin/wstest -m fuzzingclient -w ws://127.0.0.1:9017


test_tx_server: \
test_cpy2_tx_server \
test_cpy3_tx_server \
test_pypy2_tx_server \
test_pypy3_tx_server

test_aio_server: \
test_cpy2_aio_server \
test_cpy3_aio_server \
test_pypy2_aio_server \
test_pypy3_aio_server

# THIS DOES NOT WORK TO PRODUCE THE FINAL COMBINED REPORT FOR ALL SERVERS!
# see above.
#test_server: \
# test_tx_server \
# test_aio_server


test_server:
./wstest/bin/wstest -m fuzzingclient
32 changes: 32 additions & 0 deletions wstest/fuzzingclient.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"outdir": "./reports/servers",
"servers": [
{
"url": "ws://127.0.0.1:9010"
},
{
"url": "ws://127.0.0.1:9011"
},
{
"url": "ws://127.0.0.1:9012"
},
{
"url": "ws://127.0.0.1:9013"
},
{
"url": "ws://127.0.0.1:9014"
},
{
"url": "ws://127.0.0.1:9015"
},
{
"url": "ws://127.0.0.1:9016"
},
{
"url": "ws://127.0.0.1:9017"
}
],
"cases": ["*"],
"exclude-cases": [],
"exclude-agent-cases": {}
}
11 changes: 5 additions & 6 deletions wstest/fuzzingserver.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@

{
"url": "ws://127.0.0.1:9001",
"outdir": "./reports/clients",
"cases": ["*"],
"exclude-cases": [],
"exclude-agent-cases": {}
"url": "ws://127.0.0.1:9001",
"outdir": "./reports/clients",
"cases": ["*"],
"exclude-cases": [],
"exclude-agent-cases": {}
}

0 comments on commit eb27bb9

Please sign in to comment.