Patch that makes RunList pass on any ij.dataSource properties in the
System set to forked RunTest.

This allows suites to be run using a datasource for the default
connection instead of DriverManager. Allows testing of JSR169.

When Derby moves to JUnit it should be a requirement that opening
Connection is cleanly separated from tests or the harness.

I'll commit this by Monday but would appreciate Andrew or Myrna (or
anyone else) having a look at it.

Thanks,
Dan.
Index: java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java
===================================================================
--- java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java     
(revision 178840)
+++ java/testing/org/apache/derbyTesting/functionTests/harness/RunList.java     
(working copy)
@@ -436,6 +436,14 @@
         }
         else if (otherSpecialProps.length()>0)
             jvmProps.addElement("testSpecialProps=" + otherSpecialProps);
+        
+        Properties sysProps = System.getProperties();
+        for (Enumeration e = sysProps.keys(); e.hasMoreElements(); )
+        {
+               String key = (String) e.nextElement();
+               if (key.startsWith("ij.dataSource"))
+                       jvmProps.addElement(key + "=" +  
sysProps.getProperty(key));            
+        }
 
         jvmProps.addElement("suitename=" + suite);
 

Reply via email to