testregression usage mini howto

Leo Savernik l.savernik at aon.at
Thu Feb 10 16:13:47 GMT 2005


Am Mittwoch, 9. Februar 2005 23:57 schrieb Koos Vriezen:
[...]
> > - kdelibs/khtml/testregression is the application that runs the
> > regression tests, and generates respective output.
> > - khtmltests/regression contains all the regression testcases themselves.
> >
> > In fact, you need both for regression testing.
>
> Can you elaborate on this? Is this documented how to build an run this?
> If not, how does one build and run it?
>
> Koos

Ok, here's a mini-howto on running the khtml regression tests:

Prerequisites: KDE HEAD compiles and runs.

1. From within kdelibs/khtml, issue

 make testregression

2. If necessary, update regression testsuite

 cd <testsuite-prefix>/khtmltests/regression
 cvs up

3. Run the regression tests (using the X-server you're currently running 
under, no Xvfb/Xnest hackery) with

 <prefix-to-kde-cvs-build-dir>/kdelibs/khtml/testregression 
<testsuite-prefix>/khtmltests/regression | tee <regression-logfile>

This will write errors to stderr, and the passed/failed messages into 
<regression-logfile>. The html-output is put under 
<testsuite-prefix>/khtmltests/regression/output by default.

That's it. The -o option comes in handy for directing the regression test 
output into another directly. That way you can compare the results of two 
test runs.

mfg
 Leo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20050210/cbfc1f9c/attachment.sig>


More information about the kfm-devel mailing list