comparison lib/Test/Nginx.pm @ 48:acfafb52d393

Tests: use TEST_NGINX_BINARY to find nginx binary. If not specified, fallback to ../nginx/objs/nginx.
author Maxim Dounin <mdounin@mdounin.ru>
date Tue, 18 Nov 2008 20:43:47 +0300
parents 239a346b4913
children b01ae969181b
comparison
equal deleted inserted replaced
47:bb6d65d833cd 48:acfafb52d393
20 use Socket qw/ CRLF /; 20 use Socket qw/ CRLF /;
21 use Test::More qw//; 21 use Test::More qw//;
22 22
23 ############################################################################### 23 ###############################################################################
24 24
25 our $NGINX = '../nginx/objs/nginx'; 25 our $NGINX = defined $ENV{TEST_NGINX_BINARY} ? $ENV{TEST_NGINX_BINARY}
26 : '../nginx/objs/nginx';
26 27
27 sub new { 28 sub new {
28 my $self = {}; 29 my $self = {};
29 bless $self; 30 bless $self;
30 31