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 37162 - Test .class files are not cleaned between builds.
Summary: Test .class files are not cleaned between builds.
Status: RESOLVED FIXED
Alias: None
Product: qa
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P1 blocker (vote)
Assignee: Jiri Skrivanek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-12 13:07 UTC by mslama
Modified: 2003-12-11 14:25 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Patch nbbuild/build.xml (798 bytes, patch)
2003-11-12 14:30 UTC, Jiri Skrivanek
Details | Diff
new patch (880 bytes, patch)
2003-11-12 15:02 UTC, Jiri Skrivanek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2003-11-12 13:07:35 UTC
Between (before/after) continuous builds test
.class files are not cleaned. Peter Z. removed
some test java files during merge of new winsys
but corresponding test are still run ie. it looks
like corresponding class 

Please reassign/set priority as appropriate.
Comment 1 mslama 2003-11-12 13:09:06 UTC
Not sure if Jiri or RE or both should fix this.
Comment 2 rbalada 2003-11-12 13:51:01 UTC
1) cvs update doesn't report new or modified files (?/M), so it doesn't
   seem to be a failure in NetBeans continuous build
2) I did manual cleanup of ide xtest jemmy and jellytools modules
   to remove files not under version control

Let me know if NetBeans RE can do more about it.

If you need to reopen this issue, check issues assignment and change
as appropriate.
Comment 3 mslama 2003-11-12 14:03:28 UTC
Coresponding class files are under
core/windows/test/unit/src/org/netbeans/core/windows/awt (this causes
commit validation to fail)
core/windows/test/unit/src/org/netbeans/core/windows/layers
core/windows/test/unit/src/org/netbeans/core/windows/frames
core/windows/test/unit/src/org/netbeans/core/windows/tabcontrol
Comment 4 mslama 2003-11-12 14:05:03 UTC
Corresponding java test files was removed but it looks like class
files are still there. I had the same problem when building localy but
I did not find any target how to clean thiose class files.
Comment 5 Peter Zavadsky 2003-11-12 14:15:02 UTC
*** Issue 37161 has been marked as a duplicate of this issue. ***
Comment 6 mslama 2003-11-12 14:23:48 UTC
Part of O/S changelog from NetBeans-dev-20031112-0841_cvs_upd.txt
(merge of new winsys):
...
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/UIModeManagerTest.java
is no longer in the repository
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/awt/TabControlTest.java
is no longer in the repository
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/awt/ValidateLayerMenuTest.java
is no longer in the repository
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/awt/ValidateLayerToolbarTest.java
is no longer in the repository
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/data/A.java is no
longer in the repository
cvs server:
core/windows/test/unit/src/org/netbeans/core/windows/data/B.java is no
longer in the repository
...
Comment 7 mslama 2003-11-12 14:29:00 UTC
Martin, does xtest have any way how to clean all class files from test
folders?
Comment 8 Jiri Skrivanek 2003-11-12 14:29:47 UTC
OK, it is a problem in commit-validation target in nbbuild/build.xml.
I suggest to call cleantests target before runtests (see patch).
Comment 9 Jiri Skrivanek 2003-11-12 14:30:31 UTC
Created attachment 12121 [details]
Patch nbbuild/build.xml
Comment 10 Martin Brehovsky 2003-11-12 14:50:52 UTC
I agree with Jirka
Comment 11 Jiri Skrivanek 2003-11-12 15:01:14 UTC
Small correction - there has to be xtest.config given as parameter to
cleantests target (see new patch).
Comment 12 Jiri Skrivanek 2003-11-12 15:02:20 UTC
Created attachment 12123 [details]
new patch
Comment 13 rbalada 2003-11-12 15:04:14 UTC
Reassigning to appropriate owner.
Comment 14 rbalada 2003-11-12 15:12:47 UTC
The second patch looks fine. Jirka go ahead and apply it.
Comment 15 Jiri Skrivanek 2003-11-12 15:20:34 UTC
Patch applied:

Checking in build.xml;
/cvs/nbbuild/build.xml,v  <--  build.xml
new revision: 1.375; previous revision: 1.374