Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Linux Tools Project/Eclipse Build/Tests"

(Test runs where there are failures or errors)
(Eclipse SDK Test Results as part of eclipse-build)
Line 1: Line 1:
 
= Eclipse SDK Test Results as part of eclipse-build =
 
= Eclipse SDK Test Results as part of eclipse-build =
Using the Linux Tools project's [[../|eclipse-build]] output, it is possible to run the SDK JUnit tests with <tt>ant runTests</tt>.
+
Using the Linux Tools project's [[../|eclipse-build]] output, it is possible to run the SDK JUnit tests with <tt>ant [-DbuildArch=<your arch>] runTests</tt>.
  
 
== Requirements for running the tests ==
 
== Requirements for running the tests ==

Revision as of 14:32, 13 November 2009

Eclipse SDK Test Results as part of eclipse-build

Using the Linux Tools project's eclipse-build output, it is possible to run the SDK JUnit tests with ant [-DbuildArch=<your arch>] runTests.

Requirements for running the tests

  • Xvnc (it will default to your main X display if this isn't found at /usr/bin/Xvnc or /usr/X11/bin/Xvnc)
  • a functioning eclipse-build
  • bash, sed, etc.

Tracking down the root cause of the failure

There are many, many ways that a test could be failing. The first step is to check the test plugin out from CVS (:pserver:anonymous@dev.eclipse.org:/cvsroot/eclipse). Make sure you have the same version checked out as the one that failed (ex. R3_5-1). You'll probably also need to check out org.eclipse.test and org.eclipse.test.performance so get the properly-tagged version of them as well.

You may need to set up an Execution Environment (EE) or two. You can press Ctrl-3 and type execution env and you should see the option to select the Execution Environments preference. Select it and ensure you have proper EEs set up for the bundles you're trying to use. A common trick is to make, say, JavaSE-1.6 prentend to be J2SE-1.4. This isn't the best move from a preventing-coding-errors standpoint, but it will probably do for debugging tests.

Once everything is compiled (you have no errors in your Problems view), try running the tests by right-clicking on the test plugin and selecting Run -> Run As -> JUnit Plug-In Test. If the tests bring up a workbench window, don't touch it in case your doing so affects the outcome of the test run. You should see the JUnit view come up and the results should start filling themselves in. If the error happens here, you can debug it directly. Good luck :) If the tests do not fail when run from your workbench, it will be more difficult to track down the cause of the failure. You can try inspecting the code around the failure location to see if you can spot something that may be sensitive to the location from which it is run. You can set breakpoints and step through the code just like any other plugin.

Running tests from eclipse-build

./runtests.sh is the script that runs the tests. You can modify it to only run one or more sets. It will output the VNC display number it is using. You can connect to this display to watch what's going on with vncviewer :${display number given in output of script}

Test runs where there are failures or errors

Test plugin Failures Errors Comments Build Host Configuration
org.eclipse.core.tests.resources 0 73 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1)
org.eclipse.core.tests.resources 0 74 x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.core.tests.runtime 0 3 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.jdt.core.tests.compiler 2 0 (org.eclipse.jdt.core.tests.compiler.regression) x86, Fedora 11, eclipse-build trunk 2009-09-24; NOT in 3.5.1 on Fedora rawhide (12)
org.eclipse.jdt.ui.tests 3 0 flaky test(s)? One of the failures appears to be some sort of character encoding issue but does not occur when I run it locally. The two others are an ordering issue in JUnit XML output. More investigation is required. x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.jdt.ui.tests 3 1 LeakTestSuite x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.osgi.tests 0 104 the error in org.eclipse.osgi.tests.services.datalocation.BasicLocationTests.testNone() is likely due to some sort of read-only thing. there are four failures due to incorrect bundle states ... this requires investigation. there are 22 errors due to some sort of casting issue. More investigation is required. I'm not sure off-hand what's up with the NPE at: org.eclipse.osgi.tests.securityadmin.SecurityManagerTests.testBug254600(SecurityManagerTests.java:447) x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.pde.ui.tests 2 0 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.pde.build.tests 26 1 Most failures appear to be cause by absense of eclipse-3.5-delta-pack as part of the build x86, Fedora 11, eclipse-build trunk 2009-09-24
org.eclipse.pde.build.tests 26 2 Appears to be caused by the absence of deltapack in the build test directory x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.swt.tests 1 0 this is an assertion failure expecting 1 but getting 0: org.eclipse.swt.tests.junit.Test_org_eclipse_swt_widgets_Text.test_getTopIndex(Test_org_eclipse_swt_widgets_Text.java:792). I suspect valid SWT/window manager/GTK issues x86, Fedora 11, eclipse-build trunk 2009-09-24
org.eclipse.swt.tests 0 143 almost all due to inability to find XULRunner libraries (see bug 291758) x86, Debian unstable 2009-10-07, eclipse-build trunk
org.eclipse.team.tests.core 0 1 '/tmp' is not a valid location for linked resources. <-- huh? x86, Fedora 11, eclipse-build trunk 2009-09-24
org.eclipse.team.tests.core 1 1 testScopeExpansion - sleep interrupted x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.ui.parts.tests 12 0 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.ui.tests 39 7 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07
org.eclipse.ui.tests.forms 1 0 FormColors did not dispose key: org.eclipse.ui.forms.BORDER x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
org.eclipse.ui.tests.session 0 35 x86, Fedora 11, eclipse-build trunk 2009-09-24 (3.5.0); x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07
org.eclipse.jface.tests 1 0 x86, Fedora rawhide (12), eclipse-build trunk 2009-10-05 (3.5.1); x86, Debian unstable 2009-10-07, eclipse-build trunk 2009-10-07 (3.5.1)
plugin id number of failures number of errors comments architecture, distro, eclipse-build version

Back to the top