Commit Graph

1450 Commits

Author SHA1 Message Date
Nik Clayton
818287703d Link against libtap (ports/devel/libtap). Replace the calls to assert()
with calls to libtap::ok1(), and make sure the correct number of tests is
planned for, and that the exit code is correct.
2005-02-01 01:53:35 +00:00
Marcel Moolenaar
ad284e38a3 Wrap calls to memcpy(3) in a function called block_copy(). This way,
and as long as we're not compiling with IPA, gcc(1) won't optimize
the call away. The whole purpose of using memcpy(3) is to avoid
misaligned loads and stores when we need to read or write the value
in the unaligned memory location. But if gcc(1) optimizes the call
to memcpy(3) away, it will typically introduce misaligned loads and
stores. In this context that's not a good idea.
2005-01-28 02:58:32 +00:00
Marcel Moolenaar
c0604e27a8 Skip the register based postinc stores here and don't count them
in the number of tests. This way we avoid skipped tests for non-
existent memory access combinations. The number of tests dropped
from 60 to 48.
2005-01-27 23:15:58 +00:00
Marcel Moolenaar
ced1bf58df Make the local variables global so that the compiler cannot assume
too much about them. This prevents certain peephole optimizations
at -O that invalidate the tests.
2005-01-27 23:11:55 +00:00
Marcel Moolenaar
0335d35b09 Fix the unaligned store with post increment test: The misaligned pointer
stopped pointing to the value the moment we wrote it due to the post
increment. So, grab the value for comparison out of the data structure
directly.
2005-01-27 22:46:15 +00:00
Marcel Moolenaar
b3efc9018f The unit test for unaligned loads/stores can be found under ../ia64. 2005-01-27 06:51:45 +00:00
Marcel Moolenaar
baacc4acdf Add tests for post increment. This bumps the number of tests up to
60. The postinc store tests currently fail (value mismatch). Hence
the score as of this commit is 48 out of 60. Either the kernel or
the tests need to be fixed.
2005-01-27 06:50:05 +00:00
Robert Watson
20ef44d423 Use WARNS?= instead of WARNS= in Makefiles so that global warning
settings can override local ones.

Pointed out by:	ru
2005-01-22 22:42:39 +00:00
Mike Silbersack
cc73784391 Add two more pipe regression tests. Not yet hooked into the test framework. 2005-01-21 06:46:18 +00:00
Robert Watson
2d7142bf0d In refactoring the test before committing, a pointer was passed instead
of a structure for the sockaddr_in.  Pass the pointer to connect()
instead of the pointer to the pointer.

Specify a port number to connect to.
2005-01-16 15:01:28 +00:00
Robert Watson
81cfeee7bf Add udpconnectjail, a simple regression test to exercise an (as yet)
unfixed bug in the jail() implementation relating to using the connect()
system call on UDP sockets.

PR:	26506
2005-01-16 13:05:32 +00:00
Maxim Sobolev
c520d61bc3 Add test which excersises problem with unability to change association of
already associated datagram unix domain socket by issuing connect() system
call.
2005-01-12 09:57:18 +00:00
David Schultz
b33f870fba Regression tests for [l]lrint[f]() and [l]lround[f](). 2005-01-11 23:13:36 +00:00
Pawel Jakub Dawidek
080361d6b8 Introduce a new GEOM class - SHSEC. It provides sharing secret between
the given providers. Without even one of the configured components there
should be no way to get the secret.

Supported by:	WHEEL Sp. z o.o.
		http://www.wheel.pl
2005-01-11 18:06:44 +00:00
Pawel Jakub Dawidek
79f717591c Fix incorrect comment.
MFC after:	3 days
2005-01-11 14:11:14 +00:00
Robert Watson
b2345210d0 Add a simple regression test for mlock()/munlock() to make sure they
work on a single page as root, and fails on a single page as nobody.
Intended to help diagnose reports regarding insecure memory use with
gnupg.
2005-01-03 19:56:20 +00:00
Marcel Moolenaar
938e27a7e5 Replace a mention of the ia64_unaligned directory with one of the
ia64 subdirectory. All ia64 specific regression tests live under
the ia64 directory.
2005-01-02 21:40:36 +00:00
Marcel Moolenaar
c5b5bf81c9 Regression test for unaligned loads and stores for short, int, long,
float, double and long double types. No post-increment tests yet.
All tests are skipped if the debug.unaligned_test sysctl variable
cannot be set to 1.
2005-01-02 21:33:40 +00:00
Pawel Jakub Dawidek
ad51776c88 Wait a bit after creating device. 2004-12-21 19:03:10 +00:00
Pawel Jakub Dawidek
ee7051f9f7 When RAID3 device is configured in "verify" mode, synchronization of the
parity component is now force on creation.
Change regression test which check "verify" mode to work properly after
this change.
2004-12-21 18:48:59 +00:00
Ruslan Ermilov
e653b48c80 Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
Sam Leffler
2efe996b98 Loadable modules that run test vectors for net80211 crypto plugins. 2004-12-08 17:45:53 +00:00
Hartmut Brandt
89f087e8dd Fix builds with a read-only directory and a make upgrade. This is done
by forcing the creation of an object directory for the make regression
tests. Let make handle the tracking of the dependency and installation
of test_shell script.

Submitted by:	ru
2004-12-07 14:41:16 +00:00
Robert Watson
b1954f17a8 Print a warning if running as !root for aio_md_test rather than failing
the test.  Privilege is required in order to allocate an md device.
2004-12-06 13:15:23 +00:00
Robert Watson
5cb0b08e40 Add a basic aio functionality regression test, which simply writes and
then reads from a fairly broad range of object types: regular file,
fifo, UNIX socketpair, pty, UNIX pipe, and an md device.  Not a deep
test of functionality, just a basic test that aio_write followed by
aio_read returns the correct data in a relatively timely manner.

Requested by:	phk
2004-12-06 12:56:38 +00:00
Ruslan Ermilov
d29cf9e2f3 Make this work under debugging, e.g., "make -dl". 2004-12-06 08:51:30 +00:00
Hartmut Brandt
9c1f3ca3cf Make the tests runnable on a read-only src. To do this you must make sure
that you create one of the object directories make knows (see make(1)).
This uses the -C flag, so add a test that checks that make actually accepts
-C. Also fix the test that selects csh via the .SHELL target to work for
tcsh users too.

This commit renames shell_test to shell_test.sh. There is no history
to preserve so go without a repo-copy.

Reviewed by:	ru
2004-12-02 17:00:58 +00:00
Nik Clayton
2ba5c2107e The following code sets up two connected TCP sockets that send data to each
other until the window is closed. Then one of the sockets is closed, which
will generate a RST once the TCP at the other socket does a window probe.

All versions of FreeBSD prior to 11/26/2004 will ignore this RST into a 0
window, causing the connection (and application) to hang indefinitely.
On patched versions of FreeBSD (and other operating systems), the RST
will be accepted and the program will exit in a few seconds.

Submitted by:	Michiel Boland
Reviewed by:	silby
2004-12-01 12:12:12 +00:00
Hartmut Brandt
60f801ee87 Chmod the shell testscript to be executable if it isn't already. According
to the CVS-Meisters x-mode just happens to work, but is not guaranteed to
do so. Try to be on the safe side.
2004-11-30 15:33:18 +00:00
Hartmut Brandt
7b54cdda4e Add some regression tests for the .SHELL target. I'm not sure that the
output of shell_2j is actually correct - it just tests what make currently
does. Make should switch on echoing for the second line, shouldn't it?
2004-11-25 10:03:29 +00:00
Tim J. Robbins
c2089f05ef Remove regression tests for the obsolete rune interface. 2004-11-21 03:21:22 +00:00
Nik Clayton
00e13b1d67 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.
2004-11-11 19:47:55 +00:00
Robert Watson
c6eea89879 Add a small regression test that opens a TCP socket, listens on it,
performs a non-blocking connect from another socket, and then closes
the listen socket rather than accepting.  This is intended to
exercise the close path in which connections are aborted due to a
close on the listen socket while the connection is in the listen
queue.
2004-11-02 17:59:12 +00:00
Ruslan Ermilov
a35d88931c For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
Robert Watson
09745181fd Use errx() instead of fprintf()/exit() for conciseness.
Suggested by:	ru (some time ago)
2004-10-23 22:18:37 +00:00
Robert Watson
a09c60ffeb Use errx() instead of perror()/exit() for conciseness.
Suggested by:	ru (some time ago)
2004-10-23 22:11:35 +00:00
Ruslan Ermilov
9a5cf32635 Add a regression test for the alternate shell specification. 2004-10-23 21:38:58 +00:00
Ruslan Ermilov
30f4920b76 Fixed a typo.
Submitted by:	Pawel Worach
2004-10-17 11:07:03 +00:00
Giorgos Keramidas
5b9c5efc57 Add a regression test for floating-point output in the Greek locale.
See revision 1.3 of src/share/numericdef/el_GR.ISO8859-7.src

Reviewed by:	das (a while ago)
2004-10-13 22:32:12 +00:00
Robert Watson
a1626faabe Resort unprivileged uid with privileged socket after unprivileged uid
with privileged socket in test runs.

If running unprivileged and instructed to use unprivileged sockets,
don't try and use raw sockets.
2004-10-11 19:12:40 +00:00
Robert Watson
cdeeed7a38 A number of improvements to the IP socket option API regression test:
- Consistently use err/errx/warnx throughout, rather than using perror()
  and exit().

- Teach the tests how to better manage (and therefore test) privilege:
  in particular, how to create sockes with root credentials but exercise
  the privileges with non-root credentials, etc.

- Teach the test suite to apply each of the non-IP_HDRINCL options across
  each of SOCK_DGRAM, SOCK_STREAM, and SOCK_RAW.
2004-10-11 19:03:53 +00:00
Stefan Farfeleder
c904266eac Add regression tests for ilogb{,f,l}(). 2004-10-11 18:40:45 +00:00
Robert Watson
f1f6501da8 Add a simple exercise suite for IP-level socket options. The suite
atempts to read and write various IP-level socket options as root and
nobody, making sure the initial values are as expected, that they can
be changed to valid values and take effect, etc.  No attempt is made
to check for the correct implementation of side effects (such as
changes in packet headers) as yet.

The IP options section is currently broken but will be fixed shortly.

Not all multicast options are currently tested.
2004-10-11 16:09:45 +00:00
Robert Watson
6a671583a4 Add a simple C-based TCP connection generator, which generates and
closes the specified number of TCP connections sequentially and
synchronously.  Useful for trying to trigger races in the accept
code.
2004-10-09 20:58:28 +00:00
Robert Watson
54516c29e8 Modify accept_fd_leak regression test to generate "PASS" output, not
just "FAIL" output, in order to make it consistent with other tests in
the regression test tree.
2004-09-18 13:06:00 +00:00
Robert Watson
e8929330e7 Add a very basic README for tcpstream. 2004-09-13 16:53:40 +00:00
Robert Watson
cb5e18f34e Add tcpstream, a simple TCP stream generator that uses a pseudo-random
sequence to detect data corruption visible to an application.
2004-09-13 03:17:22 +00:00
Stefan Farfeleder
27fdb57eab Add a regression test for <tgmath.h>. 2004-09-04 11:34:53 +00:00
Ruslan Ermilov
751d4065e6 Join the effort in simplifying this makefile. ;) 2004-09-03 06:18:52 +00:00
Robert Watson
accbe49470 Pass O_NONBLOCK directly to fcntl() rather than the pointer to an int
holding the value O_NONBLOCK.  This worked previously because I was
lucky.
2004-09-02 21:41:57 +00:00
Robert Watson
27b37d5cf2 Don't override the rule used to build a binary by providing our own
compiler line.
2004-09-02 21:37:50 +00:00
Robert Watson
cf03a9be9c Make sure to properly initialize 'size' to sizeof(sin) before passing
it into accept().  Depending on the initial value in memory, it is
otherwise possible to get EINVAL.
2004-08-24 04:59:26 +00:00
Robert Watson
62967fb0bb Add a basic kqueue + UNIX domain socket pair regression test to do some
elementary exercising of kqueues on datagram and stream sockets.  Note
that the datagram write kqueue case is left untested due to potentially
confusing behavior for the developer (me) that might require attention.
2004-08-24 04:02:41 +00:00
Pawel Jakub Dawidek
1c11fbbb6e Regression tests for 'verify reading' algorithm. 2004-08-22 16:26:09 +00:00
Pawel Jakub Dawidek
3e90f289df Add regression test for the new "round-robin reading" feature. 2004-08-21 18:14:55 +00:00
Doug Rabson
c37420b0d5 Remove some debug cruft from the Makefiles and make them ${.OBJDIR}
friendly.
2004-08-16 09:35:49 +00:00
Pawel Jakub Dawidek
4d5580d64d Add regression tests for GEOM_RAID3. 2004-08-16 09:09:23 +00:00
Ruslan Ermilov
5f90425815 Replaced COPTS by equivalent CFLAGS. 2004-08-13 14:21:49 +00:00
Max Khon
69bcab915c Regen. 2004-08-13 09:56:22 +00:00
Max Khon
ee91bec14f Regression test for geom_uzip. 2004-08-13 09:53:52 +00:00
Hartmut Brandt
b5bb945eef Add a regression test for the ATM call control stuff. 2004-08-13 09:27:21 +00:00
Hartmut Brandt
215431deb0 Now that make more correctly handles variable assignments
in .MAKEFLAGS targets enable the regression test for this.
2004-08-12 19:14:10 +00:00
Diomidis Spinellis
30fd73fb81 Per letter dated July 22, 1999 remove 3rd clause of Berkeley derived
software (original contributor).

Reviewed by:	imp
2004-08-09 15:29:41 +00:00
Hartmut Brandt
cfe632eaba Back out something I'm working on that crept in with the last commit.
Spotted by: ru
2004-08-05 09:11:44 +00:00
Hartmut Brandt
82eb7072de Remove extra spaces. Remove double quotes around error messages -
they are not needed and will actually be printed.

Submitted by:	ru
2004-08-05 08:44:00 +00:00
Doug Rabson
3b9474cc07 This file is not suppose be be all one big comment :-(
Pointed out by: ssouhlal
2004-08-05 08:07:40 +00:00
Hartmut Brandt
c997f47be0 Add another test that checks for a working '+' command flag. 2004-08-05 07:24:06 +00:00
Pawel Jakub Dawidek
f33015b90f Add regression test for "prefer" balance algorithm in MIRROR class. 2004-08-04 12:18:42 +00:00
Hartmut Brandt
48ec21e7e6 Add a regression test for the passing of command line
variable assignments via the MAKEFLAGS environment variable.
2004-08-04 07:40:58 +00:00
Robert Watson
07727c8333 Add minimal socketpair() regression test to confirm that we can create
(and close) PF_UNIX socket pairs, and that we can't create PF_INET
socket pairs.  More tests to follow.
2004-08-04 03:46:35 +00:00
Doug Rabson
2546665afc Add regression tests for TLS. 2004-08-03 09:04:01 +00:00
Pawel Jakub Dawidek
fa4a1febf7 Add GEOM_MIRROR class which provide RAID1 functionality and has many useful
features. The gmirror(8) utility should be used for control of this class.
There is no manual page yet, but I'm working on it with keramida@.

Many useful tests provided by:	simon (thank you!)
Some ideas from:		scottl, simon, phk
2004-07-30 23:13:45 +00:00
Jordan K. Hubbard
bad960b11b After conferring with Apple legal, update the license of this to APSL 2.0
and change the URL link to point to the appropriate license text.
2004-07-27 20:01:43 +00:00
Pawel Jakub Dawidek
889c5dc22b Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>. 2004-07-26 16:10:27 +00:00
Pawel Jakub Dawidek
ba385d0091 Change naming scheme from /dev/<name>.concat to /dev/concat/<name>. 2004-07-26 16:08:32 +00:00
Robert Watson
43cb0b2b09 Simple attachment regression test to attach the "accf_data" accept
filter to an inet socket and check at various points during the socket
life cycle that the filter can or cannot be attached, and that once
attached that the right one is attached and that it can be queried.
2004-07-26 03:53:47 +00:00
Mike Silbersack
a99c936ba3 Add two more programs useful for testing the correctness of pipes. 2004-07-22 02:46:25 +00:00
Tim J. Robbins
a24d9b9413 Add test programs for mbsnrtowcs() and wcsnrtombs(). 2004-07-21 13:47:48 +00:00
Mike Silbersack
d895e295d0 Make this test compile again and remove its dependency on sys/pipe.h. 2004-07-21 03:13:53 +00:00
Mike Silbersack
9fb02d624f Add a simple regression test for the stat st_size bug just fixed in
sys_pipe.c
2004-07-20 07:17:19 +00:00
Tim J. Robbins
7cc9e6ddbb Add a skeleton makefile that runs the tests out of libc/regex/grot. 2004-07-19 09:00:26 +00:00
Tim J. Robbins
683d338a83 Oops, test error behaviour of wctrans(), not wctype(). 2004-07-19 08:53:41 +00:00
David Schultz
b3cb43917d While testing fe[gs]etround(), make sure FLT_ROUNDS reflects the
proper rounding mode as well.
2004-07-19 08:17:47 +00:00
Robert Watson
f8254af5ce Explicitly specify ATPROTO_DDP constant rather than '0' when binding
a netatalk socket.  No functional change.
2004-07-17 17:16:16 +00:00
Robert Watson
ffd446110e Add a simple tool to bind netatalk sockets and perform send operations.
This isn't a classic regression test in that it doesn't have a notion of
pass fail, it's more of an exercise tool.  It attempts to exercise
unbound, bound, unconnected, and connected variations on SOCK_DGRAM
sockets.
2004-07-17 17:12:15 +00:00
Robert Watson
9e7ebef8c3 gcc now objects to a default label without any contents. Because I want
to have a comment present in the default case, add a 'break' to each
default case that previously had no actual statements.
2004-07-17 17:01:25 +00:00
Robert Watson
90d6d28efa Add simple regression test to detect leakage of file descriptors when
accept() returns EAGAIN on a non-blocking listen socket.  This is the
tool I used to check that such a bug was resolved when merging accept()
locking.
2004-07-17 16:56:46 +00:00
Hartmut Brandt
f0092780fc Use and explicite 'sh' to run the scripts, because they may be checked
out non-executable.
2004-07-09 08:59:15 +00:00
Maxim Sobolev
ace18b764a Add qsort, mergesort and heapsort regression tests. 2004-06-25 12:31:12 +00:00
David Schultz
a2ca83c04a Add some fenv.h regression tests. 2004-06-11 03:22:34 +00:00
Brooks Davis
d49b8d3917 Fix stupid patch(1) tricks. Apparently patch thinks all files match the
empty file so if you accidently apply a patch created with diff -N
twice, you get files with duplicate contents.

Reported by:	Antoine Brodin <antoine.brodin at laposte.net>
2004-05-27 17:23:32 +00:00
Brooks Davis
7387768ef4 Add support for an /etc/eui64 file modeled on /etc/ethers. The API is
modeled on ethers(3) except that all functions are thread-safe.

Reviewed by:	simokawa
2004-05-26 22:58:06 +00:00
Pawel Jakub Dawidek
c4db6df027 Add regression tests for geom_stripe and geom_nop.
Supported by:	Wheel - Open Technologies - http://www.wheel.pl
2004-05-22 10:58:53 +00:00
Tim J. Robbins
7076971c1a Test accumulation of partial multibyte characters in conversion
state objects.
2004-05-11 13:10:47 +00:00
Pawel Jakub Dawidek
100ed7e49e Add regression tests for GEOM Gate:
- test-1.sh - Tests ggatec(8) and ggated(8) on lo0.
	- test-2.sh - Tests ggatel(8) on a regular file.
	- test-3.sh - Tests ggatel(8) on a md(4) device.
2004-05-03 18:29:54 +00:00
Sean Kelly
528d980cc0 A new version that does exponents and lots of other neat things. Update
from the original author of math.sed.

Submitted by:	K S Braunsdorf <sed@ksb.npcguild.org>
2004-05-01 02:15:58 +00:00
Tim J. Robbins
3a8bdd99cb Reset internal conversion state after triggering conversion errors;
the state is undefined according to the standards, and our undefined
behaviour has changed.
2004-04-07 11:02:51 +00:00
Pawel Jakub Dawidek
bf25fb037e Add regression tests for geom_concat class. 2004-03-03 21:52:49 +00:00
Johan Karlsson
20e61691a2 style.Makefile(5):
Use WARNS?= instead of WARNS=.
2004-02-24 20:52:58 +00:00
Brian Feldman
b99c0fd2b4 Add some more comments and a -4 argument to restrict searches to only
A (not default A and AAAA) records.  Now the longest time that a -4
thread might hang trying to resolve is only 2:30 instead of 5:00 ;)
2004-02-21 22:42:54 +00:00
Brian Feldman
bdb764aa04 Print the maximum resolution time encountered by each thread. Did you
know that the resolver might keep trying on a getaddrinfo() for up to
FIVE MINUTES?
2004-02-21 02:52:49 +00:00
Brian Feldman
e858faa9bb Add my getaddrinfo(3) stress-tester as gaithrstress. The most obvious
regressions would be to see the program or your kernel crashing.

If you want to give it something to really test out, try a much more
reentrant version of the resolver.
<URL:http://green.homeunix.org/~green/reentrant_resolver.patch>
Any Mozilla-based browser would show you a clear difference.
2004-02-20 16:54:01 +00:00
Ruslan Ermilov
b77a54a688 Added missing DPADD. 2004-02-05 22:01:28 +00:00
Ruslan Ermilov
99d3652e69 Add a test for what was broken in rev. 1.28 and fixed in rev. 1.29
of make/str.c.
2004-01-30 09:46:28 +00:00
Ruslan Ermilov
9608d7e2cd Add a test for what was fixed in revs. 1.28 and 1.29 of make/str.c. 2004-01-29 22:51:36 +00:00
Hartmut Brandt
ac9c95fde8 These scripts run the protocol test suites for the SSCOP, SSCF-UNI and
UNI protocols. The actual test suites are not in these directories because
of their size. One needs to install the atmsupport port (the script
will remind you, if it cannot find the port).

The SSCOP test suite includes booth the ETSI and the ITU-T test suite,
the SSCF-UNI test suite is home grown and the UNI test suite is the
P2MP ETSI test suite. Others may follow.
2004-01-29 16:01:57 +00:00
Hartmut Brandt
2e0b641e23 Add a simple test script for the ng_atmpif node.
Submitted by:	Vincent Jardin <vjardin@free.fr>
2004-01-29 15:58:06 +00:00
David Schultz
575f4d3239 Add regression tests for printf's %a/%A formats.
While here, disable some of the long double tests on i386, since
FreeBSD/i386 is the only port that doesn't evaluate long doubles in
their full precision (due to constant folding bugs in gcc).
2004-01-19 05:59:07 +00:00
David Schultz
24f285966e Add regression tests for some of the bugs recently discovered in the
vendor's strtod() implementation.

While here, disable some of the long double tests on i386, since
FreeBSD/i386 is the only port that doesn't evaluate long doubles in
their full precision (due to constant folding bugs in gcc).
2004-01-19 05:30:56 +00:00
David Schultz
e5524baebf Work around a recently-introduced gcc bug. The compiler no longer
accepts certain floating point constant representations that are
legal in C99.
2004-01-18 07:06:21 +00:00
Tim J. Robbins
33c50f26da Add regression tests for sgetrune() and sputrune(). 2003-10-30 11:51:36 +00:00
Ruslan Ermilov
21159d1687 Fix a bug that prevented exists() from finding "foo/", "foo/."
and "foo/.." when ".PATH: foo" was also given.

PR:		bin/34062
2003-10-02 21:30:30 +00:00
Pierre Beyssac
af1a7621cf Add a regression test for the big pipe bug.
Suggested by: silby
2003-07-31 12:40:56 +00:00
Diomidis Spinellis
37c94e1d78 Test 8.16 in sed.test tests the ability of a sed to handle an empty
regular expression as the first argument to a substitute command. If
used to test a sed which (erroneously) evaluates this at translation
time rather than at execution time, the bugged sed is put into an
infinite loop. This mode of failure seems excessive. Such a failing
sed is the Free Software Foundation's sed 3.02.

The specific test was also not being executed for the BSD sed.

Both problems are now fixed.

PR:		misc/25585
Submitted by:	Walter Briscoe <w.briscoe@ponl.com>
Approved by:	schweikh (mentor)
MFC after:	2 weeks
2003-07-22 19:22:08 +00:00
Ruslan Ermilov
c94d70434f Fixed broken arithmetic expression parser.
Reminded by:	bde
In memory of:	alane
2003-07-04 13:33:48 +00:00
David Schultz
3f0b22498b Add regression tests for floating point parsing in scanf(3). 2003-06-28 09:03:44 +00:00
Tim J. Robbins
57f0ef1f50 Regression tests for wctype(), iswctype(), wctrans(), towctrans(). 2003-06-06 09:42:21 +00:00
Tony Finch
7d3a298ba9 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.
2003-06-04 15:26:23 +00:00
Poul-Henning Kamp
06a31d6a67 write pattern to /dev/ccd3 not /dev/ccd3c 2003-06-02 19:49:09 +00:00
Jordan K. Hubbard
f2e30adc3f Sync with latest and greatest Apple sources (which, among other things, fix
the style flag).

Submitted by: Conrad Minshall <conrad@apple.com>
Reviewed by: jkh
Obtained from: Apple Computer, Inc.
2003-04-23 23:42:23 +00:00
David Schultz
60fd7ba74a Add a dozen new tests with the general theme of getting trailing
zeroes right.
2003-04-19 23:53:34 +00:00
David Schultz
3b74a935d6 Add a test case for printf("%5.0f", 0.001). 2003-04-14 11:26:32 +00:00
Poul-Henning Kamp
a9198bad37 Remove the "run GEOM in userland harness" test stuff, it's been OBE. 2003-04-13 09:11:47 +00:00
Poul-Henning Kamp
22de4dc100 Give mdconfig a couple of seconds to deconfigure in case debugging is being
printed to a serial console.

Reverse the order of args to diff to make it more logical.
2003-04-13 09:06:39 +00:00
Poul-Henning Kamp
7176764df3 Update these two reference vectors. 2003-04-09 13:36:28 +00:00
Poul-Henning Kamp
a067f0991b Add script to run kernel based regression test and the reference vectors
for the current XML images.
2003-04-09 12:40:12 +00:00
Poul-Henning Kamp
d71142f396 Utility to load one of our XML images into a MD(4) device. 2003-04-09 12:34:20 +00:00
David Schultz
b0850075ac Additional regression tests for grouping, parsing of '.*', and printing
of %f formats where the number of significant digits is < expt.
2003-04-07 00:42:49 +00:00
Tim J. Robbins
fadfe1d425 Test for bug in revision 1.54 of vfprintf.c. 2003-04-06 08:02:20 +00:00
David Schultz
600276e186 Regression tests for printf()'s floating point formats.
Tests for correct printing of subnormals are lacking.
2003-04-05 22:13:01 +00:00
David Schultz
0c66f5adc3 Write negative zero as '-0.0'. Otherwise, it is parsed as an integer
before being cast to a floating point type, and the sign is lost.
2003-03-27 05:32:28 +00:00
Poul-Henning Kamp
49efad87df Fix a bug in the white-space remover. 2003-03-04 19:20:52 +00:00
Garance A Drosehn
413a16d889 The regression-tests for 'make' *expect* to trigger make's warning:
warning: duplicate script for target "double" ignored
The regression-tests do try to hide that message, but the message does
still appear when using -j (eg: 'make -j5 buildworld').  This changes the
regression-test so the expected warning message will not be seen even
when -j is specified.

Reviewed by:	jmallett  ru
2003-02-10 19:56:42 +00:00
Mike Barcroft
b4e41c1278 Add more tests. Specifically, infinity cast from other types should
always be classified as infinity.
2003-02-08 20:45:48 +00:00
Mike Barcroft
2c4594131f Add regression test for soon-to-be-committed fpclassify(). 2003-02-05 16:40:18 +00:00
Poul-Henning Kamp
395121c034 Update reference vectors to include BSD's <type> output. 2003-01-31 18:59:12 +00:00
Poul-Henning Kamp
f993880ae1 Add Apple partitioning test case.
Use correct name for image data file
2003-01-31 18:31:48 +00:00
Poul-Henning Kamp
126fe1249a Add more scaffolding to make this compile kernel code. 2003-01-28 09:48:59 +00:00
Poul-Henning Kamp
ab543fbcee Add a regression test for ccds layout policy. 2003-01-17 12:23:44 +00:00
Poul-Henning Kamp
ceadf51064 geom_bsd need -lmd to link now. 2003-01-06 20:11:32 +00:00
Tim J. Robbins
889c37ceb3 Add a regression test for wordexp() and wordfree(). 2003-01-04 05:50:35 +00:00
Tim J. Robbins
a932a3f4b5 Add a test program for perror() that demonstrates two bugs in the
current implementation.
2002-12-19 09:46:10 +00:00
Tim J. Robbins
7d5a41c359 Test that if the buffer argument (`s') to wcrtomb() is NULL then
the value of the supplied wide character is ignored and L'\0' is used
instead. Remove incorrect comments about "internal buffer" since wcrtomb()
does not have one (wctomb() does).
2002-12-19 02:01:39 +00:00
Mike Barcroft
ac3f0d298f Add regression test for strerror()/strerror_r().
Based on:	src/lib/libc/string/strerror.c (rev 1.8)
2002-12-18 16:59:08 +00:00
Poul-Henning Kamp
adb72768ea Goto WARNS 5 with assorted changes. 2002-12-16 22:35:56 +00:00
Poul-Henning Kamp
6f8a5ea200 Update this one too. 2002-12-16 22:01:25 +00:00
Poul-Henning Kamp
a99aa4c483 Get the test-suite into sync with the kernel again. 2002-12-16 21:39:16 +00:00
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