AB testing
Added libuv to test suite Set port 8000 default unless specified; makes changing shit easier
This commit is contained in:
parent
e037c00e0c
commit
1b941a3112
11
Makefile
11
Makefile
@ -8,11 +8,12 @@ cover:
|
||||
phpunit --coverage-text --coverage-html=reports/coverage
|
||||
|
||||
abtests:
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libev.php &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-noutf8.php &
|
||||
wstest -m testeeserver -w ws://localhost:8004 &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php 8002 &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php 8001 &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libev.php 8004 &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-libuv.php 8005 &
|
||||
ulimit -n 2048 && php tests/AutobahnTestSuite/bin/fuzzingserver-noutf8.php 8003 &
|
||||
wstest -m testeeserver -w ws://localhost:8000 &
|
||||
wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json
|
||||
killall php wstest
|
||||
|
||||
|
@ -8,7 +8,7 @@ Build up your application through simple interfaces and re-use your application
|
||||
##WebSocket Compliance
|
||||
|
||||
* Supports the RFC6455, HyBi-10+, and Hixie76 protocol versions (at the same time)
|
||||
* Tested on Chrome 13 - 25, Firefox 6 - 19, Safari 5.0.1 - 6, iOS 4.2 - 6
|
||||
* Tested on Chrome 13 - 26, Firefox 6 - 19, Safari 5.0.1 - 6, iOS 4.2 - 6
|
||||
* Ratchet [passes](http://socketo.me/reports/ab/) the [Autobahn Testsuite](http://autobahn.ws/testsuite) (non-binary messages)
|
||||
|
||||
##Requirements
|
||||
|
@ -6,7 +6,8 @@
|
||||
$sock = new React\Socket\Server($loop);
|
||||
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
|
||||
|
||||
$sock->listen(8002, '0.0.0.0');
|
||||
$port = $argc > 1 ? $argv[1] : 8000;
|
||||
$sock->listen($port, '0.0.0.0');
|
||||
|
||||
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
|
||||
$server->run();
|
||||
|
@ -6,7 +6,8 @@
|
||||
$sock = new React\Socket\Server($loop);
|
||||
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
|
||||
|
||||
$sock->listen(8000, '0.0.0.0');
|
||||
$port = $argc > 1 ? $argv[1] : 8000;
|
||||
$sock->listen($port, '0.0.0.0');
|
||||
|
||||
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
|
||||
$server->run();
|
||||
|
13
tests/AutobahnTestSuite/bin/fuzzingserver-libuv.php
Normal file
13
tests/AutobahnTestSuite/bin/fuzzingserver-libuv.php
Normal file
@ -0,0 +1,13 @@
|
||||
<?php
|
||||
|
||||
require dirname(dirname(dirname(__DIR__))) . '/vendor/autoload.php';
|
||||
|
||||
$loop = new React\EventLoop\LibEvLoop;
|
||||
$sock = new React\Socket\Server($loop);
|
||||
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
|
||||
|
||||
$port = $argc > 1 ? $argv[1] : 8000;
|
||||
$sock->listen($port, '0.0.0.0');
|
||||
|
||||
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
|
||||
$server->run();
|
@ -7,7 +7,8 @@
|
||||
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
|
||||
$app->setEncodingChecks(false);
|
||||
|
||||
$sock->listen(8003, '0.0.0.0');
|
||||
$port = $argc > 1 ? $argv[1] : 8000;
|
||||
$sock->listen($port, '0.0.0.0');
|
||||
|
||||
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
|
||||
$server->run();
|
||||
|
@ -6,7 +6,8 @@
|
||||
$sock = new React\Socket\Server($loop);
|
||||
$app = new Ratchet\WebSocket\WsServer(new Ratchet\Tests\AbFuzzyServer);
|
||||
|
||||
$sock->listen(8001, '0.0.0.0');
|
||||
$port = $argc > 1 ? $argv[1] : 8000;
|
||||
$sock->listen($port, '0.0.0.0');
|
||||
|
||||
$server = new Ratchet\Server\IoServer($app, $sock, $loop);
|
||||
$server->run();
|
||||
|
@ -3,11 +3,12 @@
|
||||
, "outdir": "reports/ab"
|
||||
|
||||
, "servers": [
|
||||
{"agent": "Ratchet/0.2.3 libevent", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.3 libev", "url": "ws://localhost:8002", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.3 -utf8", "url": "ws://localhost:8003", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.3 streams", "url": "ws://localhost:8001", "options": {"version": 18}}
|
||||
, {"agent": "AutobahnTestSuite/0.5.9", "url": "ws://localhost:8004", "options": {"version": 18}}
|
||||
{"agent": "Ratchet/0.2.4 libevent", "url": "ws://localhost:8002", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.4 libuv", "url": "ws://localhost:8005", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.4 libev", "url": "ws://localhost:8004", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.4 -utf8", "url": "ws://localhost:8003", "options": {"version": 18}}
|
||||
, {"agent": "Ratchet/0.2.4 streams", "url": "ws://localhost:8001", "options": {"version": 18}}
|
||||
, {"agent": "AutobahnTestSuite/0.5.9", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
]
|
||||
|
||||
, "cases": ["*"]
|
||||
|
@ -3,7 +3,7 @@
|
||||
, "outdir": "reports/rfc"
|
||||
|
||||
, "servers": [
|
||||
{"agent": "Ratchet", "url": "ws://localhost:8001", "options": {"version": 18}}
|
||||
{"agent": "Ratchet", "url": "ws://localhost:8000", "options": {"version": 18}}
|
||||
]
|
||||
|
||||
, "cases": ["*"]
|
||||
|
Loading…
Reference in New Issue
Block a user