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