bin/119614: regression tests for tr(1)

Giorgos Keramidas keramida at FreeBSD.org
Sun Jan 13 05:00:07 UTC 2008


The following reply was made to PR bin/119614; it has been noted by GNATS.

From: Giorgos Keramidas <keramida at freebsd.org>
To: David Schultz <das at freebsd.org>
Cc: FreeBSD-gnats-submit at freebsd.org, Diomidis Spinellis <dds at freebsd.org>
Subject: Re: bin/119614: regression tests for tr(1)
Date: Sun, 13 Jan 2008 06:32:55 +0200

 On 2008-01-12 22:28, David Schultz <das at FreeBSD.ORG> wrote:
 > But I'd say commit whatever tests you have, so the next time we find a
 > bug, it will be a one-line change for someone to add a regression test
 > for it.
 
 Thanks.  I'll wait a bit for Diomidis to see the PR too, in case he
 wants to add/change something.  Then in 1-2 days I'll commit the current
 patch.
 
 In the meantime, I'll try adding more tests for the -d / -s options.
 
 The current patch already includes a pair of tests for -d and -cd:
 
 REGRESSION_TEST(`02', `tr -d aceg < regress.in')
 REGRESSION_TEST(`0b', `(tr -cd "[[:xdigit:]]" < regress2.in ; echo)')
 
 I'm sure we can come up with more :)
 
 Locales shouldn't be too hard to do too, but I only have experience with
 the en_US.* and el_GR.* locales, so I may need a bit of help with the
 rest of them.


More information about the freebsd-bugs mailing list