Running JMX tests on local or in Hudson, I get:
[INFO] — maven-osgi-test-plugin:0.9.0-SNAPSHOT:test (default-test) @ org.jboss.tools.jmx.core.test —
[INFO] Expected eclipse log file: /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/.metadata/.log
[INFO] Command line:
/bin/sh -c cd /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test && /usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/jre/bin/java -Dosgi.noShutdown=false -Dosgi.os=linux -Dosgi.ws=gtk -Dosgi.arch=x86 -jar /home/nboldt/.m2/repository/p2/osgi/bundle/org.eclipse.equinox.launcher/1.0.201.R35x_v20090715/org.eclipse.equinox.launcher-1.0.201.R35x_v20090715.jar -data /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data -dev file:/home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/dev.properties -install /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work -configuration /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/configuration -application org.codehaus.tycho.surefire.osgibooter.uitest -testproperties /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/surefire.properties -testApplication org.eclipse.ui.ide.workbench -product org.eclipse.sdk.ide
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.jboss.tools.jmx.core.test.JMXCoreAllTests
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.106 sec <<< FAILURE!
testConnection(org.jboss.tools.jmx.core.test.DefaultProviderTest) Time elapsed: 0.009 sec <<< ERROR!
org.eclipse.core.internal.resources.ResourceException()[567]: java.io.FileNotFoundException: /home/nboldt/eclipse/workspace-jboss/jbosstools-trunk/jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/JMX_EXAMPLE/.project (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:137)
at org.eclipse.core.internal.resources.ProjectDescriptionReader.read(ProjectDescriptionReader.java:626)
at org.eclipse.core.internal.resources.Workspace.loadProjectDescription(Workspace.java:1478)
at org.jboss.tools.jmx.core.test.util.TestProjectProvider.importExistingProject(TestProjectProvider.java:109)
at org.jboss.tools.jmx.core.test.util.TestProjectProvider.init(TestProjectProvider.java:97)
at org.jboss.tools.jmx.core.test.util.TestProjectProvider.<init>(TestProjectProvider.java:65)
at org.jboss.tools.jmx.core.test.DefaultProviderTest.testConnection(DefaultProviderTest.java:80)
Results :
Tests in error:
testConnection(org.jboss.tools.jmx.core.test.DefaultProviderTest)
Tests run: 7, Failures: 0, Errors: 1, Skipped: 0
------------
Did some digging and it seems that the .../jmx/tests/org.jboss.tools.jmx.core.test/target/work/data/JMX_EXAMPLE/ folder is empty. However, the content that's supposed to be checked out into that dir is definitely in the target/org.jboss.tools.jmx.core.test-1.1.0-SNAPSHOT.jar jar, so I would think the problem is in how the test is doing its unpacking, rather than how the jar is being built.
--------
Same error in Hudson:
To run test in Hudson:
http://hudson.qa.jboss.com/hudson/view/DevStudio/job/jbosstools-tycho-modular -> Build Now -> only need these components to be built: tests,common,jmx; may need to use -Dbuild.if.sources.unchanged=true flag too.
To run test locally from a fresh checkout:
cd /tmp; svn co http://anonsvn.jboss.org/repos/jbosstools/trunk/build/
or
cd /tmp; svn co http://anonsvn.jboss.org/repos/jbosstools/branches/modular_build/build/
then
cd /tmp/build; ant -DCOMPONENTS=tests,common,jmx
- blocks
-
JBDS-1202 problems running tests
- Resolved
-
JBIDE-6241 ModelUiAllTests.testOpenJarProperties failing for 13 builds
- Resolved