Last active
December 15, 2015 18:09
-
-
Save trastle/5301101 to your computer and use it in GitHub Desktop.
A script to build tsung with tsung_ws on OSX
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
#!/bin/bash | |
function getWhatWeNeed { | |
brew install erlang | |
brew install gnuplot | |
} | |
function getCode { | |
echo -e "\n\nDownloading code...\n\n" | |
# Get the version of tsung we need | |
wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz | |
tar -xf tsung* | |
rm tsung-1.4.2.tar.gz | |
# Get tsung_ws | |
git clone https://github.com/wulczer/tsung_ws.git | |
} | |
function copyTsungWSintoTsung { | |
echo -e "\n\nCopy tsung_ws code into the tsung directory...\n\n" | |
cp tsung_ws/*.dtd tsung-1.4.2/. | |
cp tsung_ws/include/*.hrl tsung-1.4.2/include/. | |
cp tsung_ws/src/tsung_controller/*.erl tsung-1.4.2/src/tsung_controller/. | |
cp tsung_ws/src/tsung/*.erl tsung-1.4.2/src/tsung/. | |
} | |
function compileTsungWS { | |
echo -e "\n\nCompile Tsung with Tsung_ws...\n\n" | |
cd tsung-1.4.2/ | |
./configure --prefix=$HOME/local/tsung | |
make | |
} | |
# Main | |
getWhatWeNeed | |
getCode | |
copyTsungWSintoTsung | |
compileTsungWS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment