[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [p2-dev] P2 tests launch configuration

I don't have the time to look at it now and I'll look into it over the week end. 
For now, just move on... If you are doing changes to the publisher you are unlikely going to break that (unless of course you started generating crazily wrong metadata :))


On 2011-02-17, at 3:27 AM, Glander, Jens wrote:

> Hi,
> 
> I'm not able to run the two tests (Install37from36 + From36to37) of suite org.eclipse.equinox.p2.tests.full.AllTests:
> 
> In 'All p2 Tests.launch' I changed following VM Arguments 
> -Dorg.eclipse.equinox.p2.reconciler.tests.platform.archive=C:/Eclipse/tests/eclipse-platform-3.6.1-win32.zip
> -Dorg.eclipse.equinox.p2.reconciler.tests.35.platform.archive=C:/Eclipse/tests/eclipse-platform-3.5.1-win32.zip
> -Dorg.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive=C:/Eclipse/tests/eclipse-platform-3.6.1-win32.zip
> -Dorg.eclipse.equinox.p2.tests.current.build.repo=http://download.eclipse.org/eclipse/updates/3.7milestones/S-3.7M5-201101272034/
> 
> Install37from36: Failed Test details:
> 
> -> results in exception:
>   java.lang.RuntimeException: Application "org.eclipse.equinox.p2.tests.verifier.application" could not be found in the registry.
>   see [1] for details
> 
> Details I investigated in case of test Install37from36 (and might help to give me advice):
> 
> Test class Install37from36.java:
> 
> Method initialize()
> 
>> File file = getPlatformZip();
>> output = getUniqueFolder();
>> ...
>> FileUtils.unzipFile(file, output);
> 
>  -> file: is the 3.6 platform zip 
>  -> output: points to a dir e.g. C:/<local_path_to>/Temp/1297927656560-0.4907324089146403
>  -> 3.6 platform is correctly unzipped to output
> 
> Method install37From36():
> 
>> //Create a new installation of 3.7 using 3.6
>> File installFolder = getTestFolder("install37From36");
>> System.out.println(installFolder); 
>    -> console output: 
>       osgi> C:\<local_path_to_eclipse>\workspaces\junit-workspace\install37From36
> 
>> int result = runDirectorToInstall("Installing 3.7 from 3.6", new File(installFolder, "eclipse"), "http://download.eclipse.org/eclipse/updates/3.7-I-builds";, "org.eclipse.platform.ide");
> 
>    -> after this the before empty installFolder contains the 3.7 org.eclipse.platform.ide
>    -> console output: 
>       STDOUT: Installing org.eclipse.platform.ide 3.7.0.I20110127-2034.
>       STDOUT: Operation completed in 134724 ms.
> 
>> assertEquals(0, installAndRunVerifierBundle(installFolder));
>      ...
>> copyBundle(VERIFIER_BUNDLE_ID, null, destination);
>        -> the verifier bundle of my eclipse workspace is copied to location 
>           C:<local_path_to_eclipse>/workspaces/junit-workspace/install37From36/eclipse/plugins/org.eclipse.equinox.p2.tests.verifier
> 
>> int returnCode = runVerifierBundle(destination);
>      -> executes later Runtime.getRuntime().exec(commandArray, null, output); where output is C:\...\Local\Temp\1297927656560-0.4907324089146403 and commandArray's exe: points to C:\...\Local\Temp\1297927656560-0.4907324089146403\eclipse\eclipse
>      here the exception is thrown because verifier bundle was not copied into this eclipse runtime but the one of the install folder.
>    -> console output: 
>       STDERR: Eclipse:
>       STDERR: An error has occurred. See the log file
>       STDERR: C:\...\Local\Temp\1297927656560-0.4907324089146403\eclipse\configuration\1297928410409.log
>       see [1] for details
> 
> So this looks a bit strange to me: The 3.6 unzipped platform is located in the temp directory and the 3.7 director installs into the junit-workspace/install37From36 directory (3.6 platform seems to be "disconnected" from the 3.7 install, even though the comment says 'installation of 3.7 using 3.6' -> ?). Then verifier bundle is copied into the 3.7 installation, but 3.6 runtime exe is started and expected to contain the verifier application.
> 
> Can anyone help solving this issue?	
> 
> Regards,
> Jens
> 
> [1] 1297928410409.log:
> 
> !SESSION 2011-02-17 08:40:10.207 -----------------------------------------------
> eclipse.buildId=M20110112-0800
> java.version=1.6.0_21
> java.vendor=Sun Microsystems Inc.
> BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=de_DE
> Framework arguments:  -application org.eclipse.equinox.p2.tests.verifier.application
> Command-line arguments:  -os win32 -ws win32 -arch x86 -application org.eclipse.equinox.p2.tests.verifier.application
> 
> !ENTRY org.eclipse.osgi 4 0 2011-02-17 08:40:11.814
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application "org.eclipse.equinox.p2.tests.verifier.application" could not be found in the registry. The applications available are: org.eclipse.ant.core.antRunner, org.eclipse.equinox.app.error, org.eclipse.equinox.p2.director.app.application, org.eclipse.equinox.p2.director, org.eclipse.equinox.p2.garbagecollector.application, org.eclipse.equinox.p2.metadata.generator.EclipseGenerator, org.eclipse.equinox.p2.publisher.InstallPublisher, org.eclipse.equinox.p2.publisher.EclipseGenerator, org.eclipse.equinox.p2.publisher.ProductPublisher, org.eclipse.equinox.p2.publisher.FeaturesAndBundlesPublisher, org.eclipse.equinox.p2.reconciler.application, org.eclipse.equinox.p2.repository.repo2runnable, org.eclipse.equinox.p2.repository.metadataverifier, org.eclipse.equinox.p2.artifact.repository.mirrorApplication, org.eclipse.equinox.p2.metadata.repository.mirrorApplication, org.eclipse.equinox.p2.updatesite.UpdateSitePublisher, org.eclipse.equinox.p2.publish
> er.UpdateSitePublisher, org.eclipse.equinox.p2.publisher.CategoryPublisher, org.eclipse.help.base.infocenterApplication, org.eclipse.help.base.helpApplication, org.eclipse.help.base.indexTool, org.eclipse.ui.ide.workbench, org.eclipse.update.core.standaloneUpdate, org.eclipse.update.core.siteOptimizer.
> 	at org.eclipse.equinox.internal.app.EclipseAppContainer.startDefaultApp(EclipseAppContainer.java:248)
> 	at org.eclipse.equinox.internal.app.MainApplicationLauncher.run(MainApplicationLauncher.java:29)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
> 	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:620)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:575)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1408)
> 	at org.eclipse.equinox.launcher.Main.main(Main.java:1384)
> 
> 
> -----Original Message-----
> From: p2-dev-bounces@xxxxxxxxxxx [mailto:p2-dev-bounces@xxxxxxxxxxx] On Behalf Of Pascal Rapicault
> Sent: Mittwoch, 16. Februar 2011 16:21
> To: P2 developer discussions
> Subject: Re: [p2-dev] P2 tests launch configuration
> 
> They should be pointing at platform downloads (not SDKs), because there are some hard references to the id of the product.
> Ideally the lastrelease.platform.archive should point at the most recent build available.
> 
> On 2011-02-16, at 7:01 AM, Oberlies, Tobias wrote:
> 
>> The launch configuration for the p2 tests (/org.eclipse.equinox.p2.tests/All p2 Tests.launch) contains two properties that point to eclipse-platform zips. Additionally, the From36to37 asked for a "lastrelease.platform.archive" property.
>> 
>> Which exact versions of eclipse-platform shall the properties point to? I've guessed the following values:
>> 
>> -Dorg.eclipse.equinox.p2.reconciler.tests.platform.archive= C:/download/eclipse-SDK-3.7M5-win32.zip"
>> -Dorg.eclipse.equinox.p2.reconciler.tests.lastrelease.platform.archive= C:/download/eclipse-platform-3.6-win32.zip
>> -Dorg.eclipse.equinox.p2.reconciler.tests.35.platform.archive= C:/download/eclipse-platform-3.5-win32.zip
>> 
>> Is this correct?
>> 
>> Regards
>> Tobias
>> _______________________________________________
>> p2-dev mailing list
>> p2-dev@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/p2-dev
> 
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev
> _______________________________________________
> p2-dev mailing list
> p2-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/p2-dev