Mercurial > hg > nginx-tests
comparison image_filter.t @ 410:9fe6fc05c1d1
Tests: require "image_filter", not just "image".
"image_filter.t .. skipped: image_filter not compiled in" looks
much better.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 30 May 2014 16:40:02 +0400 |
parents | 2711722a85c3 |
children | a0bcdc51d99b |
comparison
equal
deleted
inserted
replaced
409:a47d6e69463e | 410:9fe6fc05c1d1 |
---|---|
25 select STDOUT; $| = 1; | 25 select STDOUT; $| = 1; |
26 | 26 |
27 eval { require GD; }; | 27 eval { require GD; }; |
28 plan(skip_all => 'GD not installed') if $@; | 28 plan(skip_all => 'GD not installed') if $@; |
29 | 29 |
30 my $t = Test::Nginx->new()->has(qw/http proxy map image/)->plan(39) | 30 my $t = Test::Nginx->new()->has(qw/http proxy map image_filter/)->plan(39) |
31 ->write_file_expand('nginx.conf', <<'EOF'); | 31 ->write_file_expand('nginx.conf', <<'EOF'); |
32 | 32 |
33 %%TEST_GLOBALS%% | 33 %%TEST_GLOBALS%% |
34 | 34 |
35 daemon off; | 35 daemon off; |