Files
weave-scope/client/test/run-jankie.sh
David Kaltschmidt 0a1740cbe6 Fix metrics rebase
2016-04-05 18:15:28 +02:00

35 lines
760 B
Bash
Executable File

#!/bin/bash
# run jankie on one commit
# These need to be running:
#
# docker run --net=host -d -p 4444:4444 -v /dev/shm:/dev/shm selenium/standalone-chrome:2.52.0
# docker run -d -p 5984:5984 --name couchdb klaemo/couchdb
#
# Initialize the results DB
#
# perfjankie --only-update-site --couch-server http://local.docker:5984 --couch-database performance
#
# Usage:
#
# ./run-jankie.sh 192.168.64.3:4040
#
# View results: http://local.docker:5984/performance/_design/site/index.html
#
set -x
set -e
HOST="$1"
DATE=$(git log --format="%at" -1)
COMMIT=$(git log --format="%h" -1)
echo "Testing $COMMIT on $DATE"
../../scope stop
make SUDO= -C ../..
../../scope launch
sleep 5
COMMIT="$COMMIT" DATE=$DATE HOST=$HOST DEBUG=scope* node ./perfjankie/main.js