| | 226 | |
| | 227 | ===== Setup for Load tests ===== |
| | 228 | |
| | 229 | Installed the following to do load testing using the CI Server - |
| | 230 | |
| | 231 | * erlang - Version : R16B01 |
| | 232 | * tsung-1.4.2 |
| | 233 | |
| | 234 | For report generation - |
| | 235 | * zlib-1.2.8 |
| | 236 | * libpng-1.2.8 |
| | 237 | * freetype-2.4.0 |
| | 238 | * gd-2.0.33 |
| | 239 | * gnuplot-4.0.0 |
| | 240 | |
| | 241 | The installation script for installing these is here - |
| | 242 | |
| | 243 | {{{ |
| | 244 | |
| | 245 | #!/bin/sh |
| | 246 | |
| | 247 | # Download erlang source |
| | 248 | wget http://erlang.org/download/otp_src_R16B01.tar.gz |
| | 249 | tar xzf otp_src_R16B01.tar.gz |
| | 250 | cd otp_src_R16B01 |
| | 251 | |
| | 252 | # Install erlang |
| | 253 | ./configure -prefix=/opt/erlang-R16B01 |
| | 254 | make |
| | 255 | |
| | 256 | # Add /opt/erlang-R16B01/bin to path |
| | 257 | # in /etc/profile, add |
| | 258 | echo "export PATH=$PATH:/opt/erlang-R16B01/bin" >> /etc/profile |
| | 259 | |
| | 260 | . /etc/profile |
| | 261 | |
| | 262 | cd .. |
| | 263 | |
| | 264 | # Download tsung. |
| | 265 | wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz |
| | 266 | tar zxf tsung-1.4.2.tar.gz |
| | 267 | cd tsung-1.4.2 |
| | 268 | |
| | 269 | # Install tsung |
| | 270 | ./configure --prefix=/opt/tsung-1.4.2 |
| | 271 | sudo make install |
| | 272 | |
| | 273 | # Add /opt/tsung-1.4.2/bin to path |
| | 274 | # in /etc/profile, add |
| | 275 | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
| | 276 | |
| | 277 | . /etc/profile |
| | 278 | |
| | 279 | sudo cpan Template |
| | 280 | |
| | 281 | cd .. |
| | 282 | |
| | 283 | # install zlib |
| | 284 | wget zlib.net/zlib-1.2.8.tar.gz |
| | 285 | tar xzf zlib-1.2.8.tar.gz |
| | 286 | cd zlib-1.2.8 |
| | 287 | ./configure --prefix=/opt/zlib-1.2.8 |
| | 288 | make test |
| | 289 | sudo make install |
| | 290 | |
| | 291 | cd .. |
| | 292 | |
| | 293 | # install libpng |
| | 294 | wget download.sourceforge.net/libpng/libpng-1.2.8.tar.gz |
| | 295 | tar xzf libpng-1.2.8.tar.gz |
| | 296 | cd libpng-1.2.8/ |
| | 297 | cp scripts/makefile.linux makefile |
| | 298 | make |
| | 299 | make test |
| | 300 | sudo make install |
| | 301 | |
| | 302 | cd .. |
| | 303 | |
| | 304 | # install freetype |
| | 305 | wget download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz |
| | 306 | tar xzf freetype-2.4.0.tar.gz |
| | 307 | cd freetype-2.4.0 |
| | 308 | ./configure --prefix=/opt/freetype-2.4.0 |
| | 309 | make |
| | 310 | sudo make install |
| | 311 | |
| | 312 | cd .. |
| | 313 | |
| | 314 | # install gd for png support of gnuplot. |
| | 315 | wget www12.tucows.com/linux/files/gd-2.0.33.tar.gz |
| | 316 | tar xzf gd-2.0.33 |
| | 317 | cd gd-2.0.33 |
| | 318 | ./configure --prefix=/opt/gd-2.0.33 |
| | 319 | sudo make install |
| | 320 | |
| | 321 | cd .. |
| | 322 | |
| | 323 | # Install gnuplot |
| | 324 | wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.3/gnuplot-4.0.0.tar.gz |
| | 325 | tar xzf gnuplot-4.0.0.tar.gz |
| | 326 | cd gnuplot-4.0.0 |
| | 327 | ./configure --prefix=/opt/gnuplot-4.4.0 |
| | 328 | sudo make install |
| | 329 | |
| | 330 | # Add /opt/gnuplot-4.4.0/bin to path |
| | 331 | # in /etc/profile, add |
| | 332 | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
| | 333 | |
| | 334 | . /etc/profile |
| | 335 | }}} |