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

Re: query on writing test scripts

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2005-02-14 15:53:49 CET

Madan U Sreenivasan <madan@collab.net> writes:

> Hi,
> If I need to write a test script that verifies that a particular 'svn
> co' command does not crash, should I
> - check for the output of the command
> - the status of the tree after the command
> - the contents of the file checked out
> could someone tell me what the common practise is.... I feel that
> verifying the contents of the file would effectively do the two above.

If your test script is meant to be part of Subversion's own test
suite, take a look at the svntest Python module that comes with
Subversion, in particular the svntest.run_and_verify_* functions. See
/subversion/tests/client/cmdline/svntest/ in the Subversion source
tree. And in that location's parent directory are a slew of test that
use that module.

Even if your test script is *not* meant to be part of Subversion, you
might consider learning from the svntest module anyway.

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Feb 14 16:01:12 2005

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

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