From 0c55aa6bef9cf4e04f5c915bde1980ad0eec006a Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Fri, 13 Jul 2012 19:53:18 -0400 Subject: [PATCH] Test cleanup Added the AutobahnTestSuite Fuzzing Server to AB tests giving another language (Python) to compare Ratchet to Added a profile option for make Cleaned up the tests directory structure --- Makefile | 14 ++++++++++---- .../bin/fuzzingserver-libevent.php | 2 +- .../AutobahnTestSuite/bin/fuzzingserver-stream.php | 2 +- tests/AutobahnTestSuite/fuzzingclient-all.json | 9 +++++---- tests/AutobahnTestSuite/fuzzingclient-profile.json | 12 ++++++++++++ 5 files changed, 29 insertions(+), 10 deletions(-) create mode 100644 tests/AutobahnTestSuite/fuzzingclient-profile.json diff --git a/Makefile b/Makefile index 3f4acc0..ee20908 100644 --- a/Makefile +++ b/Makefile @@ -6,11 +6,17 @@ cover: abtests: ulimit -n 2048 - php tests/ab-wstest-libevent.php & - php tests/ab-wstest-stream.php & - cd tests && wstest -m fuzzingclient -s ab-wstest-fuzzyconf.json + php tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php & + php tests/AutobahnTestSuite/bin/fuzzingserver-stream.php & + wstest -m testeeserver -w ws://localhost:8002 & + wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-all.json + killall php + killall python + +profile: + php -d 'xdebug.profiler_enable=1' tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php & + wstest -m fuzzingclient -s tests/AutobahnTestSuite/fuzzingclient-profile.json killall php - echo apidocs: apigen --title Ratchet -d reports/api -s src/ \ diff --git a/tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php b/tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php index af120e4..df0c419 100644 --- a/tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php +++ b/tests/AutobahnTestSuite/bin/fuzzingserver-libevent.php @@ -1,6 +1,6 @@