PHP Classes

File: vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh

Recommend this page to a friend!
  Classes of Adeleye Ayodeji   Simple PHP Chat with Websocket   vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh   Download  
File: vendor/ratchet/rfc6455/tests/ab/run_ab_tests.sh
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Simple PHP Chat with Websocket
Implements a chat system using Websockets
Author: By
Last change:
Date: 19 hours ago
Size: 1,346 bytes
 

Contents

Class file image Download
set -x cd tests/ab if [ "$ABTEST" = "client" ]; then docker run --rm \ -d \ -v ${PWD}:/config \ -v ${PWD}/reports:/reports \ -p 9002:9002 \ --name fuzzingserver \ crossbario/autobahn-testsuite wstest -m fuzzingserver -s /config/fuzzingserver$SKIP_DEFLATE.json sleep 5 if [ "$TRAVIS" != "true" ]; then echo "Running tests vs Autobahn test client" ###docker run -it --rm --name abpytest crossbario/autobahn-testsuite wstest --mode testeeclient -w ws://host.docker.internal:9002 fi php -d memory_limit=256M clientRunner.php docker ps -a docker logs fuzzingserver docker stop fuzzingserver sleep 2 fi if [ "$ABTEST" = "server" ]; then php -d memory_limit=256M startServer.php & sleep 3 if [ "$OSTYPE" = "linux-gnu" ]; then IPADDR=`hostname -I | cut -f 1 -d ' '` else IPADDR=`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -1 | tr -d 'adr:'` fi docker run --rm \ -i \ -v ${PWD}:/config \ -v ${PWD}/reports:/reports \ --name fuzzingclient \ crossbario/autobahn-testsuite /bin/sh -c "sh /config/docker_bootstrap.sh $IPADDR; wstest -m fuzzingclient -s /config/fuzzingclient$SKIP_DEFLATE.json" sleep 1 # send the shutdown command to the PHP echo server wget -O - -q http://127.0.0.1:9001/shutdown fi