aboutsummaryrefslogtreecommitdiff
path: root/testsuite/sed (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Ok, I've converted the contents of the "testing/sed" directory into a Rob Landley2005-11-1022-276/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Patch from Colin Watson (mangled slightly by Rob Landley):Rob Landley2005-05-181-0/+14
| | | | | | | | | | 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.
* Kill off the old 'tests' stuff. Write a ton of new tests for theEric Andersen2004-04-061-1/+6
| | | | | | | 'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite 'runtest' script so it actually reports all failures and provides meaningful feedback. -Erik
* remove controversial testsGlenn L McGrath2003-11-202-15/+0
|
* Configuration option to define wether to follows GNU sed's behaviour Glenn L McGrath2003-09-162-1/+20
| | | | | or the posix standard. Put the cleanup code back the way it was.
* Fix a bug that creapt in recently with substitution subprinting, and addGlenn L McGrath2003-09-161-0/+9
| | | | a test for it.
* Fix a simple mistake with pattern space, and add a test for itGlenn L McGrath2003-09-151-0/+13
|
* Add a test for the 'P' command and fix current implementation so itGlenn L McGrath2003-09-151-0/+10
| | | | doesnt permanently modify the pattern space.
* A test and fix for the sed 'n' commandGlenn L McGrath2003-09-151-0/+12
|
* Test for use of newline in regex's, this feature is used by mostGlenn L McGrath2003-09-151-0/+10
| | | | configure scripts.
* Test the N commandGlenn L McGrath2003-09-151-0/+9
|
* Check sed doesnt go into an infinite loop (yes it does)Glenn L McGrath2003-09-151-0/+11
|
* Update sed branch testsGlenn L McGrath2003-09-143-15/+17
|
* Add two new tests, sed-recurses-properly should always workGlenn L McGrath2003-09-143-1/+16
|
* left out a \"Glenn L McGrath2002-11-281-1/+1
|
* This test was hangingGlenn L McGrath2002-11-281-1/+1
|
* * testsuite/sed/sed-recurses-properly: Mark XFAIL.Matt Kraai2002-06-111-0/+1
|
* Sed can go into an infinite loopEric Andersen2002-04-131-0/+1
|
* * editors/sed.c (process_file): Stop processing deleted lines.Matt Kraai2002-04-011-0/+2
| | | | * testsuite/sed/sed-does-not-substitute-in-delete-line: New.
* * editors/sed.c (parse_edit_cmd): Rewrite.Matt Kraai2002-01-031-0/+9
| | | | * testsuite/sed/sed-splits-edit-commands-on-command-line: New.
* * editors/sed.c (parse_edit_command): Require a newline after the backslashMatt Kraai2002-01-021-0/+1
| | | | | after an edit command. * testsuite/sed/sed-requires-newline-after-edit-command: New.
* Ignore blanks before the first address and before the command.Matt Kraai2001-12-211-0/+1
|
* |2001-10-08 Rodney Brown <rbrown64@csc.com.au>Eric Andersen2001-11-101-0/+134
| | | | | | | | | | | | | | * 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
* Merge test suite.Matt Kraai2001-10-305-0/+13