| 3 |
liveuser |
1 |
# This file is intended to ease the author's development and testing process
|
|
|
2 |
# Users do not need to use `make`; Ratchet does not need to be compiled
|
|
|
3 |
|
|
|
4 |
test:
|
|
|
5 |
vendor/bin/phpunit
|
|
|
6 |
|
|
|
7 |
cover:
|
|
|
8 |
vendor/bin/phpunit --coverage-text --coverage-html=reports/coverage
|
|
|
9 |
|
|
|
10 |
abtests:
|
|
|
11 |
ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8001 LibEvent &
|
|
|
12 |
ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8002 StreamSelect &
|
|
|
13 |
ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8004 LibEv &
|
|
|
14 |
wstest -m testeeserver -w ws://localhost:8000 &
|
|
|
15 |
sleep 1
|
|
|
16 |
wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-all.json
|
|
|
17 |
killall php wstest
|
|
|
18 |
|
|
|
19 |
abtest:
|
|
|
20 |
ulimit -n 2048 && php tests/autobahn/bin/fuzzingserver.php 8000 StreamSelect &
|
|
|
21 |
sleep 1
|
|
|
22 |
wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-quick.json
|
|
|
23 |
killall php
|
|
|
24 |
|
|
|
25 |
profile:
|
|
|
26 |
php -d 'xdebug.profiler_enable=1' tests/autobahn/bin/fuzzingserver.php 8000 LibEvent &
|
|
|
27 |
sleep 1
|
|
|
28 |
wstest -m fuzzingclient -s tests/autobahn/fuzzingclient-profile.json
|
|
|
29 |
killall php
|
|
|
30 |
|
|
|
31 |
apidocs:
|
|
|
32 |
apigen --title Ratchet -d reports/api \
|
|
|
33 |
-s src/ \
|
|
|
34 |
-s vendor/ratchet/rfc6455/src \
|
|
|
35 |
-s vendor/react/event-loop/src \
|
|
|
36 |
-s vendor/react/socket/src \
|
|
|
37 |
-s vendor/react/stream/src \
|
|
|
38 |
-s vendor/psr/http-message/src \
|
|
|
39 |
-s vendor/symfony/http-foundation/Session \
|
|
|
40 |
-s vendor/symfony/routing \
|
|
|
41 |
-s vendor/evenement/evenement/src/Evenement \
|
|
|
42 |
--exclude=vendor/symfony/routing/Tests \
|