History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: COR-860
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Carl Rosenberger
Reporter: Carl Rosenberger
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
db4o Core

NewTypehandler: Database file creation for upgrade tests

Created: 05/Sep/07 01:10 PM   Updated: 17/Sep/07 02:19 PM
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0 - Development Release, 6.4.8

Time Tracking:
Original Estimate: Not Specified
Remaining Estimate: 0h
Time Spent - 12h
Time Spent: 12h
Time Spent - 12h

Issue Links:
Dependencies
 

Peers: Norberto Goussies and Richard Liang
Order: 3
Iteration: 8
Original IDS Estimate: 2
Resolution Date: 17/Sep/07 02:19 PM
Labels:
Participants: Carl Rosenberger
Number of Attachments: 0
Number of Comments: 0


 Description  « Hide
I checked in IntHandlerUpdateTestCase just now.
It is a sample how I think this should work.

The test case creates a file in /test/db4oVersions/
migrate_int_db4o_6.4.000.yap (I kept .yap, because svn:ignore knows it)

To make this file part of the future version upgrade test in the regression tests:
- remove the .yap from the name
- copy it to all /test/db4oVersions/ places, or fix the logic to use one place only
- add the version name to the #versionNames() array method at the beginning of HandlerUpdateTestCaseBase

Running IntHandlerUpdateTestCase against all the past db4o versions would create all the required files

So the task I am proposing as a first step is to:

(1) create a new project in our SVN where we put all the old db4o jars and .dlls that we want to
create upgradable database files for.
(2) Write either Java code or an Ant task (or whatever) to run from this project that runs the right test cases and produces the database files for each of the old db4o.jar and db4o.dll db4o engines.

If this would be a single Java app, it would use a ClassLoader.

Ant could be easier.

As a result I would like to have migrate_int_db4o_X.x.xxx files for the following db4o versions for Java and .NET:

3.0
4.0
4.6
5.0
5.3
5.4
5.5
5.6
5.7
6.0
6.1
6.3

If you can think of a reproducible easier way to get there, that's fine too.

The script or Java / .NET app should automate producing the database files, so we can repeat, when we have more upgrade test cases completed.

 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.