You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Nico Seessle <ni...@seessle.de> on 2000/09/16 20:33:30 UTC

[NEW] Testcases for built-in tasks

Sorry I don't know how to get my cvs to do a patch for these, so I just
jarred them together.

They are not complete, and I don't know if some of them will even run on
Unix, since I don't have a Unix-System handy currently :-(

They are using build-files which are located in src/etc/testcases/taskdefs.
Is this a good selection? In addition some of them will fail if one of the
predecessors will fail since I'm a little bit lazy currently :-) (Just using
the result from copydir to test deltree...)

I hope they are helpful nevertheless.

Nico



Re: [NEW] Testcases for built-in tasks

Posted by Stefan Bodewig <bo...@bost.de>.
>>>>> "NS" == Nico Seessle <ni...@seessle.de> writes:

 NS> No, they fail starting at echo.

Set haltonfailure to false to get see where the problems are more
quickly.

Actually Ant doesn't really treat the nested text, except from calling
trim on it which will strip the newlines. My guess is that addText is
called only once with the whole text on Linux (stripping the leading
spaces and the last linefeed) while it is called several times (once
per line) on your system, stripping all newlines.

Going to remove the trim() calls from ProjectHelper to get the same
behavior on all systems.

Stefan

Re: [NEW] Testcases for built-in tasks

Posted by Nico Seessle <ni...@seessle.de>.
----- Original Message -----
From: "Stefan Bodewig" <bo...@bost.de>
To: <an...@jakarta.apache.org>
Sent: Wednesday, September 20, 2000 4:01 PM
Subject: Re: [NEW] Testcases for built-in tasks


> Nico,
>
> I had to change a couple of things in the build files for the tests,
> mainly because you expected relative filenames to be relative to
> ANT_HOME while they are relative to the project's basedir. Did the
> testcases work for you?
>
> All tests pass for me now (IBM JDK 1.3 on Linux), could you please
> check if they still pass on your Windows box (the runtests target of
> Ant's buildfile is the way to go).

No, they fail starting at echo. I will have to have a deeper look at this.
Ant is not respecting line-breaks for text inside the echo-tags on my system
:-(.

Nico



Re: [NEW] Testcases for built-in tasks

Posted by Stefan Bodewig <bo...@bost.de>.
Nico,

I had to change a couple of things in the build files for the tests,
mainly because you expected relative filenames to be relative to
ANT_HOME while they are relative to the project's basedir. Did the
testcases work for you?

All tests pass for me now (IBM JDK 1.3 on Linux), could you please
check if they still pass on your Windows box (the runtests target of
Ant's buildfile is the way to go).

I had to remove test10 in AvailableTest though. My JDK does in fact
return non-null for getResourceAsStream("") - though I didn't check
what this stream pointed to.

Stefan

Re: [NEW] Testcases for built-in tasks

Posted by Nico Seessle <ni...@seessle.de>.
I guess I should have attached the attachment


Nico

----- Original Message -----
From: "Nico Seessle" <ni...@seessle.de>
To: <an...@jakarta.apache.org>
Sent: Saturday, September 16, 2000 8:33 PM
Subject: [NEW] Testcases for built-in tasks


> Sorry I don't know how to get my cvs to do a patch for these, so I just
> jarred them together.
>
> They are not complete, and I don't know if some of them will even run on
> Unix, since I don't have a Unix-System handy currently :-(
>
> They are using build-files which are located in
src/etc/testcases/taskdefs.
> Is this a good selection? In addition some of them will fail if one of the
> predecessors will fail since I'm a little bit lazy currently :-) (Just
using
> the result from copydir to test deltree...)
>
> I hope they are helpful nevertheless.
>
> Nico
>
>