# HG changeset patch # User Maxim Dounin # Date 1227030227 -10800 # Node ID acfafb52d393555808e746b4ffed17695afb44b0 # Parent bb6d65d833cdcd1ca1942c5b760e9a2a047757b0 Tests: use TEST_NGINX_BINARY to find nginx binary. If not specified, fallback to ../nginx/objs/nginx. diff --git a/lib/Test/Nginx.pm b/lib/Test/Nginx.pm --- a/lib/Test/Nginx.pm +++ b/lib/Test/Nginx.pm @@ -22,7 +22,8 @@ use Test::More qw//; ############################################################################### -our $NGINX = '../nginx/objs/nginx'; +our $NGINX = defined $ENV{TEST_NGINX_BINARY} ? $ENV{TEST_NGINX_BINARY} + : '../nginx/objs/nginx'; sub new { my $self = {};