Commit Graph

1047 Commits

Author SHA1 Message Date
silby
80d723ba1b Have the regression test use a path in /tmp for a mount point
instead of a directory that only exists on my machine.
2005-04-17 00:40:27 +00:00
trhodes
7abff596b2 Those who are ungodlike should be returned an error. 2005-04-16 18:41:00 +00:00
rwatson
a5028ef44e Starting point for a regression test for mac_bsdextended(4)/libugidfw(3).
Currently only performs basic tests against the library string routines,
and queries less important kernel state.

Obtained from:	TrustedBSD Project
Sponsored by:	SPAWAR, SPARTA
MFC after:	3 days
2005-04-16 12:06:40 +00:00
stefanf
73d2098d76 Also test \0 in the format string. 2005-04-14 18:33:14 +00:00
phk
47cf7426fa sort and expand the prunelist in a more or less generally sensibly
order.  Put some strategic comments in about how much storage is
necessary and a longer explanation on the top.

It is now pretty trivial to put nanoBSD on as little as a 64MB CF card.

Sponsored by:	Soekris Engineering.
2005-04-13 21:22:20 +00:00
phk
a5a4c071cb Introduce NANOBSD_PRUNE which can be used to zap out bits we don't
want to carry forward.
2005-04-13 21:20:16 +00:00
phk
01133bc55d Use df -i 2005-04-13 21:19:28 +00:00
stefanf
c7fefa410d Add a few regression tests for printf(1). 2005-04-13 20:08:17 +00:00
phk
82691535ee Add NO_DICT handle. Saves almost 3.5 MB installed. 2005-04-13 10:02:58 +00:00
mdodd
44f26591d0 Add support for more than two datasets. Currently limited to 7 though
the limit is only the number of meaningful graph symbols available.

Statistical comparison is performed between the first dataset and
any further datasets.

No objection by:	 phk
2005-04-13 05:50:56 +00:00
mdodd
467387567a Save argv[0] and use it in usage message. 2005-04-13 01:44:59 +00:00
avatar
a51295b62f Adding a brief description for pirtool.
Reviewed by:	sam (mentor)
2005-04-12 13:52:55 +00:00
rwatson
c5df80448a Centralize usage in usage(), and use in preference to fprintf().
List possible tests in usage().

When running a test, print the test name.
2005-04-10 02:06:49 +00:00
silby
d0b8d01316 A simple regression test for msdosfs. Not the best, but it would have caught
the recent trouble msdosfs had.
2005-04-08 07:21:07 +00:00
das
bd50b9aebd Add missing test-rem.t. 2005-04-02 12:50:28 +00:00
sam
cbd4b4eca0 print new stats for cts burst extension logic 2005-03-30 20:21:44 +00:00
sam
045c790746 fix typo 2005-03-30 19:28:00 +00:00
sam
44f7579d90 handle rejoin event 2005-03-29 20:24:13 +00:00
das
d00974ed11 A few simple regression tests for remainder(), remainderf(),
remquo(), and remquof().
2005-03-25 06:24:46 +00:00
pjd
a0488b0220 Add regression tests for pkill/pgrep.
MFC after:	3 days
2005-03-20 12:38:08 +00:00
jmg
d4af181c4d I forgot to commit this fix that is now kgdb aware... 2005-03-20 02:08:21 +00:00
phk
5f50d150de I keep forgetting that I wanted the customize logs collected too.
Reminded by:	Lennart Sorth, Andrea Campi and others.
2005-03-17 19:45:05 +00:00
das
b424be5faf - Replace fe[gs]etmask() with feenableexcept(), fedisableexcept(), and
fegetexcept().
- Add additional tests for the above.
- Output a separate success message for each of the 8 components of
  this set of tests.
2005-03-16 19:04:45 +00:00
jeff
dfd3ed6e5d - ktrace(1) has nothing to do with schedgraph. Remove that from the
instructions.
2005-03-14 11:52:24 +00:00
phk
c582e3b375 Add NO_GPIB 2005-03-12 20:42:18 +00:00
phk
18a1b9b8f9 DTRT with /var so that any packages installed are correctly recorded. 2005-03-12 20:41:26 +00:00
phk
794e3fa360 Enable packet mode in boot0, this makes it unimportant if the
geometry is 100% correct on most hardware.
2005-03-12 20:40:33 +00:00
rwatson
1fbc0d2e52 Check the return value of shutdown(). 2005-03-11 13:05:18 +00:00
rwatson
832b048264 Add sigpipe, a simple UNIX domain socket and TCP regression test that is
intended to verify that SIGPIPE is delivered to a process writing or
sending on a socket that has been shut down for write.  If available,
SO_NOSIGPIPE is also tested.

This regression test is currently passed by RELENG_4, but not by HEAD or
RELENG_5, due to a bug in the write() code for sockets.  SO_NOSIGPIPE is not
present in RELENG_4, however, so is not tested there.

Reported by:	Mikko Tyolajarvi <mbsd at pacbell dot net>
PR:		78478
2005-03-11 12:47:14 +00:00
das
e73c425f78 Test cases for nextafter{,f,l} and nexttoward{,f,l}. 2005-03-07 05:03:46 +00:00
des
911d6eee8d Markup nits. 2005-03-03 07:20:57 +00:00
des
94eb921022 Correct the default value for %%TINDERBOX%%. 2005-03-03 07:18:01 +00:00
ru
86bbb8bc22 Add hacks that I use to test cross-builds (by building on
native and foreign architectures and comparing products).
They eliminate most of the differences caused by different
object directory paths, timestamping, and identification.

(Note WORLDTMP was renamed to ${OBJTREE}${.CURDIR}/tmp.)
2005-03-02 16:40:51 +00:00
harti
13d684fd15 Repo-copy tools/regression/usr.bin/make to tools/build/make_check
and adjust the path in the Makefile for the upgrade_checks target.
These checks are really feature upgrade checks that should be fast
and just find out whether we need to build a new make before
proceeding with other targets like buildworld. This makes the
place free for a real regression test suite in the old place.
2005-03-02 12:33:23 +00:00
ambrisko
76dfd3add8 This will not compile without:
http://www.ambrisko.com/doug/listio_kqueue/listio_kqueue.patch

Note: it is a good idea to run this against a physical drive to
exercise the physio fast path (ie. lio_kqueue /dev/<something safe>)
This will ensure op's counting per LIO request is correct.  It is
currently broken the above patch fixes it.

Sponsored by:   IronPort
2005-03-02 04:00:55 +00:00
ambrisko
fd8046ee06 Add an AIO & kqueue regression test. It is a good idea to run this
against a disk as the argument.  If you don't it will use a temp file.
The raw disk will use the kernel physio fast path method until the
max number of pending op's is reached then it will queue them.  File
system op's are always queued.  This is more important with LIO since
operation can get split across and accounting of op's is broken with LIO.

Note that this was broken when locking was added to kqueue (ie. 5.3)
My fix needs to be better integrated with FreeBSD.

Next is an LIO test and implementation.

Sponsored by:	IronPort
2005-03-02 03:32:01 +00:00
trhodes
565747d386 Add sysdoc, a small set of scripts which will parse a kernel binary and
modules to rip out the available sysctls.  It will then produce a manual
page which may be installed with 'make install'.  Currently typing 'make'
in the directory uses the default /boot/kernel files.  To use a specific
directory, run sysdoc -k [location].
2005-03-01 05:48:37 +00:00
das
1f1be76759 - Split tests into three rough categories.
- Use fesetround() instead of fpsetround(), and add tests for
  various rounding modes.
- Test that all NaNs generated are quiet.

Some of these tests won't pass until problems in vendor sources
(gdtoa and gcc) are fixed and new versions imported, but I
want to get these changes into the tree before I accidentally
blow them away again.  :-(
2005-03-01 01:43:20 +00:00
das
8448d77935 - Split the printfloat test into 11 individually wrapped and packaged
tests.  (Buy 10, get one free!)  The separate categories were
  already there; they just weren't labeled.
- Use fesetround() instead of fpsetround(), since the former is
  standard and implemented on all supported architectures.  Add
  tests for each rounding mode.
- Add additional tests for subnormals.

Some of these tests won't pass until problems in vendor sources
(gdtoa and gcc) are fixed and new versions imported, but I
want to get these changes into the tree before I accidentally
blow them away.
2005-03-01 01:43:05 +00:00
ru
142ea172ed Bootstrap gencat(1).
OK'ed by:	phantom
2005-02-27 19:13:41 +00:00
ru
0434ec5fe8 As threatened, drop support for source upgrades from pre-5.3.
Inspired by:	obrien
2005-02-27 11:22:58 +00:00
ru
dff27cebe2 Make the format of LC_CTYPE files architecture independent by
introducing the disk formats for _RuneLocale and friends.

The disk formats do not have (useless) pointers and have 32-bit
quantities instead of rune_t and long.  (htonl(3) only works
with 32-bit quantities, so there's no loss).

Bootstrap mklocale(1) when necessary.  (Bootstrapping from 4.x
would be trivial (verified), but we no longer provide pre-5.3
source upgrades and this is the first commit to actually break
it.)
2005-02-26 21:47:54 +00:00
rwatson
357323f47c Add a simple regression test for stream UNIX domain sockets and the
bind()/connect() system calls, which is intended to confirm that the
right successes and errors occur when rendezvousing via the file system
name space.
2005-02-20 22:21:53 +00:00
rwatson
26eab3d806 Also build the netblast sub-directory, not just netreceive and netsend.
MFC after:	3 days
2005-02-12 20:04:23 +00:00
rwatson
0eb3172b5d Mark the signum argument to signal_handler() as __unused.
MFC after:	3 days
2005-02-12 20:03:30 +00:00
ru
768d0ef9bc Add to CFLAGS. 2005-02-12 18:09:20 +00:00
phk
93d5e4d56e Update a little bit. 2005-02-10 12:47:55 +00:00
obrien
1a1fea70de Fix "to a file" example so it works (one must touch(1) the file first). 2005-02-07 11:26:53 +00:00
des
9ecd4e2559 Sort branches in correct numeric order. 2005-02-07 07:55:00 +00:00
des
63a6fd20b6 Replace RELENG_4_9 (no longer supported) with RELENG_4_11. 2005-02-06 13:56:12 +00:00
nik
e789f38245 Add to CFLAGS, rather than overriding it. Use LDFLAGS for the -L option,
and LDLIBS to specify -ltap.

Submitted by:	ru
2005-02-01 09:26:34 +00:00
nik
41b0884fdc 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
phk
f64119b04d Use awk to correctly calculate partioning, round things off to cylinders
and reserve first track etc.
2005-01-30 13:12:13 +00:00
marcel
a52d6034c2 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
2fd1a0c45b 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
c8ad56a37f 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
8c11911620 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
bf144c55ea The unit test for unaligned loads/stores can be found under ../ia64. 2005-01-27 06:51:45 +00:00
marcel
4722d1539a 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
rwatson
96960d4e34 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
ru
22937d31bc Fixed xrefs. 2005-01-21 20:50:39 +00:00
bms
0ac71b801c Braino. Revert previous commit, NO_MAN was already corrected.
Noticed by:	imp
2005-01-21 18:12:47 +00:00
bms
7dbaec2b97 Catch up with NO_MAN->NOMAN change. 2005-01-21 17:38:02 +00:00
bms
3933cd4e50 If a device resides in physical slot 0, report it as being on-board as
per PIR specification.
Add the VIA VT82C686 PCI interrupt routing function as a known chipset.
2005-01-21 17:11:38 +00:00
bms
b99e3f39fe Fix a masking error. Update copyright. 2005-01-21 17:05:33 +00:00
bms
9dbf507683 Do not treat an invalid PIR table checksum as a fatal error condition, but
do print a warning about it.
Correct a stupid logic error.
Update copyrights.  Fix whitespace bug.

MFC after:	1 week
2005-01-21 16:15:24 +00:00
silby
67f0a2039e Add two more pipe regression tests. Not yet hooked into the test framework. 2005-01-21 06:46:18 +00:00
phk
b99c38ceb3 ioctl(2) commands are u_long not int.
Pass zero for sysctl new argument length, not NULL);
2005-01-18 07:42:17 +00:00
rwatson
ea812ffcf7 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
rwatson
69eae68c08 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
sobomax
319257bc18 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
das
e71d433311 Regression tests for [l]lrint[f]() and [l]lround[f](). 2005-01-11 23:13:36 +00:00
pjd
8d8363ee39 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
pjd
fb444128a4 Fix incorrect comment.
MFC after:	3 days
2005-01-11 14:11:14 +00:00
arr
dca5910ce3 - Initial revamp of vop_table.tcl. This scripting is ugly and will be
cleaned up; just wanted to make a place holder.  The biggest issue is
  that it is an incomplete revamp; that is... the inconsistent naming
  table generation is not done yet ... will be added soon with the clean
  up.  The purpose of this script is to handle the vop_vector changes that
  phk@ did over the recent weeks.
2005-01-05 06:53:03 +00:00
rwatson
aedc2f346a 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
90a64b80c5 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
5370f7380f 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
sam
c0488e737c new stat 2004-12-31 22:06:19 +00:00
arr
8de6777f0a - Add some notes on what is required to run schedgraph.py successfully.
This was pulled from Jeff Roberson's email to current@ "the other day."

Approved by: jeff@
2004-12-28 00:49:02 +00:00
jeff
7b0ff93d2d - For preemption and yield events, we want to skip the next two state events
as they are the setrunqueue() and sched_add() calls.  Since they happen
   immediately before the thread is placed on a run queue they would normally
   dwarf the more informative preemption or yield event and it is implicitly
   understood that a thread is back on the run queue as part of these events.
2004-12-26 03:25:08 +00:00
jeff
8d13141666 - Call self.checkstamp() in the cpu load parsing functions in case the
timestamp has wrapped.
2004-12-26 02:02:34 +00:00
jeff
d74da89b42 - The regexp for the load should have been (/d+), fix this so loads over 9
are properly represented.
2004-12-26 01:18:49 +00:00
jeff
02bd7382cc - Add 'schedgraph' a scheduler trace visualization tool written with
python and tkinter.  Schedgraph takes input from files produces by
   ktrdump -ct when KTR_SCHED is compiled into the kernel.  The output
   represents the states of each thread with colored line segments as well
   as colored points for non-state scheduler events.  Each line segment and
   point is clickable to obtain extra detail.
2004-12-26 00:13:07 +00:00
pjd
085de6ea5e Wait a bit after creating device. 2004-12-21 19:03:10 +00:00
pjd
13636f516f 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
keramida
1f936587ca Fix the build of netrate/ with WARNS=5 and add a Makefile.inc to
make it the default for all the netrate test tools.

Approved by:	rwatson
2004-12-21 12:14:34 +00:00
ru
8f62cc9941 NOHTML -> NO_HTML 2004-12-21 12:05:11 +00:00
ru
b74e87102d Overhaul ppp(8) build options so they are safe to use in
/etc/make.conf:

NOALIAS -> retired (support provided by PPP_NO_NAT)
NOATM -> PPP_NO_ATM (also subject to NO_ATM global)
NODES -> PPP_NO_DES (support was broken, now recovered)
NOI4B -> PPP_NO_I4B (also subject to NO_I4B global)
NOKLDLOAD -> PPP_NO_KLDLOAD
NONAT -> PPP_NO_NAT
NONETGRAPH -> PPP_NO_NETGRAPH
NOPAM -> PPP_NO_PAM (will be subject to NO_PAM global)
NORADIUS -> PPP_NO_RADIUS
NOSUID -> retired (support provided by PPP_NO_SUID)
PPP_NOSUID -> PPP_NO_SUID
2004-12-21 12:01:15 +00:00
ru
5c04306fea NOINET6 -> NO_INET6 2004-12-21 10:49:29 +00:00
ru
f6f8222630 NOGAMES -> NO_GAMES 2004-12-21 10:36:54 +00:00
ru
74176cc161 NODOCCOMPRESS -> NO_DOCCOMPRESS
NOINFO -> NO_INFO
NOINFOCOMPRESS -> NO_INFOCOMPRESS
NOLINT -> NO_LINT
NOPIC -> NO_PIC
NOPROFILE -> NO_PROFILE
2004-12-21 09:33:47 +00:00
ru
3b01b84505 NOATM -> NO_ATM 2004-12-21 09:08:06 +00:00
ru
ba3655c74f NOLIBC_R -> NO_LIBC_R
NOLIBPTHREAD -> NO_LIBPTHREAD
NOLIBTHR -> NO_LIBTHR
2004-12-21 09:00:26 +00:00
ru
cec60429bb Start the dreaded NOFOO -> NO_FOO conversion.
OK'ed by:	core
2004-12-21 08:47:35 +00:00
phk
47c37eb878 Change terminal state, not terminal type 2004-12-18 16:31:21 +00:00
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
rwatson
4040b36fa7 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
stefanf
d9abb42b26 Add regression tests for ilogb{,f,l}(). 2004-10-11 18:40:45 +00:00
rwatson
8e1f60d994 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
rwatson
e6a8dc9c17 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
rwatson
a0fc078f86 Add a version of netsend that uses the interval timer rather than
explicit clock reads to set an overall duration to the send, and
blasts rather than trying to clock output.  The goal of netblast,
unlike netsend, is to send as many UDP packets as possible; the
cost is that there's no ability to control the rate, and there's
less accuracy in the timing as the interval timer granularity is
relatively low.
2004-10-08 19:23:11 +00:00
rwatson
512c8317e2 Use int format string, not a long format string. 2004-10-08 12:28:28 +00:00
phk
d21b76886c Only print progress statistics once per second. 2004-10-08 10:50:40 +00:00
sam
c5a66f8d8b add 80211watch program 2004-10-05 19:53:32 +00:00
sam
c42407335a simple program to watch 802.11 events through a routing socket 2004-10-05 19:51:34 +00:00
rwatson
724b02db8c While calling perror() on send() failure was useful for debugging the
if_em "wedging" problem, large numbers of perror() calls impacts send
performance.  As such, just count the error, don't print it.
2004-09-30 06:17:26 +00:00
rwatson
af519fd928 Add syscall_timing, a simple timing micro-benchmark for some
characteristic system calls.  I've been sending this to people for
a while, and figured it would be more efficient to just put it in
CVS.
2004-09-30 05:25:00 +00:00
phk
d0514db4ed This is a small tool which will read an entire disk(partition) using
1M blocks and optionally write the read data to a file or disk.

If a read error happens, the 1M block gets put on the end of the worklist
and will be retried with 64k blocksize.

If a read error happens again, the 64k block gets put at the end of the
worklist and will be retried with single sector reads.

The program keeps trying until you stop it.

You can refresh a disk:

	recoverdisk /dev/ad1 /dev/ad1

or salvage a floppy:

	recoverdisk /dev/fd0 myfloppy.flp
2004-09-28 22:00:01 +00:00
jmg
b069886175 add my script that helps me handle MFC's. It takes in a commit message
and generates the proper (hopefully) update -j lines + commit line to do
the MFC...  This has saved me a lot of time doing recent MFC's...

You still should use diff to verify the changes before doing the commit..
2004-09-24 20:06:49 +00:00
rwatson
e1013efdd6 Print number of "waits" per second during transmission, not just waits
per call to send().
2004-09-24 18:02:31 +00:00
des
70ac2d0f2c Add mfc. 2004-09-24 15:25:35 +00:00
des
d8aa7d51b2 A simple shell script to help MFC an entire directory to a branch where it
does not already exist.
2004-09-24 15:24:12 +00:00
rwatson
3165926b59 Improve netsend timing logic in various ways:
- Centralize time comparison.
- Check clock resolution to make sure it has enough granularity to
  implement the desired wait interval.
- Keep track of how many times the timing loop has to spin waiting
  for the next send time; report statistics.
- Add commented out warning about deadlines being missed when
  spinning.
- Improve statistics reporting generally to provide a more useful
  summary of sender condition after a run.
2004-09-21 20:21:40 +00:00
rwatson
362f547d94 Set default socket size for netreceive to 128k to reduce the chances
of the buffer overflowing before netreceive can be scheduled to read
the packets from the socket.
2004-09-21 03:10:28 +00:00
des
07e6fe379f Don't forget to check defined() before testing the value. 2004-09-20 15:22:57 +00:00
ru
6ceb6b3015 Make this use a standard bsd.subdir.mk. 2004-09-20 14:04:00 +00:00
rwatson
72782378d5 netsend uses an arbitrary maximum send rate to reject bogus arguments.
It was previously 1mpps; raise to 10mpps.  While here, get the error
message right.
2004-09-19 22:57:21 +00:00
des
a327ab2ee1 Recognize options with values. If an option is present in both GENERIC
and the custom kernel, but its value has been modified, it will now be
kept in its correct spot instead of being moved to the bottom.
2004-09-19 21:21:26 +00:00
rwatson
1991acc23e 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
peter
942021ba90 Update path to c++ internals includes for the 3.4 location.
No longer use make -k since the libraries target should build now.
Remove hacks for gnu/lib/libregex.
2004-09-16 01:41:11 +00:00
peter
70ad7978cb Add libmagic to the explicit build-tools list. 2004-09-16 00:22:59 +00:00
peter
2188870a35 Make libcrypto/libssh cross compile 2004-09-15 23:15:53 +00:00
peter
cea236373e Fix typo in rev 1.2 "-DNOINFOall" should be "-DNOINFO all" 2004-09-15 23:01:28 +00:00
des
52a20a8652 Comment lines may have leading whitespace.
PR:		71773
Submitted by:	Antoine Brodin <antoine.brodin@laposte.net>
2004-09-15 21:10:46 +00:00
rwatson
a18be84c1f Add a very basic README for tcpstream. 2004-09-13 16:53:40 +00:00
rwatson
ed6044d475 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
rwatson
29bafe6120 Add netrate (netreceive, netsend), a tool for generating (and sinking)
UDP packets of specified size at a fixed rate.  I've been using this for
netperf-related testing.
2004-09-10 19:09:50 +00:00
des
5d17d7721f Make the output more suitable for use in a frameset. 2004-09-08 16:04:38 +00:00
sam
7ad4b5615e new version of cryptotest (w/ only code from me)
Reviewed by:	imp
2004-09-07 18:35:00 +00:00
stefanf
6d0c938ba1 Add a regression test for <tgmath.h>. 2004-09-04 11:34:53 +00:00
ru
083ce78d85 Join the effort in simplifying this makefile. ;) 2004-09-03 06:18:52 +00:00
rwatson
621b91453c 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
rwatson
b9685c935d Don't override the rule used to build a binary by providing our own
compiler line.
2004-09-02 21:37:50 +00:00
des
ff465de13a Add -c option to preserve comments from GENERIC in the output. 2004-08-29 19:45:50 +00:00
des
044539800a Add genericize, a Perl script that converts a kernel config into something
more easily diffable against GENERIC.
2004-08-28 13:36:16 +00:00
obrien
7c80b82fd9 Update for latest make(1) changes.
Submitted by:	Steve Kargl <sgk@troutmask.apl.washington.edu>
2004-08-24 17:33:42 +00:00
rwatson
a52ebd899d 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
rwatson
45da4deacb 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
pjd
9602bb2cd9 Regression tests for 'verify reading' algorithm. 2004-08-22 16:26:09 +00:00
thomas
a4418fa3a8 Fix positional parameter reference to ${10}.
Fix target location for generation of fstab.

PR:	bin/70795
2004-08-21 20:21:49 +00:00
pjd
6ac179d92c Add regression test for the new "round-robin reading" feature. 2004-08-21 18:14:55 +00:00
pjd
2f1906caa2 Add description of raidtest tool. 2004-08-20 16:56:43 +00:00
pjd
bd124ccfb5 - fflush() standard output before fork()ing.
- Remove redundant 'break'.
2004-08-20 12:49:09 +00:00
pjd
7ee655e7b6 Add the raidtest tool, which can be used for performance tests of storage devices.
It uses random offsets, random requests size and random operation type (READ or
WRITE). It also allows to run many processes to send I/O requests in parallel.
2004-08-20 12:02:34 +00:00
des
573364fb62 Remove a couple of warnings and tweak an error message. 2004-08-20 10:23:22 +00:00
des
a05183855a Copy open_locked() from tinderbox.pl and use it to optionally acquire a
lock file upon startup.  If this fails, tbmaster will simply terminate.
2004-08-20 08:10:30 +00:00
des
736d98ed04 Print the patch file name in the warning message for missing patch files. 2004-08-19 07:31:10 +00:00
des
8f59c24c11 Clean up, add update_releng_[45].rc. 2004-08-19 07:28:30 +00:00
des
31b763b78b RELENG_5 is now available. 2004-08-19 07:27:42 +00:00
des
a36fbf13a8 Branches of interest are RELENG_4_{8,9,10}. 2004-08-19 07:27:21 +00:00
des
80d319927b Comment out the timeout setting; it doesn't work properly. 2004-08-19 07:26:31 +00:00
thomas
795682e917 Example configuration files for customize.sh.
Approved by:	re (scottl)
2004-08-16 22:55:51 +00:00
thomas
bf9c75f97d Add documentation of the newly-added user-configurable Makefile knobs.
Approved by:	re (scottl)
2004-08-16 22:52:40 +00:00
thomas
efc85186f0 Add example customization script, to be used through CUSTOMIZE Makefile knob.
Approved by:	re (scottl)
2004-08-16 22:46:58 +00:00
thomas
fd87ccf13c Properly identify the root filesystem to be used in /etc/fstab in each
slice of the flash card, ensuring that the loader will mount the root fs
from the booted slice by default.

Allow usage of FFS volume labels instead of hardcoded device names through
WITH_GEOM_VOL Makefile knob.

Approved by:	re (scottl)
2004-08-16 22:41:58 +00:00
dfr
597fea43c0 Remove some debug cruft from the Makefiles and make them ${.OBJDIR}
friendly.
2004-08-16 09:35:49 +00:00
pjd
b636607ce6 Add regression tests for GEOM_RAID3. 2004-08-16 09:09:23 +00:00
ru
cfe021dc2b Replaced COPTS by equivalent CFLAGS. 2004-08-13 14:21:49 +00:00
fjoe
520f0cfead Regen. 2004-08-13 09:56:22 +00:00
fjoe
4cdbb4e4ad Regression test for geom_uzip. 2004-08-13 09:53:52 +00:00
harti
d04c2b4f9d Add a regression test for the ATM call control stuff. 2004-08-13 09:27:21 +00:00
harti
883c945b5c 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
dds
145dad6e9d 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
thomas
e4fab58d9e Include the nanoBSD make.conf in the top-level nanoBSD Makefile, so
all configuration knobs (both system settings and nanoBSD-specific ones)
can be tuned by modifying a single file. Move KERNCONF default value
to make.conf.

Attempt to resolve CFGMASTER like CUSTOMIZE, first relative to ${.CURDIR},
then as an absolute path.

Allow optional additional arguments to be passed to the CUSTOMIZE script.
2004-08-08 13:05:03 +00:00
harti
f2baa8f5ba 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
harti
679c187578 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
dfr
8f4eb605aa This file is not suppose be be all one big comment :-(
Pointed out by: ssouhlal
2004-08-05 08:07:40 +00:00
harti
c6e3261d2f Add another test that checks for a working '+' command flag. 2004-08-05 07:24:06 +00:00
jmg
1031eb4832 add a set of scripts that I posted to -current last year. This makes
debugging kernels and kernel modules much easier.  It will automaticly
locate kernel source, extract kernel module information, and rerun gdb
to load kernel module symbol information (if available by compiling module
w/ debuging symbols).

I have not run these recently, so may need to be updated to work with
gdb6.  Feel free to fix as appropriate for -current.
2004-08-04 18:03:43 +00:00
pjd
be8c86ce12 Add regression test for "prefer" balance algorithm in MIRROR class. 2004-08-04 12:18:42 +00:00
harti
310a4a288d 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
rwatson
83a61f757e 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
dfr
c5d9c3618e Add regression tests for TLS. 2004-08-03 09:04:01 +00:00
pjd
adaa0482b4 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
jkh
b050f5c62b 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
jmg
90290e8fb7 add a command to calculate the ratios of cnt_hold and cnt_lock to locks
from mutex profiling...  This takes cnt_* and divides it by count, so
lower is better...

Sample command:
sh mtxpercent.sh | sort -rn +7 -8

SEE ALSO
	MUTEX_PROFILING(9)
2004-07-27 00:36:53 +00:00
pjd
3a2f13d5f5 Change naming scheme from /dev/<name>.stripe to /dev/stripe/<name>. 2004-07-26 16:10:27 +00:00
pjd
badd010cc7 Change naming scheme from /dev/<name>.concat to /dev/concat/<name>. 2004-07-26 16:08:32 +00:00
rwatson
c5b9f7aaed 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
silby
c7a11c5dc2 Add two more programs useful for testing the correctness of pipes. 2004-07-22 02:46:25 +00:00
tjr
397b943e7a Add test programs for mbsnrtowcs() and wcsnrtombs(). 2004-07-21 13:47:48 +00:00
silby
d38e57366f Make this test compile again and remove its dependency on sys/pipe.h. 2004-07-21 03:13:53 +00:00
silby
da5b50a882 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
tjr
d3949c6f08 Add a skeleton makefile that runs the tests out of libc/regex/grot. 2004-07-19 09:00:26 +00:00
tjr
c977042a24 Oops, test error behaviour of wctrans(), not wctype(). 2004-07-19 08:53:41 +00:00
das
2408fa162f While testing fe[gs]etround(), make sure FLT_ROUNDS reflects the
proper rounding mode as well.
2004-07-19 08:17:47 +00:00
rwatson
bd6355261f Explicitly specify ATPROTO_DDP constant rather than '0' when binding
a netatalk socket.  No functional change.
2004-07-17 17:16:16 +00:00
rwatson
6bd2f3e42b 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
rwatson
f1d92593c4 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
rwatson
0e83a77d19 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
dfr
4502cba2fd Experimental support for using doxygen to generate kernel documentation. 2004-07-11 16:13:57 +00:00
des
a4be987299 When cleaning house, don't try to remove what isn't there. 2004-07-09 13:15:32 +00:00
harti
e6739c645d Use and explicite 'sh' to run the scripts, because they may be checked
out non-executable.
2004-07-09 08:59:15 +00:00
ru
2f0477d084 Arguments to options aren't necessarily separated with whitespace.
Noticed by:	harti
2004-07-07 09:38:14 +00:00
mux
b4b2a2a696 Update the location of the Hart's database as well. 2004-06-28 11:46:48 +00:00
mux
252a2c97e5 The location of the Boemler's PCI database has moved. Update comments
to reflect reality.
2004-06-28 11:32:58 +00:00
sobomax
eed5bcdf34 Add qsort, mergesort and heapsort regression tests. 2004-06-25 12:31:12 +00:00
des
cb556a8fce Set up logging before trying to lock the sandbox; otherwise tbmaster(1)
will just log a mysterious "tinderbox returned exit code 35".
2004-06-22 08:34:46 +00:00
des
45b2494f0e Initialize $timeout to 0. 2004-06-21 15:08:17 +00:00
des
a3821a72ca Add a timeout after which tinderbox(1) will kill its children and exit. 2004-06-21 14:49:22 +00:00