Mercurial > hg > nginx-tests
comparison lib/Test/Nginx.pm @ 33:4f57d57543e1
Tests: range filter tests.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Tue, 14 Oct 2008 02:18:03 +0400 |
parents | 71ea39729fa0 |
children | 6cf314ec8f7b |
comparison
equal
deleted
inserted
replaced
32:18296293d18a | 33:4f57d57543e1 |
---|---|
46 sub has { | 46 sub has { |
47 my ($self, $feature) = @_; | 47 my ($self, $feature) = @_; |
48 | 48 |
49 my %regex = ( | 49 my %regex = ( |
50 mail => '--with-mail', | 50 mail => '--with-mail', |
51 flv => '--with-http_flv_module', | |
51 rewrite => '(?s)^(?!.*--without-http_rewrite_module)', | 52 rewrite => '(?s)^(?!.*--without-http_rewrite_module)', |
52 static => '(?s)^(?!.*--without-http_static_module)', | |
53 ); | 53 ); |
54 | 54 |
55 Test::More::plan(skip_all => "$feature not compiled in") | 55 Test::More::plan(skip_all => "$feature not compiled in") |
56 unless `$NGINX -V 2>&1` =~ $regex{$feature}; | 56 unless `$NGINX -V 2>&1` =~ $regex{$feature}; |
57 | 57 |