diff lib/Test/Nginx.pm @ 460:0342957cca37

Tests: check for nginx binary presence.
author Sergey Kandaurov <pluknet@nginx.com>
date Tue, 16 Sep 2014 12:31:36 +0400
parents 60888e2c3f5a
children 43e05ac6c23c
line wrap: on
line diff
--- a/lib/Test/Nginx.pm	Thu Sep 11 20:35:40 2014 +0400
+++ b/lib/Test/Nginx.pm	Tue Sep 16 12:31:36 2014 +0400
@@ -46,6 +46,9 @@
 	mkdir "$self->{_testdir}/logs"
 		or die "Can't create logs directory: $!\n";
 
+	Test::More::BAIL_OUT("no $NGINX binary found")
+		unless -x $NGINX;
+
 	return $self;
 }