[jbosstools-issues] [JBoss JIRA] (JBIDE-23489) Find out how to run mvn clean verify -Dtest.installBase=path/to/devstudio/rpm

Lukáš Valach (JIRA) issues at jboss.org
Thu Mar 9 11:49:00 EST 2017


    [ https://issues.jboss.org/browse/JBIDE-23489?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13375540#comment-13375540 ] 

Lukáš Valach commented on JBIDE-23489:
--------------------------------------

We have to set testRuntime to p2installed.  
We are missing this line \[1\] in integration-tests pom \[2\].

\[1\] <testRuntime>p2Installed</testRuntime>
\[2\] https://github.com/jbosstools/jbosstools-integration-tests/blob/master/tests/pom.xml#L122

It solved problem with dev.properties but now I am getting another error message:

{code}
INFO] Installing IUs [org.jboss.tools.freemarker.ui.bot.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4] to /opt/rh/rh-eclipse46/root/usr/lib64/eclipse
The operation you've requested can not be performed because the folder /opt/rh/rh-eclipse46/root/usr/lib64/eclipse is read only.  
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
...
[INFO] org.jboss.tools.freemarker.ui.bot.test ............. FAILURE [  2.026 s]
[INFO] integration-tests.site ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37.025 s
[INFO] Finished at: 2017-03-09T14:41:51+01:00
[INFO] Final Memory: 117M/1412M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.eclipse.tycho:tycho-surefire-plugin:1.0.0:test (default-test) on project org.jboss.tools.freemarker.ui.bot.test: Installation of IUs [org.jboss.tools.freemarker.ui.bot.test, org.eclipse.tycho.surefire.osgibooter, org.eclipse.tycho.surefire.junit4] failed: Call to p2 director application failed with exit code 13. Program arguments were: [-metadataRepository, file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/targetPlatformRepository/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/p2temp/additionalBundles/, -artifactRepository, file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/resolution-context-artifacts@%252Fhome%252Flvalach%252Frepositories%252FJBossToolsIntegrationTests%252Fjbosstools-integration-tests%252Ftests%252Forg.jboss.tools.freemarker.ui.bot.test,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/,file:/home/lvalach/.m2/repository/,file:/home/lvalach/repositories/JBossToolsIntegrationTests/jbosstools-integration-tests/tests/org.jboss.tools.freemarker.ui.bot.test/target/p2temp/additionalBundles/, -installIU, org.jboss.tools.freemarker.ui.bot.test,org.eclipse.tycho.surefire.osgibooter,org.eclipse.tycho.surefire.junit4, -destination, /opt/rh/rh-eclipse46/root/usr/lib64/eclipse, -profile, DefaultProfile, -profileProperties, org.eclipse.update.install.features=true, -roaming, -p2.os, linux, -p2.ws, gtk, -p2.arch, x86_64]. -> [Help 1]
{code}

Whole log with debug messages: [^Freemarker_testRuntime_p2Installed.log] 

I guess that we have to remove/change value of the "destination" parameter. I went through Tycho code and it seems that it is not possible because destination has always the same value as <work> attribute in pom.xml. (The work attribute contains the same value as test.installBase.)

If you would like to check the code I propose to start here \[3\] and then you may continue here \[4\].

\[3\] https://github.com/eclipse/tycho/blob/3f9ada9af955ed997a2214dc12a35ac084e5107f/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/TestMojo.java#L713

\[4\] https://github.com/eclipse/tycho/blob/3eb3f826e6912a481972b256c9d4cb3208b4a881/tycho-surefire/tycho-surefire-plugin/src/main/java/org/eclipse/tycho/surefire/provisioning/ProvisionedInstallationBuilder.java#L134 

> Find out how to run mvn clean verify -Dtest.installBase=path/to/devstudio/rpm 
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-23489
>                 URL: https://issues.jboss.org/browse/JBIDE-23489
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 4.4.2.AM3
>            Reporter: Pavol Srna
>             Fix For: 4.4.x
>
>         Attachments: FreeMarket_rhscl_enabled.log, Freemarker_testRuntime_p2Installed.log
>
>
> We need to find a way how to run automated tests agains devstudio rpm.
> I've tried the following paths:
> 1) (as root) mvn clean verify -Dtest.installBase=/opt/rh/rh-eclipse46/root/usr/shareclipse/droplets/devstudio/eclipse/
> 2) (as hudson) mvn clean verify -Dtest.installBase=~/.eclipse/org.eclipse.platform_283378046_linux_gtk_x86_64
> But none of the above works. 



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the jbosstools-issues mailing list