On Wed, Jul 8, 2020 at 9:16 AM sebb <seb...@gmail.com> wrote:
>
> It would be useful to be able to test the SVN library routines against
> a real repo.
>
> Any suggestions/experience with that?

Create one using svnadmin.  Check it out using file:/// URLs.  Commit
to it like you would any other repository.

Example:

https://github.com/apache/whimsy/blob/master/www/board/agenda/Rakefile#L61-L74

The board agenda tool switches paths based on an environment variable:

https://github.com/apache/whimsy/blob/master/www/board/agenda/main.rb#L34-L45

In your case, your tests likely will need to create a repository and
then will likely need to provide the paths to the test repositories to
ASF::Config so that ASF::SVN.svnurl will return the test repository.

> Sebb

- Sam Ruby

Reply via email to