Re: 3.0.20 regression testing

Fabian Keil <[email protected]>
Newsgroups gmane.comp.web.privoxy.devel
Message-ID <[email protected]>
Lee <[email protected]> wrote:

> On 1/3/13, Fabian Keil <[email protected]> wrote:
> >
> > Using only the official files:
> >
> > actionsfile match-all.action
> > actionsfile default.action
> > actionsfile regression-tests.action
> >
> > I get:
> >
> > fk@r500 ~/git/privoxy $privoxy-regression-test.pl --max-level 109
> > --show-skipped-tests
> > 2013-01-03 20:26:44: Asking Privoxy for the number of action files available
[...]
> > 2013-01-03 20:26:57: Executed 658 regression tests. Skipped 7. 658
> > successes, 0 failures.
> 
> 13 seconds!!!  I wish.  Cygwin is *slow*

On FreeBSD Privoxy-Regression-Test spends most of the time
(IIRC more than 99%) executing curl, so you could try using
a native curl binary which might make a difference.

You could also try profiling Privoxy-Regression-Test yourself first,
but getting Devel::NYTProf running on Windows might not be your idea
of a having a good time.

> > The two test failures here are the result of me intentionally overriding
> > sections in default.action in my own files without being able to explain
> > this to privoxy-regression-test.pl as described above.
> >
> > I usually silence them by setting the ignore flag,
> 
> hrmm... maybe more documentation would help :)

Now that I know that there is demand I should probably implement
a proper solution. Of course this doesn't rule out explicitly
documenting the work around as well ...

> I took a quick look, but didn't see anything for an ignore flag.  Is
> all your documentation inside of privoxy-regression-test.pl or is
> there somewhere else I should be looking?

Currently "the code is the documentation":

fk@r500 ~/git/privoxy $cat -n tools/privoxy-regression-test.pl
[...]
   578              } elsif ($token eq 'ignore' && $value =~ /Yes/i) {
   579  
   580                  l(LL_FILE_LOADING, "Ignoring section: " . test_content_as_string($regression_tests[$si][$ri]));
   581                  $regression_tests[$si][$ri]{'ignore'} = 1;
   582                  $ignored++;
   583  
   584              } elsif ($token eq 'expect status code') {

Thus you can put "# Ignore = Yes" below any test you want to skip.

Fabian

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812

_______________________________________________
Ijbswa-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ijbswa-developers
signature.asc (application/pgp-signature, 196 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAlDm4RAACgkQSMVSH78upWMl3wCgicJqL4WdD/dv1YesKXFQKNS9
twUAn06LzAT7w2N+0pIa8nQscBWR/v4t
=oCqu
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.