comparison spdy.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 907e89fba9c3
children 8593f34a12e5
comparison
equal deleted inserted replaced
573:517cde5075d8 574:2cd00179f4b2
31 Compress::Raw::Zlib->Z_SYNC_FLUSH; 31 Compress::Raw::Zlib->Z_SYNC_FLUSH;
32 Compress::Raw::Zlib->Z_NO_COMPRESSION; 32 Compress::Raw::Zlib->Z_NO_COMPRESSION;
33 Compress::Raw::Zlib->WANT_GZIP_OR_ZLIB; 33 Compress::Raw::Zlib->WANT_GZIP_OR_ZLIB;
34 }; 34 };
35 plan(skip_all => 'Compress::Raw::Zlib not installed') if $@; 35 plan(skip_all => 'Compress::Raw::Zlib not installed') if $@;
36 plan(skip_all => 'win32') if $^O eq 'MSWin32';
37 36
38 my $t = Test::Nginx->new() 37 my $t = Test::Nginx->new()
39 ->has(qw/http proxy cache limit_conn rewrite spdy realip/); 38 ->has(qw/http proxy cache limit_conn rewrite spdy realip shmem/);
40 39
41 $t->plan(82)->write_file_expand('nginx.conf', <<'EOF'); 40 $t->plan(82)->write_file_expand('nginx.conf', <<'EOF');
42 41
43 %%TEST_GLOBALS%% 42 %%TEST_GLOBALS%%
44 43