Commit Graph

751 Commits

Author SHA1 Message Date
gallatin
6144e74fca Make kttcp work in -stable (and -current)
- Removed kttcp_sosend() and kttcp_soreceive() in favor of using
  sosend() / soreceive() with UIO_NOCOPY.  The locking changes in the
  socket layer make merging the kttcp_so* and the so* routines a real
  pain.  It was a lot easier to just use the integrated routines.

- Eliminated KTTCP_MAX_XMIT restrictions on send and receive sizes
  because I encountered no problems with streams larger than MAX_INT.
  MAX_INT bytes is only good for a few seconds at 4Gb/sec ;)

- Removed Giant from send / recv routines.

- Fixed character device protos, cdevsw init, etc, to work in 5.x /
  6.x

Reviewed by: sam
MFC after: 1 week
2004-12-13 20:40:16 +00:00
sam
b63f688d6c Loadable modules that run test vectors for net80211 crypto plugins. 2004-12-08 17:45:53 +00:00
sam
21e06e4bb0 o new tools for futzing with 80211 and ath debug masks symbolically
o update stats programs to reflect driver and net80211 changes
2004-12-08 17:42:53 +00:00
harti
c90efa2b2f 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
pjd
89697130c6 Raidtest is now in the ports collections. 2004-12-07 14:24:23 +00:00
rwatson
3522c0a675 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
rwatson
8bd5ca5854 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
ru
0a293bea5c Make this work under debugging, e.g., "make -dl". 2004-12-06 08:51:30 +00:00
obrien
91a6b9ee83 Now as a full blown port. 2004-12-05 04:16:36 +00:00
harti
b9b9fdbd3f 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
a138ae34c4 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
harti
c87a620e46 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
phk
f79d0d219a Change CUSTOMIZE example. 2004-11-28 17:14:03 +00:00
phk
3724ff7100 Make it possible to specify a list of customize scripts.
Look for them in ./Customize first, then relative to . and then absolute.
2004-11-28 17:12:15 +00:00
phk
c942915089 Add various customize scripts. 2004-11-28 17:10:44 +00:00
phk
a28dea3270 Hardlink the generated /etc/fstab to /conf/base/etc/fstab 2004-11-28 16:15:43 +00:00
phk
6b7c7e0258 don't mv(1) nonexistent directories. 2004-11-28 13:45:31 +00:00
phk
87fc8dfda2 Reduce -j12 to -j3 2004-11-28 13:28:04 +00:00
harti
f4e37f6f60 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
peter
5366ae5ee5 Remove the build32.sh hack, it is now slightly broken (missing some
compile args) and would be harmful to use.  Leave the README pointing
to WITH_LIB32 for now.
2004-11-25 04:25:21 +00:00
tjr
4e61a637dc Remove regression tests for the obsolete rune interface. 2004-11-21 03:21:22 +00:00
das
35f1e7649c Remove the uarea column from the DDB 'ps' display, and from grog's gdb
scripts.

Reviewed by:	arch@
2004-11-20 02:32:42 +00:00
obrien
6c9183a0b3 Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456]. 2004-11-19 17:31:31 +00:00
obrien
07115bc66a Catch up with PHK's sio(4) cuaa->cuad rework [sys/dev/sio/sio.c rev. 1.456]. 2004-11-19 03:51:12 +00:00
bz
4b83c5852a Add knob NO_NIS (fka NO_YP_LIBC) and make world compileable when set.
If turned on  no NIS support and related programs will be built.

Lost parts rediscovered by:	Danny Braniss <danny at cs.huji.ac.il>
PR:		bin/68303
No objections:	des, gshapiro, nectar
Reviewed by:	ru
Approved by:	rwatson (mentor)
MFC after:	2 weeks
2004-11-13 20:40:32 +00:00
nik
3e959a33f9 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
des
2e05970ab0 RELENG_5 is now -STABLE (but without powerpc) 2004-11-11 18:37:39 +00:00
des
7cec18a141 Install in /usr/local/bin. 2004-11-07 11:09:44 +00:00
pjd
91b08be043 Add description of all available options. 2004-11-06 17:19:55 +00:00
pjd
97a0c2205e Allow to write random data while testing RAID device, so we can also
test data integrity.
2004-11-06 17:10:24 +00:00
phk
f2cb74de87 Remove vinum bits. 2004-11-04 13:34:06 +00:00
phk
86fa6da853 Remove references to NO_VINUM 2004-11-04 12:57:40 +00:00
rwatson
2db191c4fe 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
blackend
d3d2befd51 Typo: s/Exampes/Examples 2004-10-25 20:56:24 +00:00
ru
e5247f7ec0 For variables that are only checked with defined(), don't provide
any fake value.

While here, sort NO*'s in dictionary order to ease searching by a
human being.
2004-10-24 15:52:04 +00:00
ru
5db2b9d5b3 For variables that are only checked with defined(), don't provide
any fake value.
2004-10-24 15:33:08 +00:00
rwatson
8ad3de471d Use errx() instead of fprintf()/exit() for conciseness.
Suggested by:	ru (some time ago)
2004-10-23 22:18:37 +00:00
rwatson
e5417785bf Use errx() instead of perror()/exit() for conciseness.
Suggested by:	ru (some time ago)
2004-10-23 22:11:35 +00:00
ru
8cebff99b3 Add a regression test for the alternate shell specification. 2004-10-23 21:38:58 +00:00
des
5fcc302e9b Use %zu to format size_t instead of %jd and an intmax_t cast.
Approved by:	hamlet
2004-10-23 15:58:50 +00:00
phk
6720f62dc5 Stop amd64 warnings. 2004-10-23 12:42:18 +00:00
blackend
eaf4c4162d Add NO_BLUETOOTH and NO_AUTHPF variables. [1]
While I'm there use lowercase "yes" for consistency.

Approved by:	phk [1]
2004-10-22 08:49:54 +00:00
blackend
ec23a3b685 Sort NO* variables.
Approved by:	phk
2004-10-22 08:45:34 +00:00
blackend
df05aed057 Remove NOLIBPTHREAD=yes since BIND related binaries (dig etc.) require
LIBPTHREAD.

Approved by:	phk
2004-10-21 13:56:24 +00:00
keramida
a85fd49a1d Typo fix.
PR:		misc/72801
Submitted by:	Hywel Mallett <circular@hmallett.co.uk>
2004-10-18 00:45:28 +00:00
maxim
753747f96e Fix a typo: s/kerncruft/kernelcruft/.
PR:		misc/72792
Submitted by:	Hywel Mallett
2004-10-17 19:02:17 +00:00
ru
d399f4ecf4 Fixed a typo.
Submitted by:	Pawel Worach
2004-10-17 11:07:03 +00:00
keramida
2eb8bfd316 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
peter
f8e9fe2c7c Don't leave noschg files laying around in /tmp 2004-10-11 22:14:47 +00:00
rwatson
bcc7e348ba 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