Commit c55f0979 authored by Wandenberg Peixoto's avatar Wandenberg Peixoto

adding instructions about tests

parent 9e3a2931
...@@ -16,16 +16,16 @@ h2(#installing). Installing ...@@ -16,16 +16,16 @@ h2(#installing). Installing
git clone http://github.com/wandenberg/nginx-push-stream-module.git git clone http://github.com/wandenberg/nginx-push-stream-module.git
cd nginx-push-stream-module cd nginx-push-stream-module
# build with 0.8.54 or any other nginx version later than 0.7.67 # build with 1.0.x, 0.9.x, 0.8.x series or any other nginx version later than 0.7.67
./build.sh master 0.8.54 ./build.sh master 1.0.0
cd build/nginx-0.8.54 cd build/nginx-1.0.0
# finish # finish
sudo make install sudo make install
# check # check
sudo /usr/local/nginx/sbin/nginx -v sudo /usr/local/nginx/sbin/nginx -v
nginx version: nginx/0.8.54 nginx version: nginx/1.0.0
sudo /usr/local/nginx/sbin/nginx -c nginx-push-stream-module/misc/nginx.conf -t sudo /usr/local/nginx/sbin/nginx -c nginx-push-stream-module/misc/nginx.conf -t
the configuration file nginx-push-stream-module/misc/nginx.conf syntax is ok the configuration file nginx-push-stream-module/misc/nginx.conf syntax is ok
configuration file nginx-push-stream-module/misc/nginx.conf test is successful configuration file nginx-push-stream-module/misc/nginx.conf test is successful
...@@ -389,4 +389,56 @@ chunked_transfer_encoding off; ...@@ -389,4 +389,56 @@ chunked_transfer_encoding off;
</code> </code>
</pre> </pre>
[changelog]https://github.com/wandenberg/nginx-push-stream-module/blob/master/CHANGELOG.textile h2(#tests). Tests
The tests for this module are written in Ruby, and are acceptance tests.
To run them is needed to have an environment with:
* Basic requirements
** ruby >= 1.8.7
** rubygems >= 1.6.2
** rake >= 0.8.7
* Required gems
** POpen4 >= 0.1.4
** em-http-request >= 0.2.14
** json >= 1.4.3
** ruby-debug >= 0.10.4
You can install these gems with bundler (bundler is required to be installed before, _gem install bundler_)
<pre>
<code>
cd test/
bundle install --without docs
</code>
</pre>
or individually
<pre>
<code>
gem install POpen4 -v 0.1.4
gem install em-http-request -v 0.2.14
gem install json -v 1.4.3
gem install ruby-debug -v 0.10.4
</code>
</pre>
Then issue <code>rake tests</code>.
This command run the tests using nginx *executable* located at _/usr/local/nginx/sbin/nginx_ with _1_ *worker* responding at *host* _localhost_ and *port* _9990_.
To change this behavior use the commands bellow
<pre>
<code>
rake tests executable="../build/nginx-1.0.0/objs/nginx" # to change default path for nginx executable
rake tests host=localhost # to change default hostname
rake tests port=9889 # to change default port
rake tests workers=2 # to change dafault number of workers used
and can combine any of these parameters, like:
rake tests port=9889 executable="../build/nginx-1.0.0/objs/nginx"
</code>
</pre>
[changelog]CHANGELOG.textile
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment