Mercurial > hg > nginx-tests
comparison config_dump.t @ 1251:766bcbb632ee
Tests: removed TODO and try_run() checks for legacy versions.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Fri, 24 Nov 2017 19:58:40 +0300 |
parents | a07205e8bb76 |
children | 9d579fc770a6 |
comparison
equal
deleted
inserted
replaced
1250:b708848eb49a | 1251:766bcbb632ee |
---|---|
75 like($dump, qr!^# configuration file $d/nginx.conf:$!m, 'nginx.conf found'); | 75 like($dump, qr!^# configuration file $d/nginx.conf:$!m, 'nginx.conf found'); |
76 like($dump, qr!^# configuration file $d/inc.conf:$!m, 'inc.conf found'); | 76 like($dump, qr!^# configuration file $d/inc.conf:$!m, 'inc.conf found'); |
77 like($dump, qr!^# configuration file $d/inc2.conf:$!m, 'inc2.conf found'); | 77 like($dump, qr!^# configuration file $d/inc2.conf:$!m, 'inc2.conf found'); |
78 like($dump, qr!^# configuration file $d/map.conf:$!m, 'map.conf found'); | 78 like($dump, qr!^# configuration file $d/map.conf:$!m, 'map.conf found'); |
79 | 79 |
80 TODO: { | |
81 local $TODO = 'not yet' unless $t->has_version('1.11.6'); | |
82 | |
83 unlike($dump, qr!(# configuration file $d/inc.conf:).*\1!s, 'inc.conf uniq'); | 80 unlike($dump, qr!(# configuration file $d/inc.conf:).*\1!s, 'inc.conf uniq'); |
84 unlike($dump, qr!(# configuration file $d/inc2.conf:).*\1!s, 'inc2.conf uniq'); | 81 unlike($dump, qr!(# configuration file $d/inc2.conf:).*\1!s, 'inc2.conf uniq'); |
85 unlike($dump, qr!(# configuration file $d/map.conf:).*\1!s, 'map.conf uniq'); | 82 unlike($dump, qr!(# configuration file $d/map.conf:).*\1!s, 'map.conf uniq'); |
86 | |
87 } | |
88 | 83 |
89 is(getconf($t, $dump, 'nginx.conf'), $t->read_file('nginx.conf'), 'content'); | 84 is(getconf($t, $dump, 'nginx.conf'), $t->read_file('nginx.conf'), 'content'); |
90 is(getconf($t, $dump, 'inc.conf'), $t->read_file('inc.conf'), 'content inc'); | 85 is(getconf($t, $dump, 'inc.conf'), $t->read_file('inc.conf'), 'content inc'); |
91 is(getconf($t, $dump, 'map.conf'), $t->read_file('map.conf'), 'content inc 2'); | 86 is(getconf($t, $dump, 'map.conf'), $t->read_file('map.conf'), 'content inc 2'); |
92 | 87 |