<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 11/12/2013 12:37 AM, Mickael Istria
      wrote:<br>
    </div>
    <blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite">
      <meta content="text/html; charset=ISO-8859-1"
        http-equiv="Content-Type">
      <div class="moz-cite-prefix">On 11/09/2013 03:17 AM, Denis Golovin
        wrote:<br>
      </div>
      <blockquote cite="mid:527D9B44.5080401@exadel.com" type="cite">
        <meta content="text/html; charset=ISO-8859-1"
          http-equiv="Content-Type">
        <div class="moz-cite-prefix">1. Not all our test plug-ins are
          ready to be used with this feature due to forgetting include
          test projects into binary build; so far I've found
          o.j.t.tests.test and o.j.t.foundation.core.test have such
          problem; I couldn't go further than foundation.core.test
          plug-in because of problems explained below<br>
        </div>
      </blockquote>
      I don't understand this issue. You mean that surefire-plugin was
      configured to include dependencies, and that using an installed
      application doesn't work? If so, it's somehow normal, Tycho will
      ignore the extra-depedencies with this mode, and will only install
      the bundle + its dependencies from MANFIEST (if not already
      available). Additional dependencies will be ignored, and expected
      to be already available in the target application.
      <a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#dependencies">http://www.eclipse.org/tycho/sitedocs/tycho-surefire/tycho-surefire-plugin/test-mojo.html#dependencies</a><br>
      However, I understand this can quickly become a kind of
      limitation. Feel free to open a bug against Tycho asking for
      support of additional dependencies. Please add me in CC.<br>
    </blockquote>
    <br>
    It is build.properties problems when not all resources from test
    plug-in are included into bundle jar. Should be fixed.<br>
    <br>
    <blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite">
      <blockquote cite="mid:527D9B44.5080401@exadel.com" type="cite">
        <div class="moz-cite-prefix"> <br>
          2. Second try to run usually ends up with<br>
          <br>
          [INFO] Installing IUs [org.jboss.tools.foundation.core.test,
          org.eclipse.tycho.surefire.osgibooter,
          org.eclipse.tycho.surefire.junit4] to
          /home/eskimo/jbdevstudio-java-with-space/studio<br>
          Installing org.jboss.tools.foundation.core.test
          1.1.0.Alpha1-v20131109-0206.<br>
          Installing org.eclipse.tycho.surefire.osgibooter 0.19.0.<br>
          Installing org.eclipse.tycho.surefire.junit4 0.19.0.<br>
          Installation failed.<br>
          Cannot complete the install because of a conflicting
          dependency.<br>
          &nbsp;Software being installed: JBoss Foundation Tests
          1.1.0.Alpha1-v20131109-0206
          (org.jboss.tools.foundation.core.test
          1.1.0.Alpha1-v20131109-0206)<br>
          &nbsp;Software currently installed: JBoss Foundation Tests
          1.1.0.Alpha1-v20131109-0203
          (org.jboss.tools.foundation.core.test
          1.1.0.Alpha1-v20131109-0203)<br>
          &nbsp;Only one of the following can be installed at once: <br>
          &nbsp; JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0203
          (org.jboss.tools.foundation.core.test
          1.1.0.Alpha1-v20131109-0203)<br>
          &nbsp; JBoss Foundation Tests 1.1.0.Alpha1-v20131109-0206
          (org.jboss.tools.foundation.core.test
          1.1.0.Alpha1-v20131109-0206)<br>
          Application failed, log file location:
          /tmp/config3255596288906066066equinox/1383962733126.log<br>
          [INFO]
          ------------------------------------------------------------------------<br>
        </div>
      </blockquote>
      That's because Foundation Tests is a singleton, and that you tried
      to run tests twice which caused to install the same bundle twice.
      p2 doesn't allow multiple version in same application.<br>
      If possible, remove the singleton directive from bundle. If not,
      then you need to use a clean application (which doesn't already
      contain the bundle) for every tests.<br>
    </blockquote>
    <br>
    If I cannot change test an then run it again and again against the
    same product installation then there is no point to use this feature
    in development. <br>
    <br>
    Should it be updating singleton instead of installing it? Would that
    help?<br>
    <br>
    <blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite"> <br>
      <blockquote cite="mid:527D9B44.5080401@exadel.com" type="cite">
        <div class="moz-cite-prefix"> 3. Also I've seen problems with
          shutting down the RCP installation:<br>
          -------------------------------------------------------<br>
          &nbsp;T E S T S<br>
          -------------------------------------------------------<br>
          Running
          org.jboss.tools.foundation.core.test.FoundationAllTests<br>
          [...]<br>
          Results :<br>
          Tests run: 9, Failures: 0, Errors: 0, Skipped: 0<br>
          <br>
          Job found still running after platform shutdown.&nbsp; Jobs should
          be canceled by the plugin that scheduled them during shutdown:
          org.eclipse.ui.internal.decorators.DecorationScheduler$3<br>
          Job found still running after platform shutdown.&nbsp; Jobs should
          be canceled by the plugin that scheduled them during shutdown:
          org.eclipse.ui.internal.decorators.DecorationScheduler$1<br>
          Job found still running after platform shutdown.&nbsp; Jobs should
          be canceled by the plugin that scheduled them during shutdown:
          org.eclipse.ui.internal.progress.AnimationManager$1<br>
          An error has occurred. See the log file<br>
/home/eskimo/Projects/jbdevstudio/src-fork/jbosstools-base/foundation/tests/org.jboss.tools.foundation.core.test/target/work/data/.metadata/.log.<br>
        </div>
      </blockquote>
      So it looks like pending jobs cause application to send an error
      code. Not sure of who's responsible of that. I tend to think it
      can be an issue with the tycho surefirebooter application.<br>
      Please open a bug against Tycho and add me in CC.<br>
    </blockquote>
    <br>
    I'll do that.<br>
    <br>
    Thanks<br>
    Denis<br>
    <br>
    <blockquote cite="mid:5281E8B4.5020806@redhat.com" type="cite">
      <div class="moz-signature">-- <br>
        Mickael Istria<br>
        Eclipse developer at <a moz-do-not-send="true"
          href="http://www.jboss.org/tools">JBoss, by Red Hat</a><br>
        <a moz-do-not-send="true"
          href="http://mickaelistria.wordpress.com">My blog</a> - <a
          moz-do-not-send="true" href="http://twitter.com/mickaelistria">My
          Tweets</a></div>
    </blockquote>
    <br>
  </body>
</html>