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.
From issue #54161: "What is nbbuild/templates/testdist/all-unit.properties? It looks to be mechanically generated. If so, why is it in CVS?" => "The all-unit.properties file will be cobiled copied [sic] to binary test distribution. It contains all folders with tests in binary tests distribution. Yes, the file can be automatically generated."
I remembered why the file cannot be genereated. The contains list of module for test run with junit. For example refactoring tests can be executed only in running IDE. Therefore I created the property files. If we don't want to support to run by junit in test distribution I'll delete the file.
refactoring/test/cfg-unit.xml specifies executor="ide", which should be enough info. Or am I missing something?
We are able to run test by xtest and by junit. Executors are used by xtest. The declaration of exucutor in cfg-unit.xml defines ant target in build-unit.xml <executor name="ide" antfile="build-unit.xml" target="runidetest"/> Therefore it is not easy to distinguish between tests in ide and unit mode without xtest. As I said I can remove the all-unit.properties. But all tests inside test distribution will be run only with xtest.
I guess I'm still missing what the problem is. Collect all available test dirs, remove those for whom ../cfg-$name.xml says to use 'ide' as an executor, and write out to all-unit.properties.
Ok I will do that as you proposed.
I've implement TestDistFilter ant task for generating test configuration. Checking in templates/testdist/unit-all-unit.xml; /cvs/nbbuild/templates/testdist/unit-all-unit.xml,v <-- unit-all-unit.xml new revision: 1.3; previous revision: 1.2 done RCS file: /cvs/nbbuild/antsrc/org/netbeans/nbbuild/TestDistFilter.java,v done Checking in antsrc/org/netbeans/nbbuild/TestDistFilter.java; /cvs/nbbuild/antsrc/org/netbeans/nbbuild/TestDistFilter.java,v <-- TestDistFilter.java initial revision: 1.1 done RCS file: /cvs/nbbuild/test/unit/src/org/netbeans/nbbuild/TestDistFilterTest.java,v done Checking in test/unit/src/org/netbeans/nbbuild/TestDistFilterTest.java; Removing all-unit.properties; /cvs/nbbuild/templates/testdist/all-unit.properties,v <-- all-unit.properties new revision: delete; previous revision: 1.2 donenit/src/org/netbeans/nbbuild/TestDistFilterTest.java,v <-- TestDistFilterTest.java initial revision: 1.1 done