Mercurial > hg > nginx-tests
comparison proxy_cache_chunked.t @ 574:2cd00179f4b2
Tests: has_feature() introduced in Test::Nginx.
It is used to check in a platform-aware way for a non-standard capability.
Use it for shared memory ('shmem') and symlink. Notably, this enables
corresponding tests on win32 where/when appropriate.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 14 May 2015 14:46:13 +0300 |
parents | 071e8941e3bf |
children | f02dac68d584 |
comparison
equal
deleted
inserted
replaced
573:517cde5075d8 | 574:2cd00179f4b2 |
---|---|
22 ############################################################################### | 22 ############################################################################### |
23 | 23 |
24 select STDERR; $| = 1; | 24 select STDERR; $| = 1; |
25 select STDOUT; $| = 1; | 25 select STDOUT; $| = 1; |
26 | 26 |
27 plan(skip_all => 'win32') if $^O eq 'MSWin32'; | 27 my $t = Test::Nginx->new()->has(qw/http proxy cache shmem/)->plan(2); |
28 | |
29 my $t = Test::Nginx->new()->has(qw/http proxy cache/)->plan(2); | |
30 | 28 |
31 $t->write_file_expand('nginx.conf', <<'EOF'); | 29 $t->write_file_expand('nginx.conf', <<'EOF'); |
32 | 30 |
33 %%TEST_GLOBALS%% | 31 %%TEST_GLOBALS%% |
34 | 32 |