Skip to content

Commit

Permalink
Added test_perf make target
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelikespie committed Feb 12, 2012
1 parent 1cbe103 commit 2bb10d5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ TEST_URL='ws://localhost:9001/'

test:

bash ./TestSupport/run_test.sh $(TEST_SCENARIOS) $(TEST_URL)
bash ./TestSupport/run_test.sh $(TEST_SCENARIOS) $(TEST_URL) Debug
mkdir -p pages/results
open pages/results/index.html

test_all:

bash ./TestSupport/run_test.sh '*' $(TEST_URL)
bash ./TestSupport/run_test.sh '*' $(TEST_URL) Debug
mkdir -p pages/results
open pages/results/index.html

test_perf:

bash ./TestSupport/run_test.sh '9.*' $(TEST_URL) Release
mkdir -p pages/results
open pages/results/index.html
6 changes: 3 additions & 3 deletions TestSupport/run_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export MACOSX_DEPLOYMENT_TARGET="10.7"

TEST_SCENARIOS=$1
TEST_URL=$2
SDK=$3
CONFIGURATION=$3

export SR_TEST_URL=$TEST_URL

Expand All @@ -12,7 +12,7 @@ bash TestSupport/ensure_virtualenv.sh .env

CHILD_PID=$!

xcodebuild -target SocketRocket -arch i386 -configuration Debug -sdk iphonesimulator clean
xcodebuild -target SRWebSocketTests -arch i386 -configuration Debug -sdk iphonesimulator clean build
xcodebuild -target SocketRocket -arch i386 -configuration $CONFIGURATION -sdk iphonesimulator clean
xcodebuild -target SRWebSocketTests -arch i386 -configuration $CONFIGURATION -sdk iphonesimulator clean build

kill $CHILD_PID
2 changes: 0 additions & 2 deletions TestSupport/sr-testharness/srtestharness/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,6 @@ def main():

parser.add_argument('-t', '--exit-timeout', metavar='SECONDS', default=None, type=float, help='Will automatically exit after %(metavar)s seconds [default: %(default)s]')

parser.add_argument('-k', '--broadcast-bonjour-key', default=None, help='Enables bonjour broadcasting. Key is used to figure out which port we are listening on')

args = parser.parse_args()

spec = args.__dict__
Expand Down

0 comments on commit 2bb10d5

Please sign in to comment.