Attached is a patch that rewrites derbyrunjartest as a JUnit
test and removes it from the old harness.
Both suites.All and derbyall passed with the patch.
Add derbyrun.jar to the classpath when running JUnit tests under EMMA. It wasn't needed before, since none of the other JUnit tests used derbyrun.jar.
Remove old canon.
Remove from old harness suite.
Make sure newly created policy file gets copied to classes directory.
Execute the tools and compare actual output with the expected output using BaseTestCase.assertExecJavaCmdAsExpected().
Additional permissions needed for the test to run (test classes need permission to find the location of derbyrun.jar). The original version of the test ran without a security manager for this reason.
Remove files used by the old harness.
Added logic to pass emma.jar to the classpath of the sub-process when running java -jar. Since you cannot add jar files directly to the classpath when running with -jar, emma.jar is added to the bootclasspath.