Mercurial > hg > nginx-tests
comparison sub_filter_multi2.t @ 1020:196d33c2bb45
Tests: removed TODO and try_run() checks for legacy versions.
Also removed now unused spdy.t and shmem prerequisite.
author | Andrey Zelenkov <zelenkov@nginx.com> |
---|---|
date | Wed, 31 Aug 2016 18:21:07 +0300 |
parents | 882267679006 |
children |
comparison
equal
deleted
inserted
replaced
1019:41139d6f8b7b | 1020:196d33c2bb45 |
---|---|
20 ############################################################################### | 20 ############################################################################### |
21 | 21 |
22 select STDERR; $| = 1; | 22 select STDERR; $| = 1; |
23 select STDOUT; $| = 1; | 23 select STDOUT; $| = 1; |
24 | 24 |
25 my $t = Test::Nginx->new()->has(qw/http rewrite sub/) | 25 my $t = Test::Nginx->new()->has(qw/http rewrite sub/)->plan(7) |
26 ->write_file_expand('nginx.conf', <<'EOF'); | 26 ->write_file_expand('nginx.conf', <<'EOF'); |
27 | 27 |
28 %%TEST_GLOBALS%% | 28 %%TEST_GLOBALS%% |
29 | 29 |
30 daemon off; | 30 daemon off; |
58 | 58 |
59 } | 59 } |
60 | 60 |
61 EOF | 61 EOF |
62 | 62 |
63 $t->try_run('no multiple sub_filter')->plan(7); | 63 $t->run(); |
64 | 64 |
65 ############################################################################### | 65 ############################################################################### |
66 | 66 |
67 like(http_get('/var/replacement?a=a&b=b&c=abXYaXbZ'), | 67 like(http_get('/var/replacement?a=a&b=b&c=abXYaXbZ'), |
68 qr/a\+b-XYa\+Xb-Z/, 'complex'); | 68 qr/a\+b-XYa\+Xb-Z/, 'complex'); |