Test cleanup
Added the AutobahnTestSuite Fuzzing Server to AB tests giving another language (Python) to compare Ratchet to Added a profile option for make Cleaned up the tests directory structure
This commit is contained in:
parent
14959b6ea5
commit
0c55aa6bef
14
Makefile
14
Makefile
@ -6,11 +6,17 @@ cover:
|
||||
|
||||
abtests:
|
||||
ulimit -n 2048
|
||||
php tests/ab-wstest-libevent.php &
|
||||
php tests/ab-wstest-stream.php &
|
||||
cd tests && wstest -m fuzzingclient -s ab-wstest-fuzzyconf.json
|
||||
php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
|
||||
php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php &
|
||||
wstest -m testeeserver -w ws://localhost:8002 &
|
||||
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json
|
||||
killall php
|
||||
killall python
|
||||
|
||||
profile:
|
||||
php -d 'xdebug.profiler_enable=1' tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
|
||||
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-profile.json
|
||||
killall php
|
||||
echo
|
||||
|
||||
apidocs:
|
||||
apigen --title Ratchet -d reports/api -s src/ \
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
|
||||
|
||||
$loop = new React\EventLoop\LibEventLoop;
|
||||
$sock = new React\Socket\Server($loop);
|
||||
|
@ -1,6 +1,6 @@
|
||||
<?php
|
||||
|
||||
require dirname(__DIR__) . '/vendor/autoload.php';
|
||||
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
|
||||
|
||||
$loop = new React\EventLoop\StreamSelectLoop;
|
||||
$sock = new React\Socket\Server($loop);
|
||||
|
@ -1,13 +1,14 @@
|
||||
{
|
||||
"options": {"failByDrop": false}
|
||||
, "outdir": "../reports/ab"
|
||||
, "outdir": "reports/ab"
|
||||
|
||||
, "servers": [
|
||||
{"agent": "Ratchet-libevent/v0.2b", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet-stream/v0.2b", "url": "ws://localhost:8001", "options": {"version": 18}}
|
||||
{"agent": "Ratchet-libevent/0.2b", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet-stream/0.2b", "url": "ws://localhost:8001", "options": {"version": 18}}
|
||||
, {"agent": "AutobahnTestSuite/0.5.1-0.5.2", "url": "ws://localhost:8002", "options": {"version": 18}}
|
||||
]
|
||||
|
||||
, "cases": ["*"]
|
||||
, "exclude-cases": ["1.2.*", "2.3", "2.4", "2.6", "9.2.*", "9.4.*", "9.6.*", "9.8.*"]
|
||||
, "exclude-cases": ["9.*", "1.2.*", "2.3", "2.4", "2.6", "9.2.*", "9.4.*", "9.6.*", "9.8.*"]
|
||||
, "exclude-agent-cases": {}
|
||||
}
|
||||
|
12
tests/AutobahnTestSuite/fuzzingclient-profile.json
Normal file
12
tests/AutobahnTestSuite/fuzzingclient-profile.json
Normal file
@ -0,0 +1,12 @@
|
||||
{
|
||||
"options": {"failByDrop": false}
|
||||
, "outdir": "reports/profile"
|
||||
|
||||
, "servers": [
|
||||
{"agent": "Ratchet-libevent/0.2b", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
]
|
||||
|
||||
, "cases": ["9.7.4"]
|
||||
, "exclude-cases": ["1.2.*", "2.3", "2.4", "2.6", "9.2.*", "9.4.*", "9.6.*", "9.8.*"]
|
||||
, "exclude-agent-cases": {}
|
||||
}
|
Loading…
Reference in New Issue
Block a user