-
Notifications
You must be signed in to change notification settings - Fork 2
/
run-testit-cloud.sh
executable file
·29 lines (17 loc) · 1.03 KB
/
run-testit-cloud.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
# script for OSX
# requires Apache setup like so: https://medium.com/@JohnFoderaro/how-to-set-up-apache-in-macos-sierra-10-12-bca5a5dfffba
# set X display if you want: https://fredrikaverpil.github.io/2016/07/31/docker-for-mac-and-gui-applications/
# if xquart starts slow, delete: /opt/X11/var/run/font_cache.lock
# use XMing X11 display on windows
# if you correctly set XDisplay , and enable jmeter GUI in .yml, then you will see both Jmeter
# start on your local machine and also a browser pointing to the test report.
# once jmeter GUI starts up, you have to execute the RUN button manually
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
xhost + $ip
time_stamp=$(date +%Y-%m-%d-%T)
mv artifacts artifacts_${time_stamp}
PWD=`pwd`
docker run -it --rm -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix -v $PWD:/bzt-configs -v $PWD/artifacts:/tmp/artifacts blazemeter/taurus:latest testit-cloud.yml
#docker run -it --rm -v $PWD:/bzt-configs -v $PWD/artifacts:/artifacts blazemeter/taurus testit.yml
echo "Done"