|
A short writeup on usage:
a) -DderbyTesting.oldReleasePath=/usr/local/share/java/derby/lib -DderbyTesting.oldVersionsPath=/usr/local/share/java/derby/lib/versions Use jars at /usr/local/share/java/derby/lib and test upgrade from the versions listed in /usr/local/share/java/derby/lib/versions 'versions' might look like this: # Ignore lines not matching the regexp: "^[\\d]+\\.[\\d]+\\.[\\d]+\\.[\\d]" 10.0.2.1 // 10.0.2.1 (incubator release) 10.1.1.0 // 10.1.1.0 (Aug 3.2005 / SVN 208786) 10.1.2.1 // 10.1.2.1 (Nov 18.2005 / SVN 330608) 10.1.3.1 // 10.1.3.1 (Jun 30.2006 / SVN 417277) 10.2.1.6 // 10.2.1.6 (Oct 02.2006 / SVN 452058) 10.2.2.0 // 10.2.2.0 (Dec 12.2006 / SVN 485682) 10.2.2.1 // (Special test version / SVN 538595) 10.3.1.4 // 10.3.1.4 (Aug 1.2007 / SVN 561794) 10.3.3.0 // 10.3.3.0 (May 12.2008 / SVN 652961) 10.4.1.3 // 10.4.1.3 (April 24.2008 / SVN 648739) 10.4.2.0 // 10.4.2.0 (September 05, 2008 / SVN 693552) 10.4.2.1 // (Special test version / SVN 706043) b) -DderbyTesting.oldReleasePath=/usr/local/share/java/derby/lib Use jars at /usr/local/share/java/derby/lib and test upgrade from the versions listed as defaults (currently as listed in 'VERSIONS'). c) -DderbyTesting.oldVersionsPath=/usr/local/share/java/derby/lib/versions Use jars fetched from 'http://svn.apache.org/repos/asf/db/derby/jars' and test upgrade from the versions listed in /usr/local/share/java/derby/lib/versions. Will warn that 10.2.2.1 and 10.4.2.1 are not available d) None of -DderbyTesting.oldReleasePath and -DderbyTesting.oldReleasePath are given Use jars fetched from 'http://svn.apache.org/repos/asf/db/derby/jars' and test upgrade from the versions listed as defaults (currently as listed in 'VERSIONS'). Thanks for this patch, Ole. One thing I noticed is that the upgrade _Suite now imports two classes from java.util.regex. I think that will prevent the upgrade tests from running on small device platforms since that package is not part of CDC/FP 1.1.
Thanks for catching that Rick!
I am testing a new patch... Hi Ole,
Thanks for the second patch. Looks good to me. I have verified that you can use this new knob to test upgrade from custom patch releases. I have run a full upgrade run from all of the starting points you listed above. I think this is a great improvement. If you think the patch is ready for commit, I will check it in. As a follow-on patch, it would be great if you could beef up the comment preceding the declaration of OLD_VERSIONS_PATH_PROPERTY, explaining the format of the file of version names. Something like: one version per line, 4 part version name, concluding comments are ignored, etc. I don't know if you're planning to describe this new feature in the documentation on how to run Derby tests. But that would be appreciated. Thanks! Hi Rick,
Thanks for reviewing the second patch. I am setting 'Patch Available' on this one. I will add better comments and more documentation in a follow-on patch as you suggest. Thanks! Thanks, Ole. Committed
Thanks for committing the patch Rick!
Removing Patch Available flag. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
DERBY-3982. For review.I also added warning messages for the cases where the version jar files are missing .
This was previously silently ignore, except when running with the debug flag set.