60 | | == Setup for Load tests == |
61 | | |
62 | | Installed the following to do load testing using the CI Server - |
63 | | |
64 | | * erlang - Version : R16B01 |
65 | | * tsung-1.4.2 |
66 | | |
67 | | For report generation - |
68 | | * zlib-1.2.8 |
69 | | * libpng-1.2.8 |
70 | | * freetype-2.4.0 |
71 | | * gd-2.0.33 |
72 | | * gnuplot-4.0.0 |
73 | | |
74 | | The installation script for installing these is here - |
75 | | |
76 | | {{{ |
77 | | |
78 | | #!/bin/sh |
79 | | |
80 | | # Download erlang source |
81 | | wget http://erlang.org/download/otp_src_R16B01.tar.gz |
82 | | tar xzf otp_src_R16B01.tar.gz |
83 | | cd otp_src_R16B01 |
84 | | |
85 | | # Install erlang |
86 | | ./configure -prefix=/opt/erlang-R16B01 |
87 | | make |
88 | | |
89 | | # Add /opt/erlang-R16B01/bin to path |
90 | | # in /etc/profile, add |
91 | | echo "export PATH=$PATH:/opt/erlang-R16B01/bin" >> /etc/profile |
92 | | |
93 | | . /etc/profile |
94 | | |
95 | | cd .. |
96 | | |
97 | | # Download tsung. |
98 | | wget http://tsung.erlang-projects.org/dist/tsung-1.4.2.tar.gz |
99 | | tar zxf tsung-1.4.2.tar.gz |
100 | | cd tsung-1.4.2 |
101 | | |
102 | | # Install tsung |
103 | | ./configure --prefix=/opt/tsung-1.4.2 |
104 | | sudo make install |
105 | | |
106 | | # Add /opt/tsung-1.4.2/bin to path |
107 | | # in /etc/profile, add |
108 | | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
109 | | |
110 | | . /etc/profile |
111 | | |
112 | | sudo cpan Template |
113 | | |
114 | | cd .. |
115 | | |
116 | | # install zlib |
117 | | wget zlib.net/zlib-1.2.8.tar.gz |
118 | | tar xzf zlib-1.2.8.tar.gz |
119 | | cd zlib-1.2.8 |
120 | | ./configure --prefix=/opt/zlib-1.2.8 |
121 | | make test |
122 | | sudo make install |
123 | | |
124 | | cd .. |
125 | | |
126 | | # install libpng |
127 | | wget download.sourceforge.net/libpng/libpng-1.2.8.tar.gz |
128 | | tar xzf libpng-1.2.8.tar.gz |
129 | | cd libpng-1.2.8/ |
130 | | cp scripts/makefile.linux makefile |
131 | | make |
132 | | make test |
133 | | sudo make install |
134 | | |
135 | | cd .. |
136 | | |
137 | | # install freetype |
138 | | wget download.savannah.gnu.org/releases/freetype/freetype-2.4.0.tar.gz |
139 | | tar xzf freetype-2.4.0.tar.gz |
140 | | cd freetype-2.4.0 |
141 | | ./configure --prefix=/opt/freetype-2.4.0 |
142 | | make |
143 | | sudo make install |
144 | | |
145 | | cd .. |
146 | | |
147 | | # install gd for png support of gnuplot. |
148 | | wget www12.tucows.com/linux/files/gd-2.0.33.tar.gz |
149 | | tar xzf gd-2.0.33 |
150 | | cd gd-2.0.33 |
151 | | ./configure --prefix=/opt/gd-2.0.33 |
152 | | sudo make install |
153 | | |
154 | | cd .. |
155 | | |
156 | | # Install gnuplot |
157 | | wget http://sourceforge.net/projects/gnuplot/files/gnuplot/4.6.3/gnuplot-4.0.0.tar.gz |
158 | | tar xzf gnuplot-4.0.0.tar.gz |
159 | | cd gnuplot-4.0.0 |
160 | | ./configure --prefix=/opt/gnuplot-4.4.0 |
161 | | sudo make install |
162 | | |
163 | | # Add /opt/gnuplot-4.4.0/bin to path |
164 | | # in /etc/profile, add |
165 | | echo "export PATH=$PATH:/opt/tsung-1.4.2/bin" >> /etc/profile |
166 | | |
167 | | . /etc/profile |
168 | | |
169 | | |
170 | | }}} |