-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
91 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
set -x | ||
|
||
echo "Running $0" | ||
|
||
echo Adding "$1 host.ratchet.internal" to /etc/hosts file | ||
|
||
echo $1 host.ratchet.internal >> /etc/hosts | ||
|
||
echo /etc/hosts contains: | ||
cat /etc/hosts | ||
echo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,52 @@ | ||
cd test/ab | ||
cd test/ab || exit | ||
|
||
wstest -m fuzzingserver -s fuzzingserver.json & | ||
docker run --rm \ | ||
-d \ | ||
-v ${PWD}:/config \ | ||
-v ${PWD}/reports:/reports \ | ||
-p 9001:9001 \ | ||
--name fuzzingserver \ | ||
crossbario/autobahn-testsuite wstest -m fuzzingserver -s /config/fuzzingserver.json | ||
sleep 5 | ||
php clientRunner.php | ||
|
||
php -d memory_limit=256M clientRunner.php | ||
|
||
docker ps -a | ||
|
||
docker logs fuzzingserver | ||
|
||
docker stop fuzzingserver | ||
|
||
sleep 2 | ||
|
||
php testServer.php 600 & | ||
|
||
php -d memory_limit=256M testServer.php & | ||
SERVER_PID=$! | ||
sleep 3 | ||
wstest -m fuzzingclient -s fuzzingclient.json | ||
sleep 12 | ||
|
||
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 \ | ||
-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.json" | ||
sleep 1 | ||
|
||
kill $SERVER_PID | ||
|
||
#wstest -m fuzzingserver -s fuzzingserver.json & | ||
#sleep 5 | ||
#php clientRunner.php | ||
# | ||
#sleep 2 | ||
|
||
#php testServer.php 600 & | ||
#sleep 3 | ||
#wstest -m fuzzingclient -s fuzzingclient.json | ||
#sleep 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters