[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cmp in test scripts
From: |
John Poltorak |
Subject: |
Re: cmp in test scripts |
Date: |
Fri, 25 Jan 2002 00:52:15 +0000 |
On Thu, Jan 24, 2002 at 06:00:36PM -0500, Earnie Boyd wrote:
> John Poltorak wrote:
> >
> > Is there any way that autoconf can be used to handle cmp in test scripts?
> >
> > Occasionally a test will fail because of the use of cmp to test
> > differences between generated data and expected results due to line
> > termination on DOS filesystems. If diff is used instead the test may
> > succeed.
> >
> > What I'd like to see is some check to see if the use of cmp is valid and
> > if not then maybe set CMP=diff ...
> >
>
> What shell are you using on the DOS filesystem? A properly ported cmp
> would be a better solution.
What relevance does the shell have?
"hello, world\n" is longer on a DOS filesystem than on Unix so cmp will
distinguish between whereas diff won't.
> Earnie.
--
John
- cmp in test scripts, John Poltorak, 2002/01/24
- Re: cmp in test scripts, Earnie Boyd, 2002/01/24
- Re: cmp in test scripts,
John Poltorak <=
- Re: cmp in test scripts, Earnie Boyd, 2002/01/24
- Re: cmp in test scripts, John Poltorak, 2002/01/24
- Re: cmp in test scripts, Tim Van Holder, 2002/01/25
- Re: cmp in test scripts, Earnie Boyd, 2002/01/25
- Re: cmp in test scripts, John Poltorak, 2002/01/25
- Re: cmp in test scripts, Tim Van Holder, 2002/01/25