Commit Graph

1503 Commits

Author SHA1 Message Date
Ruslan Ermilov
be8b43b4c7 Add a test for what was fixed in revisions 1.39 and 1.50 of
make/parse.c (allow embedded `:' and `!' in target names).

Approved by:	re
2002-11-28 13:21:32 +00:00
Ruslan Ermilov
113cf9e649 Moved make(1) regression tests from src/Makefile to where they
belong (src/tools/regression/usr.bin/make), and use the latter
to test if make(1) is adequate for building the world.

Approved by:	re
2002-11-28 13:08:09 +00:00
Tim J. Robbins
85fafcf803 Add test cases for btowc() and wctob() in multibyte locales. 2002-11-10 11:03:32 +00:00
Tim J. Robbins
99eabcc8c3 Test for the zero-length buffer bug corrected in mbrtowc.c revision 1.3. 2002-11-10 10:50:42 +00:00
Tim J. Robbins
10acac81ab Add regression tests for mblen(), mbtowc(), wctomb(), mbstowcs() and
wcstombs(). These tests have already found two libc bugs.
2002-11-09 04:33:02 +00:00
Tim J. Robbins
89861638ca Add missing #includes of <stdio.h>. Correct a few typos in comments. 2002-11-06 09:37:47 +00:00
Tim J. Robbins
9805beec05 Simplify by using inference rules properly. 2002-10-28 09:05:43 +00:00
Tim J. Robbins
ec6b67d043 Add tests for btowc(), mbrlen(), mbsrtowcs() and wcsrtombs(). 2002-10-26 07:56:47 +00:00
Tim J. Robbins
1ba72e3513 Add regression tests for mbrtowc(3) and wcrtomb(3). 2002-10-26 04:40:16 +00:00
Juli Mallett
5661d4a7b9 Hide the test in <target> under '.if make(<target>)' so as to not get any
errors/warnings related to crud in said test block.
2002-10-25 06:17:44 +00:00
Poul-Henning Kamp
4ccd39164f Redo reference vectors to include the mediasize and sectorsize. 2002-10-24 21:35:57 +00:00
Poul-Henning Kamp
f761b0e1cb Resync with kernel. 2002-10-24 21:14:05 +00:00
Poul-Henning Kamp
5624b2d4d3 Use in-tree libbsdxml instead of ports based libexpat.
Sponsored by:	DARPA & NAI Labs.
2002-10-05 13:16:07 +00:00
Poul-Henning Kamp
af65c5b73f Match the new g_io_deliver() API in the kernel.
Sponsored by:	DARPA & NAI Labs.
2002-10-05 13:12:10 +00:00
Poul-Henning Kamp
a05c5b8c1a Pass sbuf to the kernel routines to match new kernel code.
Sponsored by:	DARPA & NAI Labs
2002-10-05 13:11:01 +00:00
Poul-Henning Kamp
967970bab6 Update to match current kernel code.
Fix a couple of reference data which were found to be in error.

Sponsored by:	DARPA & NAI Labs.
2002-09-27 22:20:53 +00:00
Poul-Henning Kamp
2a6f01533e Some change in src/share/mk seems to have made it possible to remove
50% of the active ingredients in these Makefiles.
2002-09-15 13:05:42 +00:00
Poul-Henning Kamp
6309b291ec Overhaul the kernel-simulation bits here to use pthreads instead.
If somebody wanted to, this could for the beginning of a "libkernel"
which could be used to run kernel code in userland.

Sponsored by:	DARPA & NAI Labs.
2002-09-13 13:13:00 +00:00
Poul-Henning Kamp
029b6c5c27 Remove magicspace from reference data.
Sponsored by:	DARPA & NAI Labs.
2002-09-06 08:51:55 +00:00
Poul-Henning Kamp
469113b2d7 expat2 changed the name of their include file to expat.h
Sponsored by:	DARPA & NAI Labs.
2002-09-06 08:44:15 +00:00
Poul-Henning Kamp
65884326be Fix an indentation typo.
Sponsored by:	DARPA & NAI Labs.
2002-09-06 08:43:15 +00:00
Poul-Henning Kamp
593e172b03 Add a zeroed out sector one for the GPT hack and test T003.
Sponsored by:	DARPA & NAI Labs.
2002-09-06 08:41:48 +00:00
Alfred Perlstein
ba05755c4b Add regression tests for sysvipc.
Submitted by: Hiten Pandya <hiten@uk.FreeBSD.org>
Obtained from: NetBSD
2002-08-15 06:34:37 +00:00
Juli Mallett
89d22e2f06 As of revision 1.38 of make/parse.c, our make(1) will warn too. Note that
this isn't just for the sake of testing behaviour, and that things really
do break if this regression occurs.
2002-07-28 03:57:08 +00:00
Tim J. Robbins
54411faf6f Update another mention of <CR><CR> I missed the first time around (rev 1.2) 2002-07-04 05:16:19 +00:00
Tim J. Robbins
bfed7b6485 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
Juli Mallett
7588db83d2 The wrong y/// output got spammed into this file; from green@ indirectly. 2002-06-27 16:07:51 +00:00
Brian Feldman
e6acea8d1b 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
Juli Mallett
806893862d 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
Juli Mallett
7afbc0985e 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
Juli Mallett
8c08ccea29 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
Juli Mallett
f0030ec090 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
Juli Mallett
fa9fbb5f01 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
Juli Mallett
e51cc505de Add two new mostly freeform types of regression tests, and a macro for dying
ungracefully.
2002-06-24 14:19:57 +00:00
Juli Mallett
265056cbaa 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
Juli Mallett
c178c79dd8 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
Juli Mallett
d54336bd0d 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
Juli Mallett
6d5fda5fd5 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
Juli Mallett
0aa9e01c51 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
Poul-Henning Kamp
7aca952dca Catch up with kernel. 2002-06-09 10:59:04 +00:00
Juli Mallett
80ad7ca938 Describe ia64_unaligned and geom directories. I hope I got these right. 2002-06-07 05:41:15 +00:00
Juli Mallett
cac5b46828 Add the m4(1) regression test. 2002-06-07 05:32:00 +00:00
Juli Mallett
ca982dadd5 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
Poul-Henning Kamp
a05068c0d6 Update to match kernel side.
Sponsored by: DARPA & NAI Labs.
2002-05-21 20:42:51 +00:00
Poul-Henning Kamp
425b005dba Catch up with recent events.
Sponsored by:	DARPA & NAI Labs.
2002-05-19 18:57:03 +00:00
Juli Mallett
b30e60d8b4 Regenerate with new output grouping in uuencode -m. 2002-05-17 12:27:31 +00:00
Tom Rhodes
9b51759707 file system > filesystem 2002-05-16 05:03:56 +00:00
Juli Mallett
a9b736ad72 Add a regression test for bin/5297, regarding sysv substitution with a nil
left-hand-side.
2002-05-05 19:02:30 +00:00
Juli Mallett
de8541ffe6 Add a test for the -R option. 2002-05-03 18:44:43 +00:00
Juli Mallett
af2c59f62e Regenerate -I output since an argument bogon in the -I code was fixed, among
other things.
2002-05-03 14:31:28 +00:00
Juli Mallett
4b7f276dfd 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
Juli Mallett
624abf8519 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
Poul-Henning Kamp
ec15613777 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
Poul-Henning Kamp
629d50078d Add -DKERNELSIM so the test cases compile with the kernel simulation.
Sponsored by: DARPA & NAI Labs.
2002-04-24 21:00:50 +00:00
Poul-Henning Kamp
fdc34af09a Improve the output in case of inserts or deleted.
Sponsored by: DARPA & NAI Labs.
2002-04-24 20:59:31 +00:00
Poul-Henning Kamp
00d1e0f678 Prepare the .conf XML comparator for a more kosher XML format.
Sponsored by:	DARPA & NAI Labs.
2002-04-24 20:33:04 +00:00
Dag-Erling Smørgrav
d397408818 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
Juli Mallett
151740b470 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
Juli Mallett
dd281fa589 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
Juli Mallett
6d3ca9de2c 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
Juli Mallett
533e28dbe1 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
Juli Mallett
6541d27cad 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
Juli Mallett
3f288cae2d Add a test for jot(1). 2002-04-20 19:41:30 +00:00
Juli Mallett
3df2cd2cc9 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
Juli Mallett
64928717a3 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
Juli Mallett
f8b175feba Add regression tests for parts of xargs(1). 2002-04-20 18:46:33 +00:00
Juli Mallett
2cf0f79dcb 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
Juli Mallett
4de8dc48de Add uuencode(1) and uudecode(1) regression test input and output. 2002-04-20 17:58:13 +00:00
Juli Mallett
88ef037391 Start adding framework for userland regression tests, and tests for
uuencode and uudecode.
2002-04-20 17:20:21 +00:00
Poul-Henning Kamp
6fe599457d update the reference vector. 2002-04-16 16:11:29 +00:00
Poul-Henning Kamp
3db8420666 Forgot to commit the updates to the regression test suite.
Sponsored by:	DARPA & NAI labs.
2002-04-16 11:42:13 +00:00
Poul-Henning Kamp
fead6f3f5b Play catch up with the kernel.
Sponsored by:	DARPA & NAI Labs
2002-04-04 16:40:11 +00:00
Poul-Henning Kamp
1cd429e807 Add testcase #14: PC98 label. 2002-03-28 21:42:38 +00:00
Poul-Henning Kamp
153ce220d6 Record the physical geometry in this disk-image, PC98 needs it. 2002-03-28 21:42:14 +00:00
Poul-Henning Kamp
00de520ed9 Ignore the <FreeBSD> element in XML files. 2002-03-28 21:41:44 +00:00
Poul-Henning Kamp
ddc8f3b00b Add the relevants sectors from a PC98 disk to our beastiarium.
Submitted by:	imp
2002-03-28 21:09:30 +00:00
Poul-Henning Kamp
0a079a986d Add another two alpha disks to this testcase. 2002-03-27 21:23:06 +00:00
Poul-Henning Kamp
a0dd8cc079 Add another couple of alpha disklabels. 2002-03-27 21:21:29 +00:00
Poul-Henning Kamp
3355fbf025 Track changes in sys/geom 2002-03-26 22:08:04 +00:00
Poul-Henning Kamp
a9ce7dc604 Another bow for tradition s/method/class/g 2002-03-26 21:40:36 +00:00
Poul-Henning Kamp
c252d16969 Link testcase 13 in. 2002-03-24 14:40:15 +00:00
Poul-Henning Kamp
f72048de0e Add a testcase for the alpha BSD label from beast. 2002-03-24 14:29:39 +00:00
Poul-Henning Kamp
6ecdfd62c6 Add a copy of the bsd-label from beast.freebsd.org 2002-03-24 13:54:01 +00:00
Poul-Henning Kamp
06bce47d34 Update to reflect new contents of sys/geom 2002-03-24 11:22:06 +00:00
Poul-Henning Kamp
6de2a2e8a5 Some necesary fixups to cope with new location and FreeBSD CVS keyword. 2002-03-17 19:16:14 +00:00
Poul-Henning Kamp
31304807c1 Add the GEOM regression test framework.
This is a set of userland shims in which GEOM can be run through simple
tests.

The simulation of kernel synchronization primitives is very primitive
and consequently some times tests will fail because of races.

Data/ contains a number of files in XML format which describe the
key sectors for a number of disk images

This is a very handy tool for people developing GEOM methods.  The
"simdisk" method can be told to read from a "real disk" and afterwards
dump the accessed sectors in XML format for further use.

I hope future method writes will see the benefit of this test
collection and add to it when they write methods for GEOM.

You will need ports/textproc/expat for the XML parser.

Sponsored by:   DARPA, NAI Labs.
2002-03-17 18:53:58 +00:00
Robert Watson
cd7aba4057 NAI DBA update. 2002-03-14 20:08:51 +00:00
Jordan K. Hubbard
61404abce8 Add Apple's filesystem exercising tool.
Submitted by:   Conrad Minshall <conrad@apple.com>
Obtained from:  Apple Computer
2001-12-20 04:15:57 +00:00
Doug Rabson
9c2de1cd14 Make a start at a regression test for the unaligned trap handler. 2001-10-19 22:10:13 +00:00
Robert Watson
abc9a36083 o Fix two eaccess() checks -- in one case, the wrong test file
was used, resulting in a regression failure, and in the other,
  the test on an error return was inverted.

Obtained from: TrustedBSD Project
2001-09-21 21:28:43 +00:00
Robert Watson
884748cf55 o Regression test to check that appropriate parts of the process
credential are used in the access() and new eaccess() system calls.

Obtained from:	TrustedBSD Project
2001-09-20 20:03:58 +00:00
Robert Watson
361515d909 o Add a comment identifying the "privileged on privileged" scenario.
Obtained from:	TrustedBSD Project
2001-04-13 16:38:34 +00:00
Robert Watson
8f6fee753c o Add inter-process authorization uid regression testing for ktrace().
Obtained from:	TrustedBSD Project
2001-04-13 16:25:25 +00:00
Robert Watson
72919d5f6d o s/debug/ptrace/ since shortly there will be tests involving other
forms of debugging.

Obtained from:	TrustedBSD Project
2001-04-13 16:09:40 +00:00
Robert Watson
bacff58c0e o Expand inter-process authorization regression test to include
signalling with sigsegv as one of the tests.
o Teach errno_to_string() about ENOTSUPP.

Obtained from:  TrustedBSD Project
2001-04-12 17:46:20 +00:00
Robert Watson
3ceef0c3d7 o Enable -DSETSUGID_SUPPORTED in inter-process authorization regression
test by default, as setugid() is now part of the base kernel (assuming
  (options REGRESSION) has been enabled for the running kernel).

Obtained from: TrustedBSD Project
2001-04-11 20:23:23 +00:00
Robert Watson
274f7445fd o First pass at an inter-process authorization regression testing suite.
This test utility attempts to evaluate the current kernel policy
  for authorization inter-process activities, currently ptrace(),
  kill(, SIGHUP), getpriority(), and setpriority().  The utility creates
  pairs of processes, initializes their credential sets to useful
  cases, and reports on whether the results are in keeping with hard-coded
  safety expectations.

o Currently, this utility relies on the availability of __setugid(),
  an uncomitted system call used for managing the P_SUGID bit.  Due to
  continuing discussion of optional regression testing kernel components
  ("options REGRESSION") I'll hold off on committing that until the
  discussion has reached its natural termination.

o A number of additional testing factors should be taken into account
  in the testing, including tests for different classes of signals,
  interactions with process session characteristics, I/O signalling,
  broadcast activities such as broadcast signalling, mass priority
  setting, and to take into group-related aspects of credentials.
  Additional operations should also be taken into account, such as ktrace,
  debugging attach using procfs, and so on.

o This testing suite is intended to prevent the introduction of bugs
  in the upcoming sets of authorization changes associated with the
  introduction of process capabilities and mandatory access control.

Obtained from: TrustedBSD Project
2001-04-11 17:21:14 +00:00
Peter Dufault
e5f1b1b180 These are regression tests for the P1003.1B scheduler.
Approved by:	jkh
2000-02-16 14:28:42 +00:00
Doug Rabson
6527fda589 Add a couple of test cases for mmap over NFS. 1997-05-18 10:03:48 +00:00
Mike Pritchard
03bbd5ccd6 Fix a couple of typos. 1997-03-07 01:48:24 +00:00
Andrey A. Chernov
b7c6d4477a Make it at least semi-worked 1996-08-11 18:08:53 +00:00
Poul-Henning Kamp
9e9d8a4677 README reads:
This directory is for regression test programs.

A regression test program is one that will excercise a particular bit of the
system to check that we have not reintroduced an old bug.

Please make a subdir per program, and add a brief description to this file.
1995-10-15 11:27:40 +00:00
Rodney W. Grimes
9b50d90275 BSD 4.4 Lite Usr.bin Sources 1994-05-27 12:33:43 +00:00