Commit Graph

1136 Commits

Author SHA1 Message Date
flz
66b84ba9a1 Tweak mfc.pl to generate backout patchsets.
Approved by:	cperciva (mentor)
2006-06-09 10:59:54 +00:00
pjd
62a0cf2a9c Add regression tests for geli(8) authentication feature.
Supported by:	Wheel Sp. z o.o. (http://www.wheel.pl)
2006-06-06 06:46:51 +00:00
pjd
7515e1241c - Update regression tests after recent changes.
- Verify various sector sizes.
2006-06-06 06:44:19 +00:00
pjd
6cad615115 Add regression tests for IPsec. 2006-06-04 22:06:17 +00:00
maxim
d024980598 Output directory has gone, remove it from Makefile. 2006-05-31 11:22:15 +00:00
maxim
7215cab2bb Fix test for empty interpreter. 2006-05-31 11:15:16 +00:00
maxim
c711743829 o Add various regression tests for execve(2) syscall.
Obtained from:	NetBSD
2006-05-31 11:13:10 +00:00
maxim
cc936f1acc o Let getopt(3) report errors in command line arguments.
o If something is wrong with options, then output short usage help message.
o Output errstr returned from strtonum(3).

PR:		bin/98141
Submitted by:	Andrey Simonenko
2006-05-31 08:10:34 +00:00
matteo
74aa397f16 Make recoverdisk compile on amd64 and possibly other 64bit archs.
Bump WARNS to 6.

PR:		amd64/97566
Reviewed by:	phk@
MFC after:	3 days
2006-05-30 19:10:18 +00:00
des
a693fbc197 The tinderbox has moved to projcvs. 2006-05-30 14:31:09 +00:00
maxim
60db351ac4 o Add a collection of regression tests for ancillary (control)
data passing for unix domain sockets, stream and datagram.

There are 15 tests:

Test/Type of socket					STREAM	DGRAM
----------------------------------------------------------------------
Sending, receiving cmsgcred				   1      6
Receiving sockcred (listening socket has LOCAL_CREDS)	   2      n/a
Receiving sockcred (accepted socket has LOCAL_CREDS)	   3      n/a
Receiving sockcred					   n/a    7
Sending cmsgcred, receiving sockcred			   4      8
Sending, receiving timestamp				   5      9
Sending, receiving cmsgcred (no control data)		   10     13
Sending cmsgcred, receiving sockcred (no control data)	   11     14
Sending, receiving timestamp (no control data)		   12     15

Currently we pass 8 tests.  All the rest marked as TODO.

PR:		kern/90800
Submitted by:	Andrey Simonenko
2006-05-29 18:40:55 +00:00
des
92354b2c0b Add RELENG_5_5 to the 5.x lineup. 2006-05-29 14:51:52 +00:00
maxim
885f386276 o Test truncate(2) on fifo: it should ignore the request and
return success.

PR:		kern/98064
Submitted by:	Kirk Russell
2006-05-29 10:56:27 +00:00
netchild
a13a275341 Add a disclaimer regarding public/internal functions to every subsystem for
now.

Discussed on:			cvs-all
Helped with the wording:	"Ben Kaduk" <minimarmot@gmail.com>
2006-05-28 15:25:18 +00:00
netchild
db26138707 This is the kernel subsystem API documentation generation framework.
It uses doxygen to generate the API documentation. For each subsystem
a very small (about 20 lines with comments) subsystem specific Doxyfile
has to be written (have a look at the README for more). All common doxygen
options are specified in a separate file.

The framework is configured to not only generate the HTML version, but also
a PDF version (the paper size is hardcoded to DIN A4 currently and depending
on the subsystem you have to increase some limits in the latex configuration
of your system, the README tells more about this).

It also allows cross-references between the subsystems (it generates doxygen
tag files).

Currently the docs are generated in OBJDIR, but this may change after
coordination with doc@. The makefile is prepared to generate/move various
parts of the generated docs to different destinations.

TARGET_ARCH is respected and some env-vars are set for architecture specific
handling of the source (the README tells more).

Subsystems for which docs are generated:
 - cam                  - crypto                - dev_pci
 - dev_sound            - dev_usb               - geom
 - i4b                  - kern                  - libkern
 - linux                - net80211              - netgraph
 - netinet              - netinet6              - netipsec
 - opencrypto           - vm

Requested by:	gnn
2006-05-26 18:06:07 +00:00
rwatson
9d6028812e Use WARNS and rely on rules rather than an explicit target for the
test binary.

Reported by:	maxim
2006-05-25 10:46:43 +00:00
rwatson
967a0b7020 Add a basic regression test for sendfile() over TCP, which sends varying
lengths of headers and data and makes sure it receives about the right
number of bytes.
2006-05-25 09:50:14 +00:00
mr
8ebe6e7a45 make cryptotest compile after the latest changes to cryptodev.h 2006-05-24 15:40:46 +00:00
maxim
5363e73b8c o Correct comments: remove a reference to non-existent gdbinit.9 man page;
correct a path to the kernel build directory; gdb lost -k key.

Reviewed by:	grog
MFC after:	1 week
2006-05-22 07:12:25 +00:00
maxim
dca74a4f08 o Convert to Test::Harness testing infratructure. 2006-05-20 19:18:24 +00:00
trhodes
24beec77e1 Switch value back to values.
Requested by:	ru
2006-05-20 04:32:10 +00:00
pjd
ccff1ef1a2 Add missing stats.hst_nodesc statistics. 2006-05-18 13:22:44 +00:00
phk
537a82e24b Send the pcvt(4) driver off to retirement. 2006-05-17 09:33:15 +00:00
trhodes
b55b40b0db Some minor wording/description changes.
Reviewed by:	ru (two months ago)
2006-05-16 18:59:00 +00:00
maxim
a84ea57ca6 o A tiny regression test exposes bug in rip_disconnect(). 2006-05-14 22:03:00 +00:00
bms
c850937c46 Add multicast group join/leave functionality to IPv4 regression
test suite.
2006-05-14 14:11:54 +00:00
sobomax
8059d90140 o Add an option allowing to start search from some offset instead of offset 0;
o mesure distance between UFS1 and UFS2 superblocks independently.

MFC after:	1 week
2006-05-13 20:23:06 +00:00
des
6ca58541f8 Remove alpha from the HEAD lineup. 2006-05-13 08:25:31 +00:00
des
8ee51ef3f4 Forgot to add RELENG_6_1 here as well. 2006-05-12 19:06:22 +00:00
des
3747ef5341 Add RELENG_6_1 to the lineup. 2006-05-10 17:51:39 +00:00
jmg
f6945cb6b6 add a diff line so you can check your commit before hitting enter... 2006-05-08 06:47:59 +00:00
maxim
a75e2eb7ff o Take an account a media sectorsize for medium and bigsize calculation.
o Introduce -r and -w keys which allow to load and save a worklist.
o Replace README by man page.

PR:		bin/96677
Submitted by:	Ulrich Spoerlein
Approved by:	phk
MFC after:	1 month
2006-05-06 19:52:25 +00:00
sobomax
e841b983f9 o Make it possible to compile find-sb on non-FreeBSD system (MacOS X in my
case). Can be useful for recovering in some cases;

o use SBLOCK_UFS2 instead of SBLOCK_UFS1 to calculate likely start of the UFS2
  partition from the beginning of disk.
2006-05-05 00:19:24 +00:00
phk
3399511e52 Avoid coredumps if stddev cannot be computed (if all datapoints are identical)
Small cleanup of label printing.
2006-05-02 07:34:38 +00:00
netchild
c156a24d26 Add profile libs.
Submitted by:	Pawel Worach <pawel.worach@gmail.com>
2006-05-01 11:15:45 +00:00
pjd
88ec276caf For some time now, -i and -P options are mutually exclusive, there's even
a regression test init-i-P.t which asserts this, but it looks I forgot to
update nokey.t regression test.

MFC after:	1 day
2006-05-01 09:12:52 +00:00
dwmalone
b6a2964430 Add some new options to mac_bsdestended. We can now match on:
subject: ranges of uid, ranges of gid, jail id
	objects: ranges of uid, ranges of gid, filesystem,
		object is suid, object is sgid, object matches subject uid/gid
		object type

We can also negate individual conditions. The ruleset language is
a superset of the previous language, so old rules should continue
to work.

These changes require a change to the API between libugidfw and the
mac_bsdextended module. Add a version number, so we can tell if
we're running mismatched versions.

Update man pages to reflect changes, add extra test cases to
test_ugidfw.c and add a shell script that checks that the the
module seems to do what we expect.

Suggestions from: rwatson, trhodes
Reviewed by: trhodes
MFC after: 2 months
2006-04-23 17:06:18 +00:00
ru
cf16df537c Fix an obvious bug.
Submitted by:	Alex Lyashkov <umka@sevcity.net>
2006-04-18 12:37:44 +00:00
ru
4cee6aa3c7 Implications are auto-generated. 2006-04-13 10:37:29 +00:00
marcel
54e18e2978 MFp4:
o  Add mount and umount actions so that partitions can be in use.
o  Extend the testing of the add verb to include overlapping
   partitions.
o  Add tests for the remove verb. this includes tests to remove
   a partition when in use (i.e. is mounted).
o  Add a MD5 checksum to the output of the conf action so that
   it can be tested. Make sure the MD5 doesn't vary based on
   certain dynamic behaviour that is irrelevant to the output.
o  Add MD5 checksums to the expected result of conf actions.
2006-04-10 04:13:44 +00:00
marcel
6e4595cb7b MFp4:
Add support for read-write parameters. Allow an optional initializer
for read-write parameters. Print the value of those parameters on
success following the PASS.
2006-04-10 04:07:20 +00:00
rwatson
82e28c7b98 Add a simple regression test that creates and tears down route sockets,
and confirms that only SOCK_RAW works with socket(), and nothing works
with socketpair().
2006-04-09 14:48:38 +00:00
rwatson
22f4fba426 Add simple regression tests that creates UNIX domain sockets using
socket() and socketpair() of SOCK_STREAM and SOCK_DGRAM types.  It
also confirms that SOCK_RAW fails.
2006-04-09 14:30:11 +00:00
stefanf
209025405d Test that variable assignments preceding special built-ins affect the current
shell environment, eg after "VAR=val eval" VAR remains set.  Currently fails
but will be implemented soon.
2006-04-09 09:38:29 +00:00
des
b72fba923c Don't select a default value for $machine until after we've examined $arch.
Noticed by:	mjacob
2006-04-07 15:19:19 +00:00
netchild
65e207f97b Milosz (sorry for not using the right 'l', it will not display corretly
in the commit log) submitted support for some NO_* knobs for delete-old*
and check-old. I converted it to the new WITHOUT_* knobs (more correctly:
MK_*) and added some dummy ones so that people can see what's missing.

Volunteers can have a look at http://phk.freebsd.dk/misc/build_options/
for a list of files.

The location looks a little bit odd to me, but I don't care about the
color of this bikeshed and follow the suggestion of our build
infrastructure guru to place it "somewhere under src/tools/ please". [1]
The build/mk/ directory looks more sane to me than the other ones there.

Submitted by:	milosz.galazka@gmail.com
Suggested by:	ru [1]
2006-04-03 18:42:44 +00:00
rwatson
57fde1acd9 Add a second pass to the close-before-accept test using a call to the
tcp drop sysctl.  This should exercise the ECONNABORTED accept case.
2006-04-03 11:57:41 +00:00
rwatson
89f9606562 Add regression test for tcpdrop sysctl. 2006-04-03 11:34:36 +00:00
rwatson
f07835403d Add a regression test to exercise the case where accept() is called and
the next waiting socket has had a close on the remote endpoint already.
2006-04-03 10:08:35 +00:00
stefanf
11fa827525 Add test cases that check utility syntax errors and redirection errors. For
special built-in utilities they must terminate the shell, for other
utilities only a error message shall be written.  We currently fail both
tests.
2006-04-02 19:02:49 +00:00