db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Deepa Remesh (JIRA)" <derby-...@db.apache.org>
Subject [jira] Updated: (DERBY-1075) Combine the script and the test available for upgrade testing into a java test
Date Thu, 16 Mar 2006 01:02:58 GMT
     [ http://issues.apache.org/jira/browse/DERBY-1075?page=all ]

Deepa Remesh updated DERBY-1075:

    Attachment: derby-1075-patch1-draft.diff

Attaching  a draft patch 'derby-1075-patch1-draft.diff'. This patch combines runphases.ksh
and phaseTester.java into a single java class 'UpgradeTester'. This patch is only for review
and not for commit.

Summary of patch:

1. The new class UpgradeTester does the following:

* Creates two class loaders using the jar locations provided for old and new release
* Switches between these two class loaders to run the different upgrade phases with old or
new release. 
* Has a main method which takes following inputs: <location of old jars>, <location
of new jars>, <old major version>, <old minor version>
This is same as inputs needed by runphases.ksh. Once the previous release jars are available
in svn, we can avoid taking command-line inputs and it should be possible to add this as a
harness test. It should be possible to add more tests using the jar locations for each old/new
release combination to be tested. 

2. The new master added 'UpgradeTester.out' is based on phaseTester.out with few diffs in
the statements printed out.

To run upgrade tests using this class, use the command: 
java UpgradeTester <location of old jars> <location of new jars> <old major
version> <old minor version>
e.g, java UpgradeTester C:\derby\10.1\lib C:\derby\trunk\lib 10 1

The test run still has to be compared manually to the out file 'UpgradeTester.out' and will
show many diffs. DERBY-1076 is open to resolve these diffs.

I am continuing with few minor changes on the patch and will upload a newer version when done.
In the meantime, I would appreciate any feedback on the patch. Specifically, I would like
to know if I have missed anything when converting the test.

> Combine the script and the test available for upgrade testing into a java test
> ------------------------------------------------------------------------------
>          Key: DERBY-1075
>          URL: http://issues.apache.org/jira/browse/DERBY-1075
>      Project: Derby
>         Type: Sub-task
>     Reporter: Deepa Remesh
>     Assignee: Deepa Remesh
>     Priority: Minor
>      Fix For:
>  Attachments: derby-1075-patch1-draft.diff, derby-1075-patch1-draft.status, loader.java,
> Separating a part of DERBY-514 into a sub-task. This sub-task is to combine the script
'runphases.ksh' and the java file 'phaseTester.java' into a single java test. This will help
to later add the upgrade tests into the regression suite. Also, this sub-task can be done
independent of DERBY-1049 which is blocking DERBY-514.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message