Checkout
Branko ─îibej
committed
on 03 Apr 15
Teach the JavaHL tests to optionally clean up after themselves
when given the JAVAHL_CLEAN option on the make command line
(or with the syst… Show more
Teach the JavaHL tests to optionally clean up after themselves

when given the JAVAHL_CLEAN option on the make command line

(or with the system property test.cleanup set to a non-empty string).

* Makefile.in

 (check-tigris-javahl, check-apache-javahl, check-deprecated-authn-javahl):

  Define the test.cleanup property when running JavaHL tests.

[in subversion/bindings/javahl/tests]

* org/apache/subversion/javahl/SVNTests.java

 (SVNTest.cleanupAfterTests, SVNTest.testDirs): New fields.

 (SVNTest.init): Initialize SVNTest.cleanupAfterTests from properties.

 (SVNTest.tearDown): Optionally remove test directories.

 (SVNTest.trackDir): New.

 (SVNTest.OneTest.createInitialRepository,

  SVNTest.OneTest.createInitialWorkingCopy): Track created directories.

* org/apache/subversion/javahl/SVNRemoteTests.java,

* org/apache/subversion/javahl/SVNReposTests.java,

* org/tigris/subversion/javahl/SVNAdminTests.java:

 (<test-class>.testName): Declare the base name for test directories.

 (<test-class>.<init>): Call init().

 (<test-class>.init): Initialize the global test name.

Show less