You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by Apache Wiki <wi...@apache.org> on 2006/10/17 22:23:47 UTC

[Db-derby Wiki] Update of "JunitVmIssues" by DanDebrunner

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Db-derby Wiki" for change notification.

The following page has been changed by DanDebrunner:
http://wiki.apache.org/db-derby/JunitVmIssues

New page:
= Platform specific notes for Derby's JUnit tests =
[[TableOfContents]]
== WCTME 5.7 Foundation (windows) ==

See [http://issues.apache.org/jira/browse/DERBY-1785 DERBY-1785]

A bug in the WCTME 5.7 JVM stops running the JUnit tests as the security manager does not pick up the policy file
unless the `java.security.policy` property is set on the command line (using `-D`). This can be worked around by setting
a number of properties on the command line when running WCTME 5.7.

These properties are for when the tests are being run against the `classes` folder.
Investigation is needed for the correct set to run with jar files.

|| '''Property''' || '''Value''' ||
|| `derbyTesting.serverhost` || `host` (fixed value will be ignored) ||
|| `derbyTesting.clienthost` || `host` (fixed value will be ignored) ||
|| `derbyTesting.codeclasses` || URL to classes folder ||
|| `java.security.policy` || URL to derby_tests.policy in the classes folder ||
|| `derby.system.home` ||  Full path to the system folder in the current folder ($PWD/system). The system folder need not exist, it will be created by Derby. ||

Example
{{{
/cygdrive/c/_work/wctme5.7/ive/bin/j9 -jcl:foun10
   '-Dderby.system.home=c:\_work\derby\trunk\systest\out7\system'
   -DderbyTesting.serverhost=host -DderbyTesting.clienthost=host
   -DderbyTesting.codeclasses=file:/C:/_work/derby/trunk/classes/
   -Djava.security.policy=file:/C:/_work/derby/trunk/classes/org/apache/derbyTesting/functionTests/util/derby_tests.policy
   '-Xbootclasspath/a:c:\_work\wctme5.7\ive\lib\jdbc.jar'
   -cp 'c:\_work\derby\trunk\classes;c:\_work\derby\trunk\tools\java\junit.jar'
   junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All
}}}