File: server_tests.textile

package info (click to toggle)
libnginx-mod-http-push-stream 0.6.0%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,272 kB
  • sloc: ruby: 7,101; ansic: 6,048; javascript: 2,121; sh: 53; makefile: 16
file content (29 lines) | stat: -rw-r--r-- 1,043 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
h1(#tests). Tests <a name="tests" href="#">&nbsp;</a>

The tests for this module are written in Ruby, and are acceptance tests.
To run them is needed to have an environment with:

* ruby >= 1.9.3
* bundler >= 1.1.4

and install required gems doing:

<pre>
cd misc/
bundle install --without docs
</pre>

Then issue @rake spec@.
This command run the tests using nginx *executable* located at _/usr/local/nginx/sbin/nginx_ with _1_ *worker* responding at *host* _127.0.0.1_ and *port* _9990_.
To change this behavior use the commands bellow

<pre>
NGINX_EXEC="../build/nginx-1.2.0/objs/nginx" rake spec   # to change default path for nginx executable
NGINX_HOST="my_machine" rake spec                        # to change default hostname
NGINX_PORT=9889 rake spec                                # to change default port
NGINX_WORKERS=2 rake spec                                # to change dafault number of workers used

and can combine any of these parameters, like:

NGINX_PORT=9889 NGINX_EXEC="../build/nginx-1.2.0/objs/nginx" rake spec
</pre>