current/tools privoxy-regression-test.pl, 1.94, 1.95
Fabian Keil <[email protected]> Thu, 12 May 2016 08:42:52 +0000
| Newsgroups | gmane.comp.web.privoxy.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/ijbswa/current/tools
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv17861/tools
Modified Files:
privoxy-regression-test.pl
Log Message:
Privoxy-Regression-Test: Add a "Default level offset" directive
... which can be used to change the default level by a given value.
This directive affects all tests located after it until the end
of the file or a another "Default level offset" directive is reached.
The purpose of this directive is to make it more convenient to skip
similar tests in a given file without having to remove or disable
the tests completely.
Index: privoxy-regression-test.pl
===================================================================
RCS file: /cvsroot/ijbswa/current/tools/privoxy-regression-test.pl,v
retrieving revision 1.94
retrieving revision 1.95
diff -C2 -d -r1.94 -r1.95
*** privoxy-regression-test.pl 8 May 2016 10:45:18 -0000 1.94
--- privoxy-regression-test.pl 12 May 2016 08:42:50 -0000 1.95
***************
*** 526,529 ****
--- 526,530 ----
my $actionfile = undef;
my $sticky_actions = undef;
+ my $level_offset = 0;
foreach (@{get_cgi_page_or_else($curl_url)}) {
***************
*** 545,548 ****
--- 546,554 ----
# Load regression tests
+ if ($token eq 'default level offset') {
+
+ $level_offset = $value;
+ l(LL_FILE_LOADING, "Setting default level offset to " . $level_offset);
+ }
if (token_starts_new_test($token)) {
***************
*** 553,556 ****
--- 559,565 ----
enlist_new_test(\@regression_tests, $token, $value, $si, $ri, $count);
$no_checks = 1; # Already validated by enlist_new_test().
+ if ($level_offset != 0) {
+ $regression_tests[$si][$ri]{'level'} += $level_offset;
+ }
}
***************
*** 1949,1952 ****
--- 1958,1968 ----
as well.
+ The "Default level offset" directive can be used to change
+ the default level by a given value. This directive affects
+ all tests located after it until the end of the file or a another
+ "Default level offset" directive is reached. The purpose of this
+ directive is to make it more convenient to skip similar tests in
+ a given file without having to remove or disable the tests completely.
+
=head1 OPTIONS
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j