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.

Bug 82195 - Generate nbbuild/templates/testdist/all-unit.properties
Summary: Generate nbbuild/templates/testdist/all-unit.properties
Status: RESOLVED FIXED
Alias: None
Product: www
Classification: Unclassified
Component: Builds & Repositories (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: pzajac
URL:
Keywords:
Depends on:
Blocks: 54161
  Show dependency tree
 
Reported: 2006-08-08 19:00 UTC by Jesse Glick
Modified: 2006-10-23 16:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2006-08-08 19:00:34 UTC
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."
Comment 1 pzajac 2006-08-11 13:56:32 UTC
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. 
Comment 2 Jesse Glick 2006-08-14 17:39:42 UTC
refactoring/test/cfg-unit.xml specifies executor="ide", which should be enough
info. Or am I missing something?
Comment 3 pzajac 2006-08-14 18:21:48 UTC
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.  
Comment 4 Jesse Glick 2006-08-14 18:55:54 UTC
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.
Comment 5 pzajac 2006-08-14 19:09:02 UTC
Ok I will do that as you proposed.
Comment 6 pzajac 2006-08-18 10:49:52 UTC
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