Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366540 - New properties/archives needed for Equinox p2 test suites
Summary: New properties/archives needed for Equinox p2 test suites
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: Releng (show other bugs)
Version: 4.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P2 normal (vote)
Target Milestone: 4.3 M3   Edit
Assignee: David Williams CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 366425
  Show dependency tree
 
Reported: 2011-12-13 09:16 EST by DJ Houghton CLA
Modified: 2013-05-24 09:32 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description DJ Houghton CLA 2011-12-13 09:16:21 EST
In p2 we have end-to-end tests which test the full cycle of install, update and rollback. In order to do these we pass in properties and also make available Platform zip files of old releases.

Currently we only set up the current Platform zip along with 3.7. In addition, we would like the following properties set, with their values pointing to the file-system location of the corresponding archive:
   org.eclipse.equinox.p2.reconciler.tests.35.platform.archive
   org.eclipse.equinox.p2.reconciler.tests.36.platform.archive
   org.eclipse.equinox.p2.reconciler.tests.37.platform.archive

For instance: 
org.eclipse.equinox.p2.reconciler.tests.35.platform.archive=/downloads/eclipse-platform-3.5-macosx-cocoa-x86_64.tar.gz
Comment 1 DJ Houghton CLA 2011-12-13 16:02:28 EST
Cancel this for now. We've decided to only run tests for the current version update scenario, which is already supported.
Comment 2 DJ Houghton CLA 2011-12-14 10:35:59 EST
Ok, I've reviewed the tests and I think these are the current properties which are set:
   org.eclipse.equinox.p2.reconciler.tests.platform.archive
   org.eclipse.equinox.p2.tests.current.build.repo
   org.eclipse.equinox.p2.tests.last.release.build.repo

To complete the test scenarios, we would like an additional property which specifies the file path to the Platform archive of the latest release. (e.g. right now that would be the 3.7.1 Platform archive)
   org.eclipse.equinox.p2.reconciler.tests.last.release.platform.archive
Comment 3 Kim Moir CLA 2011-12-19 14:59:26 EST
DJ, there are already properties for 

org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux
org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32
org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.macosx

which point to the 3.7.1 drops.  Does this meet your needs?
Comment 4 DJ Houghton CLA 2011-12-19 15:13:28 EST
Oops sorry I missed that. Is it possible to have a generic property that is set by the build without the OS at the end? Do we already have that for the current Platform drop property or did I miss that and we only have .os for them too?
Comment 5 Kim Moir CLA 2011-12-20 14:41:56 EST
The ${platformArchive} property is set in the test.xml running all the test suites and points to the file location of the appropriate platform archive.
Comment 6 DJ Houghton CLA 2011-12-20 15:45:53 EST
(In reply to comment #5)
> The ${platformArchive} property is set in the test.xml running all the test
> suites and points to the file location of the appropriate platform archive.

Ok cool. Can we get a something which maps to the same sort of thing for the last release? Something that we can access via a System property. (like org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive)
Comment 7 David Williams CLA 2012-05-30 02:13:56 EDT
I wonder if this is (nearly) fixed already. Below is the contents of 
equinoxp2tests.properties used in 4.2 tests. I guess the "previous release" 
should be 4.1.2, instead of 3.7.2?  

full path: 
/org.eclipse.releng/configuration/eclipseBuilderOverlays/eclipse/buildConfigs/sdk.tests/testConfigs/win7/equinoxp2tests.properties



org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.linux=@executionDir@\\eclipse-platform-3.7.2-linux-gtk.tar.gz
org.eclipse.equinox.p2.tests.current.build.repo=@org.eclipse.equinox.p2.tests.current.build.repo@
org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.win32=@executionDir@\\eclipse-platform-3.7.2-win32.zip
org.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive.macosx=@executionDir@\\eclipse-platform-3.7.2-macosx-cocoa.tar.gz
org.eclipse.equinox.p2.reconciler.tests.platform.archive.linux=@executionDir@\\eclipse-platform-@buildId@-linux-gtk.tar.gz
org.eclipse.equinox.p2.reconciler.tests.platform.archive.win32=@executionDir@\\eclipse-platform-@buildId@-win32.zip
org.eclipse.equinox.p2.reconciler.tests.platform.archive.macosx=@executionDir@\\eclipse-platform-@buildId@-macosx-cocoa.tar.gz
org.eclipse.equinox.p2.tests.last.release.build.repo=http\://download.eclipse.org/eclipse/updates/4.1/R-4.1.2-201202230900
Comment 8 David Williams CLA 2012-10-23 10:13:25 EDT
I'm assuming fixed unless someone says otherwise.