Hi Jan,
as regards the tests - it looks like
you are using the installed ant
classes with the cvs ant test classes.
Always with running the tests, I do:
cd ~/cvs/ant
rm -rf bootstrap build; ./build.sh test -Dtest.haltonfailure=yes
Peter
[EMAIL PROTECTED] wrote:
a) Is this change ok?
+1
b) Should it be in ant 1.6.2
+1
c) Could someone run the unittests on windows please ;-)
Windows 2000 SP 2
Java build 1.4.2_03-b02
[junit] Testcase: testDuplicateTargets(org.apache.tools.ant.ProjectTest):
FAILED
--> as discussed earlier
[junit] Testcase:
testReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest): FAILED
[junit] expecting log to contain "bar bar bar" log was " bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was " bar foo foo "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testReplaceStrings(TokenFilterT
est.java:86)
--> ???
[junit] Testcase:
testFilterReplaceStrings(org.apache.tools.ant.filters.TokenFilterTest):
FAILED
[junit] expecting log to contain "bar bar bar" log was " bar foo foo
"
[junit] junit.framework.AssertionFailedError: expecting log to contain "bar
bar bar" log was " bar foo foo "
[junit] at junit.framework.Assert.fail(Assert.java:47)
[junit] at junit.framework.Assert.assertTrue(Assert.java:20)
[junit] at
org.apache.tools.ant.BuildFileTest.assertLogContaining(BuildFileTest.java:81
)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLogContaining(BuildFileTest.java:92
)
[junit] at
org.apache.tools.ant.filters.TokenFilterTest.testFilterReplaceStrings(TokenF
ilterTest.java:147)
[junit] Testcase: testEscape(org.apache.tools.ant.taskdefs.MacroDefTest):
FAILED
[junit] expected:<...b is [EMAIL PROTECTED]> but was:<[EMAIL PROTECTED] is
avalue@@@{b}>
[junit] junit.framework.ComparisonFailure: expected:<...b is [EMAIL PROTECTED]>
but was:<[EMAIL PROTECTED] is avalue@@@{b}>
[junit] at junit.framework.Assert.assertEquals(Assert.java:81)
[junit] at junit.framework.Assert.assertEquals(Assert.java:87)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:72)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testEscape(MacroDefTest.java:103)
[junit] Testcase:
testAttributeDescription(org.apache.tools.ant.taskdefs.MacroDefTest):
Caused an ERROR
[junit] required attribute description not set
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\taskdefs\macrodef.xml:168:
required attribute description not set
[junit] at
org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:302)
[junit] at
org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
[junit] at org.apache.tools.ant.Task.perform(Task.java:364)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.taskdefs.MacroDefTest.testAttributeDescription(MacroDef
Test.java:108)
[junit] Testcase: testNested(org.apache.tools.ant.types.FileListTest):
Caused an ERROR
[junit] The <filelist> type doesn't support the nested "file" element.
[junit]
C:\seu\cvs-downloads\ant\ant\src\etc\testcases\types\filelist.xml:26: The
<filelist> type doesn't support the nested "file" element.
[junit] at
org.apache.tools.ant.IntrospectionHelper.throwNotSupported(IntrospectionHelp
er.java:573)
[junit] at
org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.java:328)
[junit] at
org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:176)
[junit] at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:152)
[junit] at org.apache.tools.ant.Task.perform(Task.java:363)
[junit] at org.apache.tools.ant.Target.execute(Target.java:301)
[junit] at org.apache.tools.ant.Target.performTasks(Target.java:328)
[junit] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
[junit] at
org.apache.tools.ant.BuildFileTest.executeTarget(BuildFileTest.java:232)
[junit] at
org.apache.tools.ant.BuildFileTest.expectLog(BuildFileTest.java:70)
[junit] at
org.apache.tools.ant.types.FileListTest.testNested(FileListTest.java:150)
Maybe something is not uptodate on my local machine.
I´ll do an (cvsgrab) update...
The org.apache.tools.ant.ProjectTest.testDuplicateTargets fails
however :-( (both on linux (fedora core) and XP / both sun jdk 1.4.2_03)
I think that this should be added to the "teststhatfail" reference in
build.xml until the fix for the problem is done.
Always learning new things :)
Didn´t know that there is such a section ... have to have a deeper look at
Ants buildfile.
This would also solve the Gump-Messages.
Ant: build.xml
329: <patternset id="teststhatfail">
330: <exclude name="${optional.package}/BeanShellScriptTest.java"/>
331: <exclude name="${optional.package}/jdepend/JDependTest.java"/>
332: </patternset>
...
1414: <target name="run-tests" ...
1426: <junit
1440: <batchtest>
1441: <fileset dir="${tests.dir}">
1468: <!-- failing tests excluded unless run.failing.tests is set
-->
1469: <patternset refid="teststhatfail"/>
Jan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]