Mercurial > hg > nginx-tests
comparison sub_filter_multi.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 proxy/); | 25 my $t = Test::Nginx->new()->has(qw/http rewrite sub proxy/)->plan(42); |
26 | 26 |
27 my $long_pattern = '0123456789abcdef' x 17; | 27 my $long_pattern = '0123456789abcdef' x 17; |
28 | 28 |
29 (my $conf = <<'EOF') =~ s/%%LONG_PATTERN%%/$long_pattern/g; | 29 (my $conf = <<'EOF') =~ s/%%LONG_PATTERN%%/$long_pattern/g; |
30 | 30 |
279 $t->write_file('huge9.html', scalar ('ABC' . $long_pattern . 'yz') x 1000); | 279 $t->write_file('huge9.html', scalar ('ABC' . $long_pattern . 'yz') x 1000); |
280 $t->write_file('huge10-01.html', scalar ($long_pattern . 'ABC01ef') x 1000); | 280 $t->write_file('huge10-01.html', scalar ($long_pattern . 'ABC01ef') x 1000); |
281 $t->write_file('huge10-02.html', scalar ('01efABC' . $long_pattern) x 1000); | 281 $t->write_file('huge10-02.html', scalar ('01efABC' . $long_pattern) x 1000); |
282 $t->write_file('huge11.html', scalar ('01efA_Z' . $long_pattern) x 1000); | 282 $t->write_file('huge11.html', scalar ('01efA_Z' . $long_pattern) x 1000); |
283 | 283 |
284 $t->try_run('no multiple sub_filter')->plan(42); | 284 $t->run(); |
285 | 285 |
286 ############################################################################### | 286 ############################################################################### |
287 | 287 |
288 like(http_get('/multi?a=aabAyyzBaab'), qr/\+A-B\+/, 'simple match'); | 288 like(http_get('/multi?a=aabAyyzBaab'), qr/\+A-B\+/, 'simple match'); |
289 like(http_get('/multi2?a=aabbaaabbaabb'), qr/\+-\+/, 'partial match'); | 289 like(http_get('/multi2?a=aabbaaabbaabb'), qr/\+-\+/, 'partial match'); |