Commit Graph

1293 Commits

Author SHA1 Message Date
Sam Leffler
421e1cce17 create empty opt_ah.h for compiling athstats.o; it just needs
the PHY definitions and not the descriptor so it doesn't matter
if it's correct relative to the hal.o
2007-02-02 02:39:56 +00:00
Rong-En Fan
438e97c073 Remove old libmytinfo link.
Approved by:	delphij (mentor)
Requested by:	ache
2007-02-01 08:45:27 +00:00
Pawel Jakub Dawidek
65e2b8ca1f Simple README file which shows how to use fstest. 2007-01-28 00:10:28 +00:00
Xin LI
9a9ea25f4a Replace the GNU gzip with a slightly modified NetBSD gzip. The
NetBSD version is a feature-to-feature re-implementation of GNU
gzip using the freely-redistributable zlib and this version is
expected to be mostly bug-to-bug compatible with the GNU
implementation.

 - Because this is a piece of mature code and we want to make
   changes so it is added directly rather than importing to
   src/contrib.
 - Connect newly added code to src/usr.bin/ and rescue/rescue
   build.
 - Disconnect the GNU gzip code from build for now, they will
   be eventually removed completely.
 - Provide two new src.conf(5) knobs, WITHOUT_BZIP2_SUPPORT and
   WITHOUT_BZIP2.

Tested by:	kris (full exp-7 pointyhat build)
Approved by:	core (importing a 4-clause BSD licensed file)
Approved by:	re (adding new utility during -HEAD code slush)
2007-01-26 10:19:08 +00:00
Pawel Jakub Dawidek
b20669bdef MFp4: - When new object is created, it's group ID can be set to process'
effective group ID or to group ID of its parent directory.
	- Add some comments from POSIX.
	- Verify that after successful O_TRUNC open, size is equal to 0.
2007-01-25 20:50:02 +00:00
Pawel Jakub Dawidek
33e0d352b2 MFp4: When user is not a member of the group which owns a file, even if
he is the file's owner, he can't set set-gid bit.
	POSIX requires to return 0 and clear the bit, but FreeBSD returns
	EPERM for UFS in such case. For now do the same in ZFS.
2007-01-25 20:48:14 +00:00
Jeff Roberson
0482a607bc - Add a horrible bit of code to detect tsc differences between processors.
This only works if there is no significant drift and all processors are
   running at the same frequency.  Fortunately, schedgraph traces on MP
   machines tend to cover less than a second so drift shouldn't be an issue.
 - KTRFile::synchstamp() iterates once over the whole list to determine the
   lowest tsc value and syncs adjusts all other values to match.  We assume
   that the first tick recorded on all cpus happened at the same instant to
   start with.
 - KTRFile::monostamp() iterates again over the whole file and checks for
   a cpu agnostic monotonically increasing clock.  If the time ever goes
   backwards the cpu responsible is adjusted further to fit.  This will
   make the possible incorrect delta between cpus as small as the shortest
   time between two events.  This time can be fairly large due to sched_lock
   essentially protecting all events.
 - KTRFile::checkstamp() now returns an adjusted timestamp.
 - StateEvent::draw() detects states that occur out of order in time and
   draws them as 0 pixels after printing a warning.
2007-01-24 21:19:56 +00:00
Jeff Roberson
4a2e6a080b - Print clock information so we know if something is not reported correctly
from the tsc.
 - Set skipnext = 1 for yielding and preempted events so we don't show the
   event that adds us back to the run queue.  It used to be 2 so we would
   skip the ksegrp run queue addition and the system run queue addition
   but the ksegrp run queue has gone away.
 - Don't display down to nanosecond resolution for scheduling events right
   now.  This can sometimes cause a division by zero.
2007-01-23 22:19:27 +00:00
Pawel Jakub Dawidek
53feb1d422 Add 3436 file system regression tests in 184 files.
Almost all regression tests are based on very flexible fstest tool.
They verify correctness (POSIX conformance) of almost all file
system-related system calls.

The motivation behind this work is my ZFS port and POSIX, who doesn't
provide free test suites.

Runs on:	FreeBSD/UFS, FreeBSD/ZFS, Solaris/UFS, Solaris/ZFS

To try it out:

	# cd fstest
	# make
	# find tests/* -type d | xargs prove
2007-01-17 01:42:12 +00:00
Robert Watson
0b71cfd780 Ignore EINPROGRESS error on TCP connect(), and pick up the result of the
non-blocking connect later using select().  This case didn't trigger on
my UP test box, but did on Peter's SMP test box.

Spotted by:	peter
2007-01-12 22:17:31 +00:00
Robert Watson
581f1f9421 Add a regression test for sending and writing zero bytes to sockets of
various types, as well as pipes and fifos for good measure.  RELENG_6
currently passes all of these tests, but 7-CURRENT fails 0-byte writes
and sends on all stream socket types (and fifos, as they are based on
stream sockets).

Bumped into by:	peter
Diagnosed by:	jhb
Problem of:	andre
2007-01-12 21:49:36 +00:00
Joel Dahl
80ffc9b73b Fix typos. 2007-01-12 08:44:55 +00:00
Sam Leffler
30a270b44b add man page 2007-01-12 05:36:28 +00:00
Sam Leffler
c31d92bb3d fix typo
MFC after:	1 week
2007-01-12 05:36:17 +00:00
Warner Losh
0a091fb1cd Remove 3rd clause, per email from bms 2007-01-11 05:00:30 +00:00
Stefan Farfeleder
9bb8020ab3 Add regression tests for exec.c rev 1.30. 2007-01-11 00:25:20 +00:00
David Schultz
2a5f50a641 Fix a few of the tests so that correct implementations actually pass them. 2007-01-07 09:25:22 +00:00
David Xu
1d6328e12b Fix compiling. 2007-01-06 11:32:15 +00:00
Jeff Roberson
93fb94795c - Add colors for up to 8 cpus. 2007-01-06 04:40:44 +00:00
David Schultz
f56f1d7735 Remove the test that ensures that when the string "nan(...)" is converted
to floating-point, the result is a quiet NaN.  The current implementation
may return a signaling NaN, and the vendor has no plans for changing this,
for reasons explained in the comment I added.
2007-01-03 21:28:26 +00:00
David Schultz
3f29b2ef51 Fix cut-and-paste bugs in the regression tests. 2007-01-03 05:38:08 +00:00
Scott Long
7e5459ee79 Expand a comment for clarity and fix a missed substitution. 2007-01-02 04:51:26 +00:00
Scott Long
0b51477603 Add a simple tool for checking the command queues in the MFI driver. Also add
a simple wrapper for running the MegaCLI tool.
2007-01-01 23:50:04 +00:00
Bruce M Simpson
a86ec33820 Drop all received data mbufs from a socket's queue if the MT_SONAME
mbuf is dropped, to preserve the invariant in the PR_ADDR case.

Add a regression test to detect this condition, but do not hook it
up to the build for now.

PR:             kern/38495
Submitted by:   James Juran
Reviewed by:    sam, rwatson
Obtained from:  NetBSD
MFC after:      2 weeks
2006-12-23 21:07:07 +00:00
David Xu
56073c9eac initialize mutex and cv. 2006-12-06 00:03:42 +00:00
David Xu
a3f452e8d8 Fix spelling. 2006-12-05 05:31:49 +00:00
David Xu
e986eeec92 Add a test for pthread's cv and cancellation. 2006-12-05 05:14:56 +00:00
Diomidis Spinellis
894407d359 New test cases demonstrating fixed bugs, and the reason why
fmtcheck can't be used.
2006-12-03 19:18:41 +00:00
Yaroslav Tykhiy
b1a7dc88f0 /usr/sbin/faithd is an INET6-specific tool, and now it won't be built
if MK_INET6 is "no", so add it to the MK_INET6 block.

PR:             bin/100805 (audit-trail)
2006-11-27 13:33:31 +00:00
Nick Hibma
e79fb5add3 Shorten the KERNCONF filename to the basename in the install target as
well as in the build target, although it is not used in this target.
2006-11-27 12:16:03 +00:00
Sam Leffler
cb3b333294 add rate knob for net80211 rate control modules
MFC after:	1 month
2006-11-26 19:56:25 +00:00
Alexander Leidinger
dc03b7f41f ah_if.m was removed a while ago 2006-11-26 14:41:17 +00:00
Xin LI
0ff56caba8 Make use of mk/ files from a fresh source tree, rather than
the currently installed ones.  This makes it possible to use
the script against Makefiles that uses bsd.own.mk on an old
system.

Submitted by:	bushman
2006-11-24 09:07:26 +00:00
Yaroslav Tykhiy
a6afe5ada8 Fix and extend the -j option to pkill/pgrep WRT the jail
wildcard specifications.  Earlier the only wildcard syntax
was "-j 0" for "any jail".  There were at least
two shortcomings in it:  First, jail ID 0 was abused; it
meant "no jail" in other utils, e.g., ps(1).  Second, it
was impossible to match processed not in jail, which could
be useful to rc.d developers.  Therefore a new syntax is
introduced: "-j any" means any jail while "-j none" means
out of jail.  The old syntax is preserved for compatibility,
but now it's deprecated because it's limited and confusing.

Update the respective regression tests.  While I'm here,
make the tests more complex but sensitive:  Start several
processes, some in jail and some out of jail, so we can
detect that only the right processes are killed by pkill
or matched by pgrep.

Reviewed by:	gad, pjd
MFC after:	1 week
2006-11-23 11:55:17 +00:00
Craig Rodrigues
d203e63281 Remove references to mount_devfs, mount_fdescfs, mount_linprocfs,
mount_procfs, and mount_std.

Reminded by:	ru
2006-11-22 00:26:55 +00:00
Jung-uk Kim
b8aa271342 Fix message size tests for msgsnd(3) and msgrcv(3). msgsz is the length of
actual message and it should not include size of message type.
2006-11-16 19:51:10 +00:00
Benno Rice
262f6969de Add the Transcend 2GB card specs. 2006-11-16 08:04:29 +00:00
Robert Watson
57c4583f70 Add a short regression test to try to exercise races in the non-atomic
nature of implied connect via sendto().  Oddly, uipc_usrreq.c implements
this for stream sockets, but doesn't set the flag in its protocol
definition so that it can actually be used.  As such, the stream test is
implemented but doesn't run for now.
2006-11-15 12:43:45 +00:00
Maxim Konovalov
52fc06f0f2 o Indent by tab. 2006-11-11 18:45:20 +00:00
Maxim Konovalov
08a8d24059 o Add several regression tests for dup(2), dup2(2) and fcntl(F_DUPFD).
Obtained from:	OpenBSD
2006-11-11 18:32:50 +00:00
Bruce M Simpson
0eea0451fe Update copyright date.
MFC after:	3 weeks
2006-11-09 11:45:44 +00:00
Bruce M Simpson
842259405d Use C99 types.
MFC after:	3 weeks
2006-11-09 11:42:38 +00:00
Bruce M Simpson
6774121741 Rewrite the format of pirtool output to match what the kernel currently
prints out if bootverbose is set. This is to facilitate the code being
removed from the kernel at a later date.

While we're here, fix the __packed structures, and add some other
PCI interrupt router IDs.

Submitted by:	jhb (with some tweaks)
MFC after:	3 weeks
2006-11-09 11:39:34 +00:00
Jung-uk Kim
c5f41de11c Use z modifier for size_t and ssize_t. 2006-11-07 23:28:30 +00:00
Diomidis Spinellis
0dc97cf078 Add the examples from the manual page. 2006-11-06 15:05:03 +00:00
Diomidis Spinellis
3b5adecb00 Updated results for bin/68981
PR:		bin/68981
2006-11-06 15:00:37 +00:00
Diomidis Spinellis
44d251df7a Regress.out is now regress.x.out. 2006-11-06 08:49:43 +00:00
Diomidis Spinellis
2c75d9c7ba Test the handling of supplied and default parameters. 2006-11-06 08:39:52 +00:00
Stefan Farfeleder
44c892dac2 Add regression tests for PR 105078. 2006-11-05 18:41:23 +00:00
Nick Hibma
1a82ee2eb9 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
John Birrell
87d0f81ce7 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 Elischer
e0558bb990 Reworking of how to add ports.
submitted by: Jean Milanez Melo
2006-11-01 01:25:51 +00:00
Pawel Jakub Dawidek
b9116fb333 Add fs_unrefs field to the super block structure.
Sponsored by:	home.pl
2006-10-31 22:18:33 +00:00
Julian Elischer
d49da17b5e 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 Elischer
d12c591b20 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 Elischer
0f49c887b9 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 Elischer
aca334fe83 let the user know what configurations are available when asking for it. 2006-10-11 21:39:19 +00:00
Maxim Konovalov
13fff3d67b o Grammar.
Submitted by:	kris
2006-10-09 06:47:08 +00:00
Maxim Konovalov
6bc39031ef 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 Elischer
b1a49547a0 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
Ruslan Ermilov
6b4674389d Revise markup. 2006-09-30 17:21:37 +00:00
Ruslan Ermilov
2e97500669 Removed libc_r build support. 2006-09-30 11:32:46 +00:00
Ruslan Ermilov
3b9de5ed0c 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 Elischer
8d2b600b3e Slight tunups to the config files. 2006-09-21 22:17:04 +00:00
Julian Elischer
1474f88f74 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
Pawel Jakub Dawidek
b58ab5f02a 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
Pawel Jakub Dawidek
0608d9863a Add regression tests for 'geli configure' subcommand.
MFC after:	1 week
2006-09-16 10:44:33 +00:00
Pawel Jakub Dawidek
b88743e637 Regression tests for read-only option (attach -r).
MFC after:	1 week
2006-09-16 09:30:24 +00:00
Robert Watson
9fa5f6b4b9 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
Ruslan Ermilov
aa5bab2179 Document the new know, WITHOUT_ASSERT_DEBUG. 2006-09-11 13:55:27 +00:00
Ruslan Ermilov
c1e29f712e - Utilize the "showconfig" top-level target.
- Pass __MAKE_CONF=/dev/null to get a pristine output.
2006-09-11 13:39:44 +00:00
Robert Watson
ce105e8f5a 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
Poul-Henning Kamp
fd0232603d 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
Ruslan Ermilov
2b46c64c9c Remove alpha left-overs. 2006-08-22 08:03:01 +00:00
Simon L. B. Nielsen
22eb0575f2 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 Leffler
2f549d72a2 checkpoint new version 2006-08-10 19:01:16 +00:00
Giorgos Keramidas
bfbb8643cf 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 Leffler
c4aa5369ba add wesside 2006-08-07 00:05:32 +00:00
Sam Leffler
b9d1573c05 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 Leffler
86bf2b45da use proper tx series
Submitted by:	Andrea Bittau <a.bittau@cs.ucl.ac.uk>
2006-08-06 23:50:56 +00:00
Sam Leffler
a323dd4352 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 Leffler
0c65897149 hook packet injection tools up 2006-08-05 05:20:40 +00:00
Sam Leffler
2137fdb5ec 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 Leffler
7c37a38d03 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 Leffler
b86de580a1 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 Leffler
3b8a5ed28a raw tx stat 2006-08-05 05:09:20 +00:00
John Birrell
ffc48c2814 Fix for architectures where sizeof(void *) > sizeof(int). 2006-08-04 21:45:08 +00:00
Alexander Leidinger
69f1cb3c91 Fix build when .CURDIR != .OBJDIR.
Noticed by:	"Alexander Mogilny" <sg@astral.ntu-kpi.kiev.ua>
2006-08-02 15:24:59 +00:00
Yaroslav Tykhiy
ed4ab6bbe9 Tell the bitter truth that WITHOUT_GNU and WITHOUT_PAM
don't have any effect now.
2006-07-31 13:53:27 +00:00
Yaroslav Tykhiy
f7ee05c00b 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
Yaroslav Tykhiy
c3b08cc667 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
Yaroslav Tykhiy
c3e63d569c Extend the MK_INET6 section by rescue/ping6 and the manpages. 2006-07-29 06:29:07 +00:00
Simon L. B. Nielsen
6e0d070709 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 Quinot
42f470c0e5 '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
Yaroslav Tykhiy
cd5297916c Do not forget about INET6 and MK_INET6_SUPPORT. 2006-07-28 10:59:27 +00:00
Yaroslav Tykhiy
9da33b3565 Populate the MK_INET6 block. 2006-07-28 10:16:24 +00:00
Simon L. B. Nielsen
b78ee6d0ff Add Memory Corp 512MB CF Flash.
MFC after:	3 days
2006-07-26 20:35:52 +00:00
Robert Watson
13496464e5 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
Robert Watson
9b498b31a9 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 Moolenaar
f2f0337e84 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