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:
Chris Boden 2012-07-13 19:53:18 -04:00
parent 14959b6ea5
commit 0c55aa6bef
5 changed files with 29 additions and 10 deletions

View File

@ -6,11 +6,17 @@ cover:
abtests: abtests:
ulimit -n 2048 ulimit -n 2048
php tests/ab-wstest-libevent.php & php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
php tests/ab-wstest-stream.php & php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php &
cd tests && wstest -m fuzzingclient -s ab-wstest-fuzzyconf.json 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 killall php
echo
apidocs: apidocs:
apigen --title Ratchet -d reports/api -s src/ \ apigen --title Ratchet -d reports/api -s src/ \

View File

@ -1,6 +1,6 @@
<?php <?php
require dirname(__DIR__) . '/vendor/autoload.php'; require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$loop = new React\EventLoop\LibEventLoop; $loop = new React\EventLoop\LibEventLoop;
$sock = new React\Socket\Server($loop); $sock = new React\Socket\Server($loop);

View File

@ -1,6 +1,6 @@
<?php <?php
require dirname(__DIR__) . '/vendor/autoload.php'; require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
$loop = new React\EventLoop\StreamSelectLoop; $loop = new React\EventLoop\StreamSelectLoop;
$sock = new React\Socket\Server($loop); $sock = new React\Socket\Server($loop);

View File

@ -1,13 +1,14 @@
{ {
"options": {"failByDrop": false} "options": {"failByDrop": false}
, "outdir": "../reports/ab" , "outdir": "reports/ab"
, "servers": [ , "servers": [
{"agent": "Ratchet-libevent/v0.2b", "url": "ws://localhost:8000", "options": {"version": 18}} {"agent": "Ratchet-libevent/0.2b", "url": "ws://localhost:8000", "options": {"version": 18}}
, {"agent": "Ratchet-stream/v0.2b", "url": "ws://localhost:8001", "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": ["*"] , "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": {} , "exclude-agent-cases": {}
} }

View 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": {}
}