Rev 915 | Blame | Compare with Previous | Last modification | View Log | RSS feed
set -xcd tests/abSKIP_DEFLATE=if [ "$TRAVIS" = "true" ]; thenif [ $(phpenv version-name) = "hhvm" -o $(phpenv version-name) = "5.4" -o $(phpenv version-name) = "5.5" -o $(phpenv version-name) = "5.6" ]; thenecho "Skipping deflate autobahn tests for $(phpenv version-name)"SKIP_DEFLATE=_skip_deflatefifiif [ "$ABTEST" = "client" ]; thendocker run --rm \-d \-v ${PWD}:/config \-v ${PWD}/reports:/reports \-p 9001:9001 \--name fuzzingserver \crossbario/autobahn-testsuite wstest -m fuzzingserver -s /config/fuzzingserver$SKIP_DEFLATE.jsonsleep 5if [ "$TRAVIS" != "true" ]; thenecho "Running tests vs Autobahn test client"###docker run -it --rm --name abpytest crossbario/autobahn-testsuite wstest --mode testeeclient -w ws://host.docker.internal:9001fiphp -d memory_limit=256M clientRunner.phpdocker ps -adocker logs fuzzingserverdocker stop fuzzingserversleep 2fiif [ "$ABTEST" = "server" ]; thenphp -d memory_limit=256M startServer.php &sleep 3if [ "$OSTYPE" = "linux-gnu" ]; thenIPADDR=`hostname -I | cut -f 1 -d ' '`elseIPADDR=`ifconfig | grep "inet " | grep -Fv 127.0.0.1 | awk '{print $2}' | head -1 | tr -d 'adr:'`fidocker run --rm \-it \-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 serverwget -O - -q http://127.0.0.1:9001/shutdownfi