summaryrefslogtreecommitdiffhomepage
path: root/testsuite/sed
AgeCommit message (Collapse)Author
2005-11-10Ok, I've converted the contents of the "testing/sed" directory into a Rob Landley
sed.tests file. My brain hurts now. (Lots of boggling at sed minutiae and corner cases and going "why is gnu giving that output". The behavior of N and n with regard to EOF are only understandable if you read the Open Group spec, not if you read the sed info page, by the way...) Some of the existing sed tests are just nuts. For example, sed-next-line is testing for our behavior (which is wrong), and would fail if run against gnu sed (which was getting it right. Again, this was a spec-boggling moment, with much head scratching. I've got to add a debug mode where the stuff output by the p command is a different color from the stuff output by normal end of script printing (when not suppressed by -n).) As for sed-handles-unsatisifed-backrefs: what is this test trying to _do_? I ran it against gnu sed and got an error message, and this behavior sounds perfectly reasonable. (It _is_ an unsatisfied backref.) The fact we currently ignore this case (and treat \1 as an empty string) isn't really behavior we should have a test depend on for success. The remaining one is sed-aic-commands, which is long and complicated. I'm trying to figure out if I should chop this into a number of smaller tests, or if having one big "does-many-things" test is a good idea. In any case, the _next_ step is to go through the Open Group standard and make tests for every case not yet covered. (And there are plenty. There are few comments in the file already.) Plus I have notes about corner cases from development that I need to collate and put into here. This file is maybe the first 1/3 of a truly comprehensive sed test. Rob
2005-05-18Patch from Colin Watson (mangled slightly by Rob Landley):Rob Landley
This patch implements the 'T' command in sed. This is a GNU extension, but one of the udev hotplug scripts uses it, so I need it in busybox anyway. Includes a test; 'svn add testsuite/sed/sed-branch-conditional-inverted' after applying.
2004-04-06Kill off the old 'tests' stuff. Write a ton of new tests for theEric Andersen
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik
2003-11-20remove controversial testsGlenn L McGrath
2003-09-16Configuration option to define wether to follows GNU sed's behaviour Glenn L McGrath
or the posix standard. Put the cleanup code back the way it was.
2003-09-16Fix a bug that creapt in recently with substitution subprinting, and addGlenn L McGrath
a test for it.
2003-09-15Fix a simple mistake with pattern space, and add a test for itGlenn L McGrath
2003-09-15Add a test for the 'P' command and fix current implementation so itGlenn L McGrath
doesnt permanently modify the pattern space.
2003-09-15A test and fix for the sed 'n' commandGlenn L McGrath
2003-09-15Test for use of newline in regex's, this feature is used by mostGlenn L McGrath
configure scripts.
2003-09-15Test the N commandGlenn L McGrath
2003-09-15Check sed doesnt go into an infinite loop (yes it does)Glenn L McGrath
2003-09-14Update sed branch testsGlenn L McGrath
2003-09-14Add two new tests, sed-recurses-properly should always workGlenn L McGrath
2002-11-28left out a \"Glenn L McGrath
2002-11-28This test was hangingGlenn L McGrath
2002-06-11* testsuite/sed/sed-recurses-properly: Mark XFAIL.Matt Kraai
2002-04-13Sed can go into an infinite loopEric Andersen
2002-04-01* editors/sed.c (process_file): Stop processing deleted lines.Matt Kraai
* testsuite/sed/sed-does-not-substitute-in-delete-line: New.
2002-01-03* editors/sed.c (parse_edit_cmd): Rewrite.Matt Kraai
* testsuite/sed/sed-splits-edit-commands-on-command-line: New.
2002-01-02* editors/sed.c (parse_edit_command): Require a newline after the backslashMatt Kraai
after an edit command. * testsuite/sed/sed-requires-newline-after-edit-command: New.
2001-12-21Ignore blanks before the first address and before the command.Matt Kraai
2001-11-10|2001-10-08 Rodney Brown <rbrown64@csc.com.au>Eric Andersen
| | * editors/sed.c: Fix multiline [aic] commands. Make # an endline | comment for compatibility. Codespace reduction. | * tests/testcases: Cope with move to subdirectories. | * testsuite/sed/sed-aic-commands: Add. | | text data bss dec hex filename | 3772 16 0 3788 ecc editors/sed.o | 4516 16 0 4532 11b4 editors/sed.o.bu
2001-10-30Merge test suite.Matt Kraai