This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The filesystem unit tests are not compilable Steps to reproduce: 1) checkout cvs: cvs co standard_nowww xtest_nowww 2) ant -f nbbuild/build.xml all-xtest 3) cd openide/fs/test 4) ant -Dnetbeans.dest.dir="path do netbeans build"
Created attachment 22177 [details] log.txt
Created attachment 22178 [details] MasterFsTests.log
Radek told me that it is more general problem. Reasdigned to Jarda (our test's expert:-) ). Unit: # * Execution failed in module core, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/core_unit.log> for details. * # * Execution failed in module openide/fs, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_fs_unit.log> for details. * # * Execution failed in module openide/masterfs, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_masterfs_unit.log> for details. * # * Execution failed in module openide/util, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_util_unit.log> for details. * # * Execution failed in module openide/nodes, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_nodes_unit.log> for details. * # * Execution failed in module openide/options, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_options_unit.log> for details. * # * Execution failed in module openide/text, testtype unit. See log <http://ffjqa.czech/automatedtests/xtest/netbeans_4.2/200505161800/qa-unit/qa-frodo_1/testrun_050517-005543/logs/openide_text_unit.log> for details.
This is the problem: dropping moje-nb/netbeans/tmp/lib/org-openide-util.jar from path dropping moje-nb/netbeans/tmp/core/org-openide-filesystems.jar from path the tests were updated to depend on the new split libraries, but those libraries are not part of the NetBeans*.zip file. One solution is to copy them to the test machine. Second is to wait till issue 58258 gets implemented. Third is to copy platform5/core/openide.jar (if exists) to all places in tmp/lib/org-openide-*.jar is used. I prefer #2, but I cannot speed that up. The plan is to have it in trunk by end of May. If you need solution sooner, I would prefer to hack the infrastructure by copying openide.jar to multiple places.
I added openide.jar and core.jar to compile classpath of tests. See http://nbbuild.netbeans.org/source/browse/nbbuild/templates/xtest-unit.xml?r1=1.9&r2=1.10 It is quite dirty hack. Please remove it after the problem will be resolved.
Thanks Petr, I'll remove the hack as soon as I integrate issue 58258. Meanwhile it is not P1 anymore.
cvs ci -m "pzajac's hack removed, it shall not be needed anymore" nbbuild/templates/xtest-unit.xml Checking in nbbuild/templates/xtest-unit.xml; /cvs/nbbuild/templates/xtest-unit.xml,v <-- xtest-unit.xml new revision: 1.11; previous revision: 1.10
v