Commit Graph

79 Commits

Author SHA1 Message Date
tjr
25aa3182cb Update another mention of <CR><CR> I missed the first time around (rev 1.2) 2002-07-04 05:16:19 +00:00
tjr
f3c503c6ca Note that two carriage returns aren't required after entering the
initial setup anymore (since process.c rev. 1.25). Add $FreeBSD$.

MFC after:	2 weeks
2002-07-03 14:42:53 +00:00
jmallett
583e068778 The wrong y/// output got spammed into this file; from green@ indirectly. 2002-06-27 16:07:51 +00:00
green
14942ad80d 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>
2002-06-27 15:58:59 +00:00
jmallett
1163aebcf2 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.
2002-06-26 16:57:36 +00:00
jmallett
44b97afa34 Reduce internal code duplication, add REGRESSION_PASSFAIL([testname]) to
handle printing of the PASS/FAIL messages.  Suffix PASS/FAIL/FATAL with the
string (in $directory) where $directory is ${.CURDIR} from make(1), to
make it easier to use grep(1) and a bit of sed/awk to do statistics of
failure for some utilities over time, etc.
2002-06-25 12:40:04 +00:00
jmallett
9cfbe015d8 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
2002-06-25 12:10:09 +00:00
jmallett
28b8ebcfcb I explicitly meant to not move any of this over to the new m4(1) framework,
even slightly.  Grrr CVS.
2002-06-24 14:29:19 +00:00
jmallett
9d6012e9cf Move all remaining tests except for:
make(1):	Does not work like the other tests.  Its Makefile is
			self-testing.
	m4(1):		It uses complex voodo to test GNU m4(1) features.

To the new framework.  I had worried about passing the binary data that
uudecode(1)'s test passes to diff(1) might give a user something nasty,
but this is unlikely to happen as even with an unmodified old nasty
diff(1) which doesn't recognise many binary files, these binary files
are recognised.  Using $DIFF instead of `diff' in the library and making
it possible to override this with `cmp -s' might be nice some day, but
as of this second, there's no immediate need.
2002-06-24 14:22:44 +00:00
jmallett
93460fd6ef Add two new mostly freeform types of regression tests, and a macro for dying
ungracefully.
2002-06-24 14:19:57 +00:00
jmallett
8446ba1ae0 Comments to describe what these macros do, so that someone other than me
might be able to figure out how to write some of these tests (hint hint).
2002-06-24 13:58:20 +00:00
jmallett
0309fb3139 Convert straightforward regression tests to use regress.m4.
Goodbye, duplicated code, you will certainly not be missed.
2002-06-24 13:52:28 +00:00
jmallett
0317135e4d Add a simple (to be expanded) library of functions for the regression tests,
to handle the ones which output to stdout and have output in regress.$test.out,
etc.  More freeform macros should and will be written, but these are the most
prominent and most straightforward sort of tests we have around, so it makes
sense to try to accomodate them.
2002-06-24 13:51:30 +00:00
jmallett
ed011dddc1 Grrr, make the test for embedded variables in the left-hand-side actually do
the right thing in every case.  Yuck.
2002-06-20 03:08:20 +00:00
jmallett
0aad4a7f96 Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,
expansion of embedded variables in the left-hand-side of an assignment
expression, using the simplest case - hiding recursion using nil-expanded
variables.
2002-06-19 18:57:04 +00:00
phk
38cd21ba9c Catch up with kernel. 2002-06-09 10:59:04 +00:00
jmallett
e277387a70 Describe ia64_unaligned and geom directories. I hope I got these right. 2002-06-07 05:41:15 +00:00
jmallett
92c9b7b198 Add the m4(1) regression test. 2002-06-07 05:32:00 +00:00
jmallett
a3f088af5b Add a regression test for m4(1).
This checks the behaviour of changecom() in both GNU and BSD modes of our m4.
2002-06-07 05:31:32 +00:00
phk
715c35adad Update to match kernel side.
Sponsored by: DARPA & NAI Labs.
2002-05-21 20:42:51 +00:00
phk
aa08c897e4 Catch up with recent events.
Sponsored by:	DARPA & NAI Labs.
2002-05-19 18:57:03 +00:00
jmallett
a71f688bc0 Regenerate with new output grouping in uuencode -m. 2002-05-17 12:27:31 +00:00
trhodes
3fd7d1d092 file system > filesystem 2002-05-16 05:03:56 +00:00
jmallett
62cedbf5fc Add a regression test for bin/5297, regarding sysv substitution with a nil
left-hand-side.
2002-05-05 19:02:30 +00:00
jmallett
e13651801a Add a test for the -R option. 2002-05-03 18:44:43 +00:00
jmallett
7b25b4fef0 Regenerate -I output since an argument bogon in the -I code was fixed, among
other things.
2002-05-03 14:31:28 +00:00
jmallett
8dbee4c20b Redirect stdin from the input file, rather than passing the input file to
uuencode(1), and set a umask, so that the mode in the header is predictable.

If it varies, then the test is right to fail.

Remove the note about this test falsely failing, with that in mind.
2002-04-27 03:11:33 +00:00
jmallett
300c1a11c0 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.
2002-04-27 02:26:23 +00:00
phk
51db5da3ff Update the test-case reference vectors to match the new XML format.
Sponsored by:	DARPA & NAI Labs.
2002-04-24 21:03:26 +00:00
phk
58cdadc9ad Add -DKERNELSIM so the test cases compile with the kernel simulation.
Sponsored by: DARPA & NAI Labs.
2002-04-24 21:00:50 +00:00
phk
155395406f Improve the output in case of inserts or deleted.
Sponsored by: DARPA & NAI Labs.
2002-04-24 20:59:31 +00:00
phk
024e952d8c Prepare the .conf XML comparator for a more kosher XML format.
Sponsored by:	DARPA & NAI Labs.
2002-04-24 20:33:04 +00:00
des
4d6b787d2d Usage style sweep: spell "usage" with a small 'u'.
Also change one case of blatant __progname abuse (several more remain)
This commit does not touch anything in src/{contrib,crypto,gnu}/.
2002-04-22 13:44:47 +00:00
jmallett
3881ce8d9c 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.
2002-04-21 01:27:05 +00:00
jmallett
2ef068fe8d 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.
2002-04-21 01:04:03 +00:00
jmallett
a1b2db8692 Check to see if make(1)'s handling of doubly-defined targets is busted or
not.  A lot relies on this.
2002-04-21 00:41:37 +00:00
jmallett
4ccd5a9073 Only exit at the end of a test, exit with the last value of $? that was not 0.
This way the entire regression test is looked at as a pass/fail, not just one
sub-test.
2002-04-21 00:18:29 +00:00
jmallett
723f201ed8 Add a test of variable evaluation and substitution for make(1), as a start
of tests for it.
2002-04-20 20:57:00 +00:00
jmallett
24f13e9ab3 Add a test for jot(1). 2002-04-20 19:41:30 +00:00
jmallett
7c76f6f023 A simple test for join(1) based on tjr's test case for -o 0.
Partially based on:	PR standards/36072
2002-04-20 19:33:23 +00:00
jmallett
5badd84013 Add an exceedingly simple regression test for the file2c program. One would
hope that it would never regress, but this is a straightforward test, so add
it.
2002-04-20 19:01:21 +00:00
jmallett
c5bca421d9 Add regression tests for parts of xargs(1). 2002-04-20 18:46:33 +00:00
jmallett
e9f3784394 Add a comment regarding the file header, and the mode that the file is created
with.

This should be fixed shortly by adding the (desirable) option to set the file
creation mode on the command line.
2002-04-20 18:44:54 +00:00
jmallett
eefa1794dd Add uuencode(1) and uudecode(1) regression test input and output. 2002-04-20 17:58:13 +00:00
jmallett
b5175f501b Start adding framework for userland regression tests, and tests for
uuencode and uudecode.
2002-04-20 17:20:21 +00:00
phk
79d2daeb7f update the reference vector. 2002-04-16 16:11:29 +00:00
phk
d9b060bed3 Forgot to commit the updates to the regression test suite.
Sponsored by:	DARPA & NAI labs.
2002-04-16 11:42:13 +00:00
phk
2a571683e0 Play catch up with the kernel.
Sponsored by:	DARPA & NAI Labs
2002-04-04 16:40:11 +00:00
phk
19520dd5a5 Add testcase #14: PC98 label. 2002-03-28 21:42:38 +00:00
phk
2e89dca786 Record the physical geometry in this disk-image, PC98 needs it. 2002-03-28 21:42:14 +00:00