Commit Graph

1253 Commits

Author SHA1 Message Date
dds
c1bff9358c Add the examples from the manual page. 2006-11-06 15:05:03 +00:00
dds
5f9d5575d3 Updated results for bin/68981
PR:		bin/68981
2006-11-06 15:00:37 +00:00
dds
162bf8c18e Regress.out is now regress.x.out. 2006-11-06 08:49:43 +00:00
dds
785f45c300 Test the handling of supplied and default parameters. 2006-11-06 08:39:52 +00:00
stefanf
5d1b410c9d Add regression tests for PR 105078. 2006-11-05 18:41:23 +00:00
n_hibma
3d639ea5f8 Only use the filename part of the kernel configuration file as an argument to
KERNCONF after the file has been copied to the sys/${ARCH}/conf directory. This
allows the use of one kernel config file for multiple images. E.g.:

	NANO_KERNEL=../../../../software/nanobsd/default/SOEKRIS

MFC: after 6.2
2006-11-02 20:43:20 +00:00
jb
8f5ff1bf04 Add a build option to support WITH_CDDL and WITHOUT_CDDL, defaulting
to WITH_CDDL.

This option enables building code that is licensed under Sun's CDDL.
The DTrace code is licensed that way, so by default it will get built
unless the WITHOUT_CDDL option is used.

There is another build toggle, NO_CTF, which turns off execution of
ctfconvert and ctfmerge in sys.mk, but this can't be implemented as
WITH_/WITHOUT because bsd.own.mk isn't included in all Makefiles and
sys.mk is included automatically by make.
2006-11-01 09:02:11 +00:00
julian
ca6370b606 Reworking of how to add ports.
submitted by: Jean Milanez Melo
2006-11-01 01:25:51 +00:00
pjd
3a5ac9f9e0 Add fs_unrefs field to the super block structure.
Sponsored by:	home.pl
2006-10-31 22:18:33 +00:00
julian
cc337af506 Add configuration stubs for adding package derived files to the various
sample configurations.
Submitted by Jeremie Le Hen and tested by Jean Milanez Melo.
2006-10-30 19:50:01 +00:00
julian
75e5d4bb24 Add some code to support including files ffrom packages in the image.
Submitted by: Jeremie Le Hen and tested by Jean Milanez Melo.
2006-10-30 19:47:05 +00:00
julian
680b3eb932 Might as well move to the right place if we are not there.
The whole question of how much to rely on teh sources being in /usr/src
needs visiting.
2006-10-11 21:46:53 +00:00
julian
4104af0125 let the user know what configurations are available when asking for it. 2006-10-11 21:39:19 +00:00
maxim
d81c54abb9 o Grammar.
Submitted by:	kris
2006-10-09 06:47:08 +00:00
maxim
3e3b20daad o Enable test-sparceaout test since alc@ has fixed the panic in rev. 1.229
sys/vm/vnode_pager.c.
cVS: ----------------------------------------------------------------------
2006-10-09 05:31:37 +00:00
julian
4503c0ed68 Large rewrite of the tinybsd script.
This allows the user to specify that the root filoesystem should be
an MFS or teh actual medium itself.
Also a new command syntax, along with an interactive mode by default,
with crossinvocation memory of the last used values as defaults for the
current invocation.

Submitted by:jmeloatfreebsdbrasil,com-br
2006-10-04 22:16:40 +00:00
ru
e6127938f3 Revise markup. 2006-09-30 17:21:37 +00:00
ru
6e2dfd0e20 Removed libc_r build support. 2006-09-30 11:32:46 +00:00
ru
32c63e8e58 Initializate "offset" variable to zero; otherwise, if not using
the -o option, it might contain garbage.

MFC after:	1 day
2006-09-28 12:33:36 +00:00
julian
ed1ef715b2 Slight tunups to the config files. 2006-09-21 22:17:04 +00:00
julian
bedb0044a6 In the spirit of nanoBSD and PicoBSD, add TinyBSD.
Submitted by jmeloatfreebsdbrasil,com-br
(Jean Milanez Melo)
As PicoBSD becomes slightly less useful, TinyBSD fills the gap below nanoBSD.
2006-09-20 22:24:20 +00:00
pjd
4524e2abf4 Move readonly.t regression tests file to where it belongs.
I accidentally added it to a wrong directory.
2006-09-19 11:28:06 +00:00
pjd
57e3a9f406 Add regression tests for 'geli configure' subcommand.
MFC after:	1 week
2006-09-16 10:44:33 +00:00
pjd
7eae1b3fd5 Regression tests for read-only option (attach -r).
MFC after:	1 week
2006-09-16 09:30:24 +00:00
rwatson
bd76450bdb dd a series of regression tests to validate that privilege requirements are
implemented properly for a number of kernel subsystems.  In general, they
try to exercise the privilege first as the root user, then as a test user,
in order to determine when privilege is being checked.

Currently, these tests do not compare inside/outside jail, and probably
should be enhanced to do that.

Sponsored by:	nCircle Network Security, Inc.
Obtained from:	TrustedBSD Project
2006-09-13 09:05:39 +00:00
ru
4c76840a35 Document the new know, WITHOUT_ASSERT_DEBUG. 2006-09-11 13:55:27 +00:00
ru
06c361717d - Utilize the "showconfig" top-level target.
- Pass __MAKE_CONF=/dev/null to get a pristine output.
2006-09-11 13:39:44 +00:00
rwatson
ecf4fc184b Enforce the compile-time threads limit at run-time, so that a high thread
count argument doesn't cause a segfault or memory corruption when the
compile-time array is overrun.
2006-09-02 08:25:40 +00:00
phk
40d4b9bdbe Improve input parsing:
Add "-C <column>" and "-d <delims>" options to chop up input lines.

Make '#' a comment character, rest of line is ignored.

Submitted by: Dmitry Morozovsky <marck@rinet.ru>
2006-08-28 08:27:02 +00:00
ru
4d582ffe09 Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
simon
053be5b222 Move the setup of "diskless" /etc magic files from install_etc() to a
separate function which is called right after install_etc().  This makes
it simpler to (ab)use nanobsd.sh as a framework to build more normal
FreeBSD images where a normal /etc is used, since setup_nanobsd_etc()
can just be redefined.

OK'ed in principle by:	phk
MFC after:		1 week
2006-08-15 21:59:33 +00:00
sam
22a881785b checkpoint new version 2006-08-10 19:01:16 +00:00
keramida
3ac57dcacd Fix some minor nits in the README file of wesside
Reviewed by:   sam, Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-07 17:08:05 +00:00
sam
08914d1218 add wesside 2006-08-07 00:05:32 +00:00
sam
f81ca90c9f another tool that uses the raw tx api
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-07 00:05:04 +00:00
sam
c149c8077e use proper tx series
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-06 23:50:56 +00:00
sam
eb0a6f2b06 make it work after the api change
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-05 18:21:04 +00:00
sam
89fb95df13 hook packet injection tools up 2006-08-05 05:20:40 +00:00
sam
9cfa19eab8 test programs for 802.11 packet injection
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-05 05:18:03 +00:00
sam
68f1c8859e 802.11 packet injection test tool
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-05 05:13:31 +00:00
sam
6c8c3a52c9 crude stumbler using raw packet api's
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-05 05:12:03 +00:00
sam
63b1f1ffac raw tx stat 2006-08-05 05:09:20 +00:00
jb
7cec994cf0 Fix for architectures where sizeof(void *) > sizeof(int). 2006-08-04 21:45:08 +00:00
netchild
b4ead1ad74 Fix build when .CURDIR != .OBJDIR.
Noticed by:	"Alexander Mogilny" <sg@astral.ntu-kpi.kiev.ua>
2006-08-02 15:24:59 +00:00
yar
c2b4172f67 Tell the bitter truth that WITHOUT_GNU and WITHOUT_PAM
don't have any effect now.
2006-07-31 13:53:27 +00:00
yar
11ca32ce47 Document some more src.conf(5) options:
WITHOUT_GNU, WITHOUT_NS_CACHING, WITHOUT_PAM.

Noticed by:	src/tools/build/options/makeman
2006-07-31 13:08:47 +00:00
yar
2d54f27d1f Actually skip over undocumented options with "continue"
to avoid artifacts in the manpage generated.  Previously
an orphaned paragraph on dependencies of such an option
would appear.
2006-07-31 12:41:13 +00:00
yar
8282790501 Extend the MK_INET6 section by rescue/ping6 and the manpages. 2006-07-29 06:29:07 +00:00
simon
aa2529c015 Add a test program which performs some very basic tests of libmp(3).
It is by no means expected to perform a complete test of the library
for correctness, but is meant to test the API to make sure libmp (or
libcrypto) updates don't totally break the library.
2006-07-28 16:00:59 +00:00
thomas
f27e5b6199 'make distribution' must be run from src, not src/etc, so that the proper
set of /usr/share/mk/* is available. This is necessary to build a 7.x
NanoBSD image on a 6.x host.

Reviewed by:	phk
2006-07-28 14:37:38 +00:00
yar
a487647bea Do not forget about INET6 and MK_INET6_SUPPORT. 2006-07-28 10:59:27 +00:00
yar
a7f9881068 Populate the MK_INET6 block. 2006-07-28 10:16:24 +00:00
simon
66c6b22daa Add Memory Corp 512MB CF Flash.
MFC after:	3 days
2006-07-26 20:35:52 +00:00
rwatson
8ccc47a963 Add a test case for closing a UDPv6 socket that has been connected to
the IPv6 loopback address.

Warns ?= 2.
2006-07-19 12:54:14 +00:00
rwatson
42d0cba86a Add very basic regression test for netinet6: create and close raw,
UDP, and TCP IPv6 sockets.
2006-07-19 12:10:33 +00:00
marcel
f457417c4c Add regression tests of the emulation of the long branch conditional form.
These tests can obviously only be run on Merced processors, as they don't
implement the long branch.
2006-07-17 00:27:12 +00:00
thomas
a2b2987edd When creating the NanoBSD disk image, install boot blocks from the
newly-built world, in preference to those from the host system.

Reviewed by:	phk
2006-07-15 20:41:38 +00:00
phk
418bc50150 Create the diskless magic files in /etc during the install_etc() step
instead of setup_nanobsd(), because this gives customize tasks a chance
to fiddle the details.

Inspired & tested by:	Jordan Coleman <jordan@JordanColeman.com>
2006-07-13 14:06:09 +00:00
maxim
cb40ca01c8 o style.Makefile(5): WARNS= -> WARNS?=. 2006-07-09 11:51:14 +00:00
rwatson
f47cfe1f24 When extending a file with truncate, check that newly added bytes have
a value of 0 in the extended region.

Make sure that we get EINVAL back if we try to truncate a read-only
file descriptor.
2006-07-09 10:56:36 +00:00
rwatson
6d0cdb6a1e Add regression tests to make sure that attempting to call ftruncate() on
various non-file objects fails.
2006-07-09 10:43:31 +00:00
rwatson
2d926cc233 Add very basic ftruncate() regression test, with a comment rather more
thorough than the tests regarding what should be tested.
2006-07-09 10:19:07 +00:00
netchild
4ee1766788 Add (missing) and remove (obsolete) .m files. 2006-07-08 12:32:42 +00:00
sam
76a217bd1e o fix join/rejoin format
o add netbsd portability glue

MFC after:	2 weeks
2006-06-30 19:06:18 +00:00
sam
2b0185af61 dump new cabq stats 2006-06-23 18:48:44 +00:00
obrien
101bc06b44 Fix type warnings on 64-bit machines. 2006-06-21 09:52:37 +00:00
sam
33e3c668d4 ipw statistics tool 2006-06-20 00:26:35 +00:00
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