Skip to content

Instantly share code, notes, and snippets.

@trastle
Last active December 15, 2015 18:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save trastle/5301101 to your computer and use it in GitHub Desktop.
Save trastle/5301101 to your computer and use it in GitHub Desktop.
A script to build tsung with tsung_ws on OSX
#!/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