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

Re: [PATCH] Show correct error when running python tests with srcdir!=builddir

From: Malcolm Rowe <malcolm-svn-dev_at_farside.org.uk>
Date: 2006-01-13 20:02:37 CET

On Thu, Dec 29, 2005 at 04:00:59PM +0100, Tobias Schäfer wrote:
> I followed the instructions from http://svn.collab.net/repos/svn/trunk/INSTALL
> which say how to build subversion outside of the source directory.
>
> [...]
>
> I then changed into the directory subversion/tests/cmdline/ and executed
> "./commit-tests.py 1" and this bailed out with:
>
> "UNEXPECTED EXCEPTION:
> [...]
>
> What actually went wrong, was that the command "../../../svnadmin" could not
> be found (remember the obj-directory which lies outside of the source
> directory!) and therefore the blank repository could not be created in
> svn-test-work/local_tmp/repos/
>
> [...]
>
> This doesn't solve the problem that the tests don't run when subversion is
> built in a directory other than the source tree but at least the correct error
> is shown. I don't have a solution for this problem but maybe someone has an
> idea.
>

If you're building in a separate directory to the source directory,
you also need to run the tests from the equivalent place in the objdir
directory (since that's where all the 'build' output goes to), instead
of from within the srcdir, as you're doing.

i.e.,
$ cd obj/subversion/tests/cmdline
$ ../../../../src/subversion/tests/cmdline/commit-tests.py 1

You'll notice that 'make check' does this when you run it.

I can't review your patch, as my Python's not up to it. It sounds like
a good idea, though.

Regards,
Malcolm

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jan 13 20:53:26 2006

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.