db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Db-derby Wiki] Update of "JunitVmIssues" by DanDebrunner
Date Wed, 10 Jan 2007 20:57:25 GMT
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

------------------------------------------------------------------------------
     junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All
  }}}
  
+ == IBM WCTME 5.7 Foundation (windows with -jcl:foun10) Alternative method ==
+ 
+ The tests can be run with a security manager with a simple policy file that avoids the issues
seen when running
+ with the standard policy file for the function tests. The simple policy file looks like:
+ 
+ {{{
+ grant codebase "file:/c:/_work/-" {
+   permission java.security.AllPermission;
+ };
+ grant {
+   permission java.util.PropertyPermission "derbyRoutineSecurityTest.yes", "read";
+ };
+ }}}
+ The code base for the grant can be a URL to any folder that is above the classes or jar
files used in the test.
+ Note it must be terminated with '''/-'''.
+ 
+ Here is an example command line, assuming that the policy file is in the current folder
and called simple.policy.
+ {{{
+ /cygdrive/c/_work/wctme5.7/ive/bin/j9 -jcl:foun10
+    -Djava.security.manager=
+    -Djava.security.policy=simple.policy
+    '-Xbootclasspath/a:c:\_work\wctme5.7\ive\lib\jdbc.jar'
+    -cp 'c:\derby\lib\derbyTesting.jar:c:\_work\derby\lib\derby.jar;c:\_work\junit.jar'
+    junit.textui.TestRunner org.apache.derbyTesting.functionTests.suites.All
+ }}}
+ 

Mime
View raw message