#
303975 |
|
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
302408 |
|
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
#
263227 |
|
16-Mar-2014 |
jmmv |
Migrate most of tools/regression/usr.bin/ to the new tests layout.
I'm starting with the easy cases. The leftovers need to be looked at a bit more closely.
Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory.
Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
|
#
262959 |
|
09-Mar-2014 |
jmmv |
Fix sed tests so that they run cleanly with prove.
|
#
259133 |
|
09-Dec-2013 |
eadler |
Add regression test for recently added 'i' flag in r259132.
PR: standards/184641
|
#
184852 |
|
11-Nov-2008 |
dds |
Add a test for the "or more" part of the following POSIX specification.
"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."
|
#
174656 |
|
16-Dec-2007 |
dds |
Make the reported number of tests match their actual number. This fixes the reporting under prove(1)
|
#
171285 |
|
06-Jul-2007 |
delphij |
Add a test case for sed(1) regression - we should not ignore case when not being asked to do so.
Approved by: re (hrs)
|
#
171206 |
|
04-Jul-2007 |
ssouhlal |
Add case-insensitive matching to sed, using the 'I' flag, similarly to GNU sed. For example, sed /foo/Id sed s/foo/bar/Ig
Reviewed by: dds Approved by: re (hrs)
|
#
170608 |
|
12-Jun-2007 |
yar |
Don't forget to clear out the hold space for each subsequent file 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
|
#
168921 |
|
21-Apr-2007 |
yar |
Change the semantics of -i (in-place editing) so that it treats 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
|
#
168259 |
|
02-Apr-2007 |
yar |
Logically separate the complex `hanoi' and `math' tests from basic tests.
|
#
168258 |
|
02-Apr-2007 |
yar |
Don't forget to close the range if we branched over its end 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
|
#
168211 |
|
01-Apr-2007 |
yar |
This trivial change should fix at least 3 similar bugs. All of 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
|
#
167537 |
|
14-Mar-2007 |
dds |
Add sed math regression test.
|
#
167536 |
|
14-Mar-2007 |
dds |
Add Towers of Hanoi regression test.
|
#
137587 |
|
11-Nov-2004 |
nik |
Switch over to a different, more flexible test output protocol that's understood by Perl's Test::Harness module and prove(1) commands.
Update README to describe the new protocol. The work's broken down into two main sets of changes.
First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run.
Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system.
Add a TODO file.
|
#
115829 |
|
04-Jun-2003 |
fanf |
Add tests for the behaviour of substitution when the regex can match a zero-length string. This shows bugs in the s///g and s///2+ cases.
|
#
98912 |
|
27-Jun-2002 |
green |
Correct the psl regression test for sed(1)'s now-fixed newline behavior. Add the bcb regression test which checks for failures due to a backslash ('\') coinciding with the very last character of the command buffer. The regression test is cf. this PR (which I did not know about) and has a different fix for the bug.
PR: bin/22351 Submitted by: Stefan Duerholt <stefan.duerholt@t-online.de>
|
#
98881 |
|
26-Jun-2002 |
jmallett |
Erk, I forgot that regress.in has an ending newline, so change the test for transliterate to use echo -n to supress newline and a simple string.
|
#
98811 |
|
25-Jun-2002 |
jmallett |
Add a regression test for transliterate which happens to match characters at an EOL/EOF, and therefore should catch the broken behaviour fixed by Tim J. Robbins in sed(1) recently.
Suggested by: obrien
|
#
98754 |
|
24-Jun-2002 |
jmallett |
Convert straightforward regression tests to use regress.m4.
Goodbye, duplicated code, you will certainly not be missed.
|
#
95538 |
|
27-Apr-2002 |
jmallett |
Prefix tests with PASS and FAIL, to make grepping easier, and note this in the README.
This affects only the base-system regression tests, of course.
|
#
95169 |
|
21-Apr-2002 |
jmallett |
For the P function, the newline must be considered a part of the pattern space, so when printing it, don't let the pattern space and the output run into eachother by omitting the \n when printing.
|
#
95168 |
|
21-Apr-2002 |
jmallett |
Add sed(1) tests for proper behaviour of the G option as fixed in PR 26152, and for proper behaviour of some sed functions given a nil pattern space, as fixed in PR 34813.
The test for G was based on the test in the PR. The nil pattern space test is slightly different as we need to get *some* output, as the core dump will also produce no output (old behaviour) and turn up falsely that the utility is working fine.
|