aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Catch up with UNIX98-style PTY's.David E. O'Brien2010-01-042-2/+8
| | | | Notes: svn path=/head/; revision=201489
* 'prove -r' isn't as smart as grog thought.David E. O'Brien2010-01-041-9/+1
| | | | Notes: svn path=/head/; revision=201488
* You need to be root to run this test.David E. O'Brien2010-01-041-0/+5
| | | | Notes: svn path=/head/; revision=201482
* Don't process 'lastcomm' if "AUTOMATED" is defined.David E. O'Brien2010-01-041-1/+4
| | | | | | | The tests for it require manual setup. Notes: svn path=/head/; revision=201480
* It is expected these are chmod +x.David E. O'Brien2010-01-041-0/+0
| | | | Notes: svn path=/head/; revision=201479
* Regression test for r201456.David E. O'Brien2010-01-045-0/+25
| | | | Notes: svn path=/head/; revision=201478
* Provide clean output with 'prove -r'.David E. O'Brien2010-01-031-2/+2
| | | | Notes: svn path=/head/; revision=201426
* Don't read the newline character to line buffer because lines are passedJaakko Heinonen2009-12-1213-1/+53
| | | | | | | | | | | | | | | | | | to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. [1] PR: bin/140976 Submitted by: D'Arcy Cain (original version) [1] Approved by: trasz (mentor) Notes: svn path=/head/; revision=200442
* IEEE Std 1003.1, 2004 Edition states:Diomidis Spinellis2009-09-203-0/+6
| | | | | | | | | | | | | | | | "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X Notes: svn path=/head/; revision=197362
* Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementationDiomidis Spinellis2009-09-202-0/+5
| | | | | | | | | | | | | | of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X Notes: svn path=/head/; revision=197361
* Add correct test results.Diomidis Spinellis2009-09-203-0/+42
| | | | Notes: svn path=/head/; revision=197360
* Describe how other systems treat this case.Diomidis Spinellis2009-09-201-1/+5
| | | | Notes: svn path=/head/; revision=197357
* Allow [ to be used as a delimiter.Diomidis Spinellis2009-09-201-0/+9
| | | | | | | | Pointed by: Marius Strobl Obtained from: Apple Notes: svn path=/head/; revision=197356
* The transition to Subversion allows us to rename files withoutDiomidis Spinellis2009-09-20124-9/+7
| | | | | | | | | repo-copy hacks. Remove the test-number prefix from the name of the output files, so that new test cases can be easily added. Notes: svn path=/head/; revision=197352
* Fix some uninitialise variables.Brian Somers2009-07-082-1/+102
| | | | | | | | | | PR: 136383 Submitted by: Ulrich Spoerlein - uqs at spoerlein dot net Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=195443
* Regression test the 'addr1,+N' feature added in r192732Brian Somers2009-05-253-0/+10
| | | | Notes: svn path=/head/; revision=192733
* Rename files that collide on case-insensitive file systems by encodingRobert Watson2009-03-103-0/+0
| | | | | | | | | | | | colliding upper case letters as the lower case letter with a '_' in front. MFC after: 3 days Discussed with: ed Spotted by: Michael David Crawford <mdc at prgmr.com> Notes: svn path=/head/; revision=189613
* Allow jot(1) regression tests to be checked out on Windows filesystems.Ed Schouten2009-01-162-1/+1
| | | | | | | | | | | The jot(1) regression tests directory contained two tests named `wx' and `wX', which doesn't work on case insensitive filesystems. Rename `wX' to `wX1'. MFC after: 1 month Notes: svn path=/head/; revision=187332
* Add a test for the "or more" part of the following POSIX specification.Diomidis Spinellis2008-11-112-1/+3
| | | | | | | | | "A function can be preceded by one or more '!' characters, in which case the function shall be applied if the addresses do not select the pattern space." Notes: svn path=/head/; revision=184852
* Attach the tr(1) regression tests to the build.Giorgos Keramidas2008-01-131-1/+1
| | | | | | | Approved by: das, dds Notes: svn path=/head/; revision=175289
* Add a new set of regression tests, for the tr(1) utility.Giorgos Keramidas2008-01-1317-0/+97
| | | | | | | Approved by: das, dds Notes: svn path=/head/; revision=175288
* Make the reported number of tests match their actual number.Diomidis Spinellis2007-12-161-1/+1
| | | | | | | This fixes the reporting under prove(1) Notes: svn path=/head/; revision=174656
* cd to the correct directory so that the tests can be run from prove(1)Diomidis Spinellis2007-12-161-0/+1
| | | | Notes: svn path=/head/; revision=174655
* Add a test case for sed(1) regression - we should not ignore caseXin LI2007-07-062-0/+5
| | | | | | | | | when not being asked to do so. Approved by: re (hrs) Notes: svn path=/head/; revision=171285
* Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed.Suleiman Souhlal2007-07-043-0/+10
| | | | | | | | | | | | For example, sed /foo/Id sed s/foo/bar/Ig Reviewed by: dds Approved by: re (hrs) Notes: svn path=/head/; revision=171206
* Don't forget to clear out the hold space for each subsequent fileYaroslav Tykhiy2007-06-121-1/+2
| | | | | | | | | | | when in -i mode so that each file gets a clean context of its own. Add a regression test for the bug. Tested with: regression tests Notes: svn path=/head/; revision=170608
* Updated tests for changed features.Greg Lehey2007-06-0924-10/+68
| | | | | | | Submitted by: edwin@ Notes: svn path=/head/; revision=170448
* Use correct comment syntax for $FreeBSD$. This file gets put throughGreg Lehey2007-06-041-1/+5
| | | | | | | | | cpp, not a shell script. Pointy hat to: grog Notes: svn path=/head/; revision=170261
* Add regression tests for calendar.Greg Lehey2007-06-0319-1/+461
| | | | | | | | | Submitted by: edwin@ PR: bin/113275 MFC after: 2 weeks Notes: svn path=/head/; revision=170231
* Add sparc64 regression test files.Diomidis Spinellis2007-05-242-0/+64
| | | | | | | Submitted by: Carl Johan Gustavsson Notes: svn path=/head/; revision=169928
* Modify file generation instructions to remove the tty field:Diomidis Spinellis2007-05-241-1/+2
| | | | | | | | the mapping from number to name differs between systems, and will cause tests to fail. Notes: svn path=/head/; revision=169927
* Regression tests for sparc64 record formats.Diomidis Spinellis2007-05-222-0/+0
| | | | | | | Submitted by: Carl Johan Gustavsson Notes: svn path=/head/; revision=169856
* Regression tests for amd64 file and record formats.Diomidis Spinellis2007-05-224-0/+56
| | | | | | | Submitted by: Larry Rosenman (who also provided access to a testing host) Notes: svn path=/head/; revision=169855
* Regression tests for the new and legacy process accounting formats.Diomidis Spinellis2007-05-229-1/+188
| | | | Notes: svn path=/head/; revision=169854
* Change the semantics of -i (in-place editing) so that it treatsYaroslav Tykhiy2007-04-211-1/+35
| | | | | | | | | | | | | | | | | | | | each file independently from other files. The new semantics are desired in the most of practical cases, e.g.: delete lines 5-9 from each file. Keep the previous semantics of -i under a new option, -I, which uses a single continuous address space covering all files to edit in-place -- they are too cool to just drop them. Add regression tests for -i and -I. Approved by: dds Compared with: GNU sed Discussed on: -hackers MFC after: 2 weeks Notes: svn path=/head/; revision=168921
* Logically separate the complex `hanoi' and `math' tests from basic tests.Yaroslav Tykhiy2007-04-021-2/+3
| | | | Notes: svn path=/head/; revision=168259
* Don't forget to close the range if we branched over its endYaroslav Tykhiy2007-04-022-1/+6
| | | | | | | | | | | | | | | | and had no chance to match it by the 2nd address precisely. Otherwise the unclosed range would bogusly extend to the end of stream. Add a basic regression test for the bug fixed. (This change also fixes the more complex case 5.3 from `multitest.t'.) Compared with: SUN and GNU seds Tested by: regression tests MFC after: 1 week Notes: svn path=/head/; revision=168258
* Today SUN and GNU seds fully agree on test 5.3 and behaveYaroslav Tykhiy2007-04-022-13/+1
| | | | | | | | | in a more reasonable way than BSD sed does: they properly close the range even if we branched over its end. No doubt, the range `1,5' should not match lines from 9 through 14. Notes: svn path=/head/; revision=168257
* This trivial change should fix at least 3 similar bugs. All ofYaroslav Tykhiy2007-04-015-1/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | them are related to the `c' function's need to know if we are at the actual end of the address range. (It must print the text not earlier than the whole pattern space was deleted.) It appears the only sed function with this requirement. There is `lastaddr' set by applies(), which is to notify the `c' function, but it can't always help because it's false when we are hitting the end of file early. There is also a bug in applies() due to which `lastaddr' isn't set to true on degenerate ranges such as `$,$' or `N,$' if N appears the last line number. Handling early EOF condition in applies() could look more logical, but it would effectively revert sed to the unreasonable behaviour rev. 1.26 of main.c fought against, as it would require lastline() be called for each line within each address range. So it's better to call lastline() only if needed by the `c' function. Together with this change to sed go regression tests for the bugs fixed (c1-c3). A basic test of `c' (c0) is also added as it helped me to spot my own error. Discussed with: dds Tested by: the regression tests MFC after: 1 week Notes: svn path=/head/; revision=168211
* Rename sed.test to multitest.t to comply with the naming scheme ofDiomidis Spinellis2007-03-142-473/+1
| | | | | | | the regression suite. Notes: svn path=/head/; revision=167569
* Reinstate error-testing regression tests.Diomidis Spinellis2007-03-1433-78/+107
| | | | Notes: svn path=/head/; revision=167555
* Integrate the tests I wrote in 1992 with our current regressionDiomidis Spinellis2007-03-143-130/+111
| | | | | | | testing framework and protocol. Notes: svn path=/head/; revision=167552
* Reference results for sed.test (to be renamed into multitest.t).Diomidis Spinellis2007-03-1490-0/+4210
| | | | | | | | | | | | I have verified these with GNU sed 4.1.5 (and in some cases with Solaris sed) and they are identical, with the following exceptions: 5.3: The result is unspecified and BSD sed behaves differently. 6.3: GNU sed gets it wrong 7.1: GNU sed gets it wrong 7.8: BSD sed gets it wrong Notes: svn path=/head/; revision=167550
* - Uncomment tests that were commented outDiomidis Spinellis2007-03-142-172/+84
| | | | | | | | - Update platform-conditional tests to reflect current reality - Fix conditional for test 7.8: it is the fault of BSD sed Notes: svn path=/head/; revision=167549
* - It looks like BSD and GNU sed can nowadays pass two more tests.Diomidis Spinellis2007-03-142-14/+8
| | | | | | | - Test 7.8 fails for GNU sed not BSD. Notes: svn path=/head/; revision=167547
* Use another non-printing test; address 0 now has a special meaning in GNU sed.Diomidis Spinellis2007-03-142-4/+4
| | | | Notes: svn path=/head/; revision=167546
* Update tests to reflect the state of the art of sed in HEAD andDiomidis Spinellis2007-03-142-90/+38
| | | | | | | | | GNU sed 4.1.5. Almost all of the tests that were skipped for BSD or GNU sed now appear to work. Notes: svn path=/head/; revision=167544
* Add sed math regression test.Diomidis Spinellis2007-03-142-1/+3
| | | | Notes: svn path=/head/; revision=167537
* Add Towers of Hanoi regression test.Diomidis Spinellis2007-03-142-1/+19
| | | | Notes: svn path=/head/; revision=167536
* Add missing newline to correct failure of the regression test.Diomidis Spinellis2007-03-141-1/+1
| | | | | | | | | | | | According to IEEE Std 1003.1, 2004 "Whenever the pattern space is written to standard output or a named file, sed shall immediately follow it with a <newline>." An attempt at the same correction might have been made with r1.3, which is however identical with r1.2. Notes: svn path=/head/; revision=167531