[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: test suite in source packages

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2005-02-12 00:28:01 CET

On 2005-02-11 15:55-0700, scohen@javactivity.org wrote:

> My point is, however, that the current test suite is developer-centric
> in design. They are unit tests, designed to enable developers to
> regression-test that their changes have not broken previously existing
> functionality. As a developer, I love having such a test suite at my
> disposal. It's a great tool, enabling me to quickly validate that my
> changes do no harm.

There are two major part of test suite, one is a coded with C, which
check that functional interface to the core libraries is OK. That is
what I would call as unit tests.

The second part (major by code and by execution time) is written by
python, and will drive cmdline svn, svnlook and svnadmin, and verify
that they work OK.

> It was not designed to validate that a user's system is capable of
> supporting subversion, which is what it is being used for in
> subversion source packages.

There are three different targets for testing:
make check # test done by using ra_local access
make davcheck # test done by using ra_dav access
make svncheck # test done by using ra_svn access

And top of that you could select which backend to test, BDB or FSFS.

I would say that this is exactly "verifying that the user system is
cabaple to support SVN"

> You want to test that Apache is working right, and whatever other
> system components subversion requires, and that the different
> components can talk to one another.

There is one script for that, which tries to do that out-of-box:

> If the developers have done their jobs, and as someone who has chosen
> to use open source, I trust them, I don't need to run their unit tests,

Why not, you have just compiled quite complicated piece of software
and libraries, don't you like to know that it works as adverticed,
do you?

> and frankly, they take longer than I would like.

One way to speed up the testing is to run tests over ramdisk:

BR, Jani

Jani Averbach
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Feb 12 00:30:23 2005

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.