Commit Graph

1290 Commits

Author SHA1 Message Date
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
rwatson
19f9c1efe4 When running the second part of the test, kill off the server process from
the first part before starting, or the TCP port we want to bind may be in
use still.  Sleep for a short period between tests.

Use SIGTERM instead of SIGKILL.
2006-04-02 11:09:37 +00:00
rwatson
02d5fc2644 Pass the right pid into the parent and child tasks so that when a test
fails, we kill the right partner process.
2006-04-02 11:03:05 +00:00
rwatson
628ed75adb Add makefile for tcpsocktimewait missed in previous commit. 2006-04-02 10:50:46 +00:00
rwatson
85222c8750 Add a short regression test that triggers a TCP socket to enter time wait
while the socket is still open; one variant closes the socket while in
time wait, and a second lets time wait expire while the socket is open.
2006-04-02 00:07:38 +00:00
phk
6d14bcd43f Overlooked that src.conf was built from here. 2006-04-01 18:34:30 +00:00
des
1fff38c590 Reflect progress in process title. 2006-03-27 10:29:12 +00:00
rwatson
ddc54b9056 Add spxabort, a simple netipx/spx regression test that triggers
pru_abort() by closing a listen socket while completed connections are
presenting in its listen queue.  Unfortunately, it's difficult to
trigger the other two pru_abort() cases using user APIs, so they are
not covered by this test.
2006-03-27 00:03:37 +00:00
rwatson
6e86a80ea8 Add simple regression test to ping pong a data packet over SPX in stream
mode.  Support both connection via connect() and sendto(), but don't
compile in sendto() for now, since netipx doesn't appear to actually
implement that (doh).
2006-03-26 19:10:27 +00:00
rwatson
5d9ced7701 Add a simple IPX datagram regression test, which opens two IPX datagram
sockets, binds a local port, sends a datagram, and confirms that it is
received.
2006-03-26 18:25:53 +00:00
rwatson
deeedd413a Add a short README with configuration hints to get the netipx regression
tests up and running.  This is likely a message to myself in six months
when I've completely forgotten how.
2006-03-26 17:42:04 +00:00
simon
ba493bcbb1 Use tr(1) to lowercase strings in a way which works with all locales.
Approved by:	cperciva (mentor)
2006-03-26 17:17:10 +00:00
rwatson
73eedc13f0 Modify ipxsocket regression test to create and close sockets several
times, with variable length sleeps between socket() and close().  This
will help to ensure that IPX/SPX timers fire while the sockets are
open, and hence have PCB's on the IPX pcb list, so that if timers are
going to stumble over PCB types they don't expect, it will happen as
part of this test.
2006-03-26 15:49:35 +00:00
rwatson
72eb76f920 Add simple ipxsocket regression test: open, and close, various IPX socket
types supported by the FreeBSD netipx implementation.
2006-03-26 01:58:39 +00:00
phk
c01e3b6752 Get the MK_FOO column right 2006-03-25 21:51:46 +00:00
phk
4fb406f9ac Update build survey scripts 2006-03-25 10:50:40 +00:00
ru
af255f67e3 Fix generation of '$FreeBSD$'. 2006-03-21 09:08:45 +00:00
ru
3b286eea2c Slightly better description. 2006-03-21 09:06:24 +00:00
ru
22df825526 A tool to generate the src.conf(5) manpage. 2006-03-21 09:05:42 +00:00
des
dfbe8b93f3 Open the lock file write-only. 2006-03-21 08:08:58 +00:00
ru
f763ba6c8d Prepare to autogenerate the src.conf(5) manpage. 2006-03-21 07:50:50 +00:00
ru
c18241351a Remove an outdated README. 2006-03-21 07:26:51 +00:00
rwatson
65c4a2a9dc Merge Perforce change 93572 from TrustedBSD audit3 branch:
Simple audit pipe ioctl regression test.

Obtained from:	TrustedBSD Project
2006-03-19 15:47:53 +00:00
rwatson
cbcf9b2ad9 Change s_net to s_node when printing the destination address. 2006-03-17 20:14:25 +00:00
ru
38ea5a1166 NO_MAN is not needed here. 2006-03-16 15:18:17 +00:00
ru
30cc3ea988 Style: NO_MAN doesn't need any value. 2006-03-15 10:46:38 +00:00
phk
5a08101277 In addition to -b (suppress builds) add -k (suppress kernel build) and
-w (suppress world).
2006-03-09 14:43:07 +00:00
ume
940db6a9cd NOMAN --> NO_MAN 2006-03-07 14:26:17 +00:00
wkoszek
59f250987e Allocate proper amount of memory. Otherwise, we pass the end of a buffer,
thus having unpleasant warning. Was found by jemalloc redzone code.

Reviewed by:	rwatson
Approved by:	cognet (mentor)
2006-03-06 22:31:25 +00:00
sam
cb3143e5c0 fixups
Submitted by:	ru
MFC after:	3 days
2006-03-06 21:51:27 +00:00
sam
ea2809ea3b fix for non-i386/amd64 machines
Submitted by:	marcel
MFC after:	3 days
2006-03-06 02:58:25 +00:00
des
e4adab401b Update copyright years and remove third clause. 2006-03-02 14:00:40 +00:00
des
1cd6b779ce Read site.rc after default.rc. 2006-03-02 13:58:04 +00:00
des
dec8ea3d4a Ignore generated files. 2006-03-02 13:54:01 +00:00
sam
87272c821c when acpi does not explicitly enumerate lapic/cpu's there should
only be 1

Reviewed by:	jhb
2006-02-28 17:48:33 +00:00
wkoszek
c5c882e144 Fix the way in which median is calculated. If the data source has even
number of data points, value should be calculated by adding two middle
elements and dividing them by 2.

Approved by:	cognet (mentor)
2006-02-23 20:46:10 +00:00
sam
d1c19fee82 test program to check cpu counting
MFC after:	1 week
2006-02-22 21:51:09 +00:00
mdodd
c21de88b4e Add option -w to specify graph width.
Use COLUMNS, terminal width for default graph width.

Reviewed by:	 rwatson
2006-02-22 04:10:20 +00:00
rwatson
c3b5251962 Add multi-process support to simple http micro-benchmark, now the default.
Use -t for thread support.  Also added are -n to specify number of threads
or process, and -s to set the length of the test.
2006-02-22 02:54:43 +00:00
rwatson
6132f1f066 Add multi-process support to simple httpd micro-benchmark, which is now
the default.  With -t, threads are used.
2006-02-22 02:54:04 +00:00
pjd
24e4deddbc Add regression test which verifies that options -P and -i cannot be used
together.

MFC after:	3 days
2006-02-12 02:07:56 +00:00
des
c240423edc Use -O2 on RELENG_6 as well 2006-02-03 10:55:00 +00:00
pjd
41ffd5b92b Add regression tests which will verify that giving no key components for
init/attach/setkey subcommands is really impossible.

MFC after:	3 days
2006-02-01 15:17:45 +00:00
pjd
9cd2981517 Add simple tests which verify that redzone(9) works properly. 2006-01-31 11:20:13 +00:00
des
e4d6027c5e Avoid triggering autovivification of %config entries, which would result in
an empty addenda section.

Handle kernel configs that lack a "machine" line by guessing at the location
of GENERIC (assuming that it is in the same directory as the config file)
2006-01-30 10:46:01 +00:00
rwatson
fe40c56797 Use $FreeBSD$ for the juggle version, rather than $P4$. This is good for
two reasons:

(1) juggle is now maintained in CVS, not P4, so the CVS revision number is
    the authoritative one.
(2) Apparently $P4$ requires special handling and juggle was not marked
    as needing it, resulting in problems for the P4 importer.

Requested by:	gordon
2006-01-28 21:03:16 +00:00
flz
62ab7f1b8e - Fix infinite loop in strip_log().
- Remove useless variable.

Submitted by:	jkim
Approved by:	jkim
2006-01-25 23:47:12 +00:00
davidxu
af24439a4a s/sigval/sival/g 2006-01-22 03:46:03 +00:00
phk
7b3ba5ee36 Add two new variables:
# Size of the /etc ramdisk in 512 bytes sectors
	NANO_RAM_ETCSIZE=10240

	# Size of the /tmp+/var ramdisk in 512 bytes sectors
	NANO_RAM_TMPVARSIZE=10240

And a last_orders() shell function which can be redefined to copy
finished images away, order peanuts or whatever else is appropriate
2006-01-17 08:33:53 +00:00
flz
a09ac92281 I missed a whitespace in the generated commit message.
Approved by:	ssouhlal (implicit)
2006-01-15 01:01:46 +00:00
flz
ddde03f5b7 Bump version.
Approved by:	ssouhlal (implicit)
2006-01-13 20:43:00 +00:00
flz
d3e7eac46b Now with multi-commit support.
Use: `./mfc.pl -m "msg-id-1 msg-id-2" -i hurray'
or   `./mfc.pl -f - -i yippee' and copy/paste two commit logs

Approved by:	ssouhlal (implicit)
2006-01-13 20:41:04 +00:00
flz
928a616e4c - Fix issue when X-FreeBSD-CVS-Branch is not HEAD.
Submitted by:	jkim
Approved by:	jkim
2006-01-13 00:47:42 +00:00
flz
e507241549 Ok, I've created a test suite to avoid such regressions. Sorry for the noise.
Approved by:	ssouhlal (implicit)
2006-01-11 16:51:21 +00:00
flz
9596321736 - Fix another bug, it seems sometimes mail is sent to cvs-all but not cvs-ports.
Approved by:	ssouhlal (implicit)
2006-01-11 16:22:24 +00:00
flz
9b38678336 - Fix search.
- Fix author matching.

Approved by:	ssouhlal (implicit)
2006-01-11 16:00:38 +00:00
flz
b06663f584 - Remove netcat dependency by using fetch (not sure why i used nc
in the first place).
- Add some XXX lines as a TODO.
- Add a cvs diff command to the generated commit script.
- Add cdiff/colordiff to the list of optional dependencies.
- Fix a problem when giving the commit mail without the headers to
mfc.pl -f, it should now work correctly.
- Bump version.

Approved by:	ssouhlal (implicit)
2006-01-11 02:53:54 +00:00
flz
9c5f1c972a - Add a new MFC script that takes a message-id, a commit mail or a query string and
generates a patchset along with a commit message and a commit script if the user has
commit rights.
- Add a README file to give a quick description of each script's purpose.

Approved by:	netchild
2006-01-10 14:33:20 +00:00
phk
7b907043bc Add missing ' and '
Submitted by: simon
2006-01-06 11:31:59 +00:00
phk
c4b1bbc886 Make this more readable and add more devices.
Partially from:	mich@FreeBSD.org
2006-01-06 11:11:03 +00:00
harti
9cca28b4d7 Add a new leaf to the net.link.generic.ifdata.%d sysctl to retrieve
the name and unit number assigned by the driver. This is needed by
SNMP to find interfaces after they have been renamed.

MFC after:	4 weeks
2006-01-04 12:57:09 +00:00
avatar
e9ab99b720 Adding another multi-byte characters related regression test for recent
nmount(2) adoption.
2006-01-01 01:28:31 +00:00
dfr
d9cbcb50b5 Add a new extensible GSS-API layer which can support GSS-API plugins,
similar the the Solaris implementation. Repackage the krb5 GSS mechanism
as a plugin library for the new implementation. This also includes a
comprehensive set of manpages for the GSS-API functions with text mostly
taken from the RFC.

Reviewed by: Love Hörnquist Åstrand <lha@it.su.se>, ru (build system), des (openssh parts)
2005-12-29 14:40:22 +00:00
rwatson
9109f4fe31 Add 'juggle', a simple IPC micro-benchmark that uses various IPC types to
perform varying number of small IPC operations.  It runs using a single
process and one thread, a single process and two threads, and using
multiple processes.  Critical to its performance measure are the cost and
frequency of context switches, locking overhead, and threading
performance.  The benchmark generates .csv output appropriate for reading
into a spreadsheet to generate summary statistics and perform statistical
tests easily.
2005-12-28 12:42:12 +00:00
scottl
614b41dc53 Fix compiling on platforms with 64bit time_t. 2005-12-16 06:02:44 +00:00
des
bf3fd57aac Add a -c option to control caddr_t replacement (which was commented out in
the previous revision)
2005-12-13 22:21:46 +00:00
sam
785a4a0c55 fix include path 2005-12-13 22:15:09 +00:00
sam
3ed8b07f30 update 2005-12-13 22:13:41 +00:00
sam
13765a0cc1 fix include pathnames 2005-12-13 22:12:16 +00:00
des
7f2789bdd6 Add a script that converts K&R-style function definitions to ANSI style. 2005-12-13 22:09:50 +00:00
des
b09cdadf21 Print user, system and real time upon exit. 2005-12-13 17:51:56 +00:00
sam
11460b5b71 this didn't make it in the last commit 2005-12-11 23:15:24 +00:00
sam
310b3b7c69 o move programs to separate directories and use stock Makefiles;
this simplifies including them in crunchgen images
o rename 80211* programs to wlan* as was originally intended
2005-12-11 23:13:54 +00:00
sam
97e6ad836b remove cts burst extension stats 2005-12-11 22:46:41 +00:00
rwatson
cb090e1386 After printing per-cpu cache contents, summarize total cached items and
entries across the caches.

Fix an off-by-one error in counting caches.
2005-12-08 13:33:12 +00:00
rwatson
f2a96cd9c9 Teach umastat about the variable-length array of per-CPU caches at the end
of struct uma_zone.  It is declared as an array of size [1], but then
sized at run-time by UMA to include room for mp_maxid+1 CPUs.  We have to
copy the uma_zone first at the declared structure size, then check to make
sure it's not an internal zone before copying the larger size (UMA
internal zones don't use per-CPU caches).  This fixes umastat for SMP.
2005-12-08 13:16:22 +00:00
pjd
4ed0dcf09f Convert gstripe(8) regression tests to the new framework. 2005-12-07 01:30:44 +00:00
pjd
5250c7022c Convert gshsec(8) regression tests to the new framework. 2005-12-07 01:29:50 +00:00
pjd
ef0831aea7 Convert graid3(8) regression tests to the new framework. 2005-12-07 01:28:59 +00:00
pjd
970cb6f33a - Make use of geom_subr.sh to improve regression tests.
- Keep class-specific data in conf.sh file.
2005-12-07 01:27:23 +00:00
pjd
65dce3ed0a Finish conversion of gconcat(8) regression tests to the new framework. 2005-12-07 01:24:25 +00:00
pjd
49984acede Add file with helper functions for geom tools regression tests. 2005-12-07 01:20:18 +00:00
pjd
878b30658c Convert gnop(8) regression tests to the new framework. 2005-12-07 00:37:14 +00:00
pjd
9795800eb3 Convert gmirror(8) regression tests to the new framework. 2005-12-07 00:34:27 +00:00
rwatson
92cbca9c0a Add a simple KVM tool to dump the kernel state of UMA, including walking
the keg/zone lists, summarizing cache state, and walking bucket lists in
each zone.  I seem to get inconsistent results on SMP, possibly due to
local header problems, but it seems to work quite well on UP.  This tool
requires sufficient privilege to read /dev/mem (or a core dump), and is
for debugging purposes rather than administrative monitoring purposes
(use vmstat instead).
2005-12-05 13:04:00 +00:00
ru
abad3468e5 Move the 2->3 upgrade kit on the attic. 2005-12-03 20:30:29 +00:00
davidxu
b2bbf4f8ad Add code to test POSIX message queue. 2005-11-26 13:19:09 +00:00
scottl
01fb37711b Teach schedgraph how to parse KTR_CRITICAL records. critical_enter/exit
events are now plotted as a counting graph, similar to CPU load, so that
their duration and critnest values can be visualized.
2005-11-21 21:27:40 +00:00
phk
644983853b Add geometry of SiliconSystems 4GB CF card 2005-11-15 18:48:52 +00:00
des
cfa8912c5b Use the new syntax for GENERIC. 2005-11-14 13:34:15 +00:00
des
13b6012c65 Build a PAE kernel if a PAE config exists. 2005-11-14 13:33:17 +00:00
des
837b394189 Add support for the += operator, which appends to a multiple-value variable. 2005-11-14 13:32:30 +00:00
des
8ec73786a5 Add support for building other kernels than LINT and GENERIC. 2005-11-14 12:59:10 +00:00
marcel
7e399ad83e Update to match geom_gpt:1.35
o  Change the result of gctl(001) now that a bogus verb still requires
   a valid geom,
o  Insert gctl(024) to test for an appropriate error when a bogus verb
   is given that does have a proper geom parameter.
2005-11-13 22:02:04 +00:00
marcel
9ea593a1fb Instead of saving the unit number of the md(4) device name, save the
whole name. This does not unnecessarily close the door that in some
future we want to test on something other than md(4) devices.

Also add a "conf" action so that we can check whether a gctl actually
did the right thing or not. It's one thing to check that the result
strings are as expected, but it doesn't tell us if the end result is
correct. This needs a bit more fleshing out, but for now a visual
(i.e. manual) check suffices.
2005-11-12 20:17:08 +00:00
rwatson
c87b604005 Add unix_passfd, a simple set of regression tests for UNIX domain socket
file descriptor passing.  These tests are not all currently passed.
2005-11-09 21:41:20 +00:00
davidxu
622bb31c9a Add code to test queued SIGCHLD. 2005-11-08 09:19:44 +00:00
pjd
2d70eabb28 Add tests for -t option with short tty name - pkill(1) should accept both
(eg. "ttyv0" and "v0").
2005-11-07 16:56:16 +00:00
davidxu
18fc4b11b9 Add sigqueue test code. 2005-11-07 14:10:33 +00:00
rwatson
192c946ba5 Fix two minor typos that caused schedgraph to exit with an exception
when running on traces referencing >2 CPUs.
2005-11-06 17:43:25 +00:00
maxim
825ca06c57 Fix the path to aac_ioctl.h in the comment and style includes.
MFC after:	1 week
2005-11-06 15:47:06 +00:00
maxim
bf0e2510aa Fix include: aac_ioctl.h was moved from sys/dev/aac/ to sys/sys.
PR:		misc/88549
Submitted by:	Sokolov Alexey
MFC after:	1 week
2005-11-06 15:40:59 +00:00
stefanf
8723c51d6b Add test cases for the command built-in, including its -v and -V options which
I'll commit real soon.

Count the number of found test cases instead of hard-coding them.  Allow an
arbitrary exit status.
2005-10-28 14:02:42 +00:00
pjd
b4784d4ebf Change u_int64_t to uintmax_t and use %ju, so it compiles on 64bit archs.
I changed every u_int64_t to uintmax_t, as we should use eventually
uint64_t anyway those days.
2005-10-26 19:44:17 +00:00
rwatson
639ffa42d9 Updates and enhancements to the multi-threaded httpd performance test
tool:

- Use uname(3) to query the OS name to report in the HTTP headers.
  This is probably more useful than hard-coding FreeBSD.

- If no path is specified, create a 1k temporary file and send that
  instead.  Pass a file descriptor into http_serve() rather than using
  a global fd.

- Add more carriage returns to the HTTP headers to be a bit more
  correct.  (Suggested by: andre)

- Read to a buffer rather than a single character to reduce the number
  of recv() system calls pulling in the HTTP request.

- Properly wait for two, not one, \n's on input.
2005-10-25 18:47:12 +00:00
harti
d0b8720651 Add first tests for semicolon handling. The first test fails. This is
probably a bug in the parser.
2005-10-18 07:28:09 +00:00
harti
2733c20457 Add more tests for escaped newline handling and fix a test that currently
should fail because of a bug in the parser (test 2).
2005-10-18 07:20:14 +00:00
ambrisko
a7fa49849e This test can run now. 2005-10-12 18:04:18 +00:00
des
bebf0068f7 Add RELENG_6_0. 2005-10-09 18:01:55 +00:00
marcel
6c3e0035da Rough implementation of the create and add verbs. The verbs cause
in-memory changes only and as such are only useful for prototyping
and regression testing purposes.
2005-10-09 17:10:35 +00:00
damien
83f4245cc4 Import iwi-specific tools. Can help debug firmware or connection issues. 2005-10-07 18:27:21 +00:00
rwatson
5770eb4200 Don't hard-code port numbers, let the user specify them. 2005-10-06 12:20:33 +00:00
rwatson
b443e80b51 Improve realism of benchmark httpd: return some HTTP headers as part
of the sendfile() system call.
2005-10-06 10:28:31 +00:00
rwatson
15415175d5 Add basic simplified HTTP benchmark tools to the netrate suite:
- http is a lightweight, multithreaded HTTP query tool, which performs
  a timed measurement of the rate at which it can download files using
  single-fetch HTTP/1.0.  Other than specifying the IP and a URL path,
  it requires zero configuration.

- httpd is a lightweight, multithreaded HTTP server tool, which exports
  a single file of choice to the HTTP client, and responds with it no
  matter what the request.  Other than specifying the file to export,
  it requires zero configuration.

The goal of these tools is to measure the network costs associated with
HTTP serving, rather than file system, HTTP protocol parsing, error
handling, etc, and as such, parts relating to less interesting components
of HTTP testing are intentionally omitted.  Both are linked against
libpthread by default.
2005-10-06 08:41:08 +00:00
rwatson
2c41d20bdd Add simple TCP connect and TCP receive benchmark components, intended to
measure the rate of TCP connection round trips supported by a host at
the socket layer.
2005-10-05 12:10:35 +00:00
brooks
0f2fe8b63d Add regression tests for trimdomain(3). 2005-10-05 04:46:10 +00:00
fjoe
5c713a5737 Use mkuzip(8) instead of create_compressed_fs. 2005-09-29 22:41:20 +00:00
phk
dc422f3b70 Fix a bug in disk geometry calculation.
Fix NANO_TOOLS usage in FlashDevice()
2005-09-29 16:06:59 +00:00
phk
7557f61ce6 This one goes as well. 2005-09-26 14:58:58 +00:00
phk
9ced30d43d Remove the old Makefile based nanobsd build method, the new shell script
based is far better and the only one supported from now on.
2005-09-26 14:57:27 +00:00
phk
58b495a6f0 Correct filesystem mountpoint 2005-09-25 21:23:19 +00:00
simon
b4151b2250 Make it possible to set the NANO_TOOLS variable to a directory outside
of $NANO_SRC, which can e.g. be used if the nanobsd scripts are not in
the source tree being built.

Improved by:	phk
Approved by:	phk
2005-09-24 12:26:59 +00:00
philip
1519e686de Fix typo. MAILWRAPER -> MAILWRAPPER.
Spotted by:	Andrea Campi <andrea+freebsd_cvs_all -at- webcom.it>
Pointy hat to:	philip
2005-09-21 12:32:06 +00:00
phk
936ef077e7 Update these scripts to be more userfriendly and usage safe. 2005-09-21 09:40:45 +00:00
phk
ed5e4faa71 Add a convenience function to set NANO_MEDIASIZE, NANO_HEADS and NANO_SECTS
for commonly used flash devices by

	FlashDevice Sandisk 256MB

in the config file.
2005-09-20 09:07:18 +00:00
phk
6b94e48157 Create an /etc/nanobsd.conf in the built image and put the disk drive name
there for scripts to use.

Create a noauto fstab entry for the configuration partition (/cfg).

Add NANO_TOOLS env-var to point to the nanobsd sources relative to
NANO_SRC.

Add -h argument which prints a usage.

Add -b argument which skips build steps and goes directly to install steps.

Complain about extraneous arguments, it's usually a forgotten '-c'

Add convenience function to register customization function.

Add some sample customization functions:
	cust_comconsole
	cust_allow_ssh_root

Rename setup_diskless() to setup_nanobsd(), it makes more sense.

Add various comments etc.
2005-09-20 08:38:59 +00:00
phk
e825dac28c Dump the environment for reference.
Add a function to add customization commands.
2005-09-19 20:55:44 +00:00
rwatson
aaf789e510 Small regression test tool to generate two forms of ENOSPC on a file
system: out of blocks, and out of inodes.  Useful for exercising the
uprintf(9) calls in UFS/ext2fs in order to detect races.
2005-09-19 16:29:36 +00:00
phk
9b9ea0137d Create fstab before linking stuff into /conf 2005-09-19 15:41:08 +00:00
phk
c235110658 Missing ')' 2005-09-19 12:12:07 +00:00
marcel
d94a6a6215 o Extend the suite to run more than just the driver. We need to run
mdconfig(8), because we need a disk to work on.
o  Extend the number of tests now that we have a disk.
o  Simplify the driver. All parameters are ASCII strings now.
2005-09-19 06:51:57 +00:00
marcel
37a0bbb7e5 Add the beginnings of a testsuite for testing GPT control requests.
The testsuite is based on a simple driver program that builds a
request from the arguments passed to it and issues the request to
Geom. The driver emits FAIL with the error string or PASS depending
on whether the request completed with an error or not. A -v option
has been added to the driver and causes the request to be dumped.
The -v option to prove(1) controls the -v option to the driver.

The testsuite itself contains a hash of which the key constitutes
the arguments and the value is the expected result.
2005-09-19 02:59:09 +00:00
rwatson
585452751e Add a regression test for listen()'s backlog argument, both at time of
creation and at time of update using an additional call to listen().
This test also exercises SO_LISTENQLIMIT, a forthcoming socket option
that allows the retrieval (but not setting) of the queue limit.

Discussed with:	andre
2005-09-18 13:42:19 +00:00
csjp
02556fa478 Remove reference to bpfstat, this no longer exists. 2005-09-17 23:45:22 +00:00
maxim
a2d0692652 Remove checks for shutdown(2) on non-connected socket. 2005-09-15 13:20:39 +00:00
rwatson
a37e69ab0c Add two small tests to set and clear two file I/O flags using ioctl on
a fifo: FIONBIO, FIOASYNC.
2005-09-13 17:25:35 +00:00
rwatson
5d506fa38f Restructure fifo_io event-related tests in order to support test cases
relating to O_RDWR file descriptors, which while not defined in POSIX,
are in fact used:

(1) Revise assumption that we have two file descriptors when testing I/O
    operations on a fifo.  Provide cleanup routines that handle either
    two or three file descriptors (including a kqueue descriptor).

(2) Add an openfifo_rw() routine to supplement openfifo().

(3) kqueue_setup() now configures an existing kqueue to monitor a new
    file descriptor, rather than allocating a new kqueue to monitor two
    existing file descriptors.

(4) Wrap all direct poll/select/kqueue/FIONREAD interactions in a single
    function, assert_status(), which takes a file descriptor, kqueue
    descriptor, assertion of read/writable/exception states, and
    test description, then tests the assertion.  This reduces the bulk
    of calls in many of the tests, making them shorter, more readable,
    and easier to determine correct.

(5) Add a new test_events_rdwr() function, which performs a basic create/
    write/read event test on a O_RDWR fifo file descriptor.  This is
    currently failed by our fifo code in HEAD due to a bug in FIONREAD
    handling.  Fix to be merged shortly.
2005-09-13 17:15:05 +00:00
csjp
dc896e1e4b Garbage collect bpfstat. This is handled by netstat now.
Requested by:	rwatson
2005-09-13 16:04:56 +00:00
rwatson
d843436403 Teach fifo_io how to use ioctl(FIONREAD) to determine if a fifo is
readable, and use that in addition to poll+select+kqueue to verify
appropriate readability.
2005-09-13 15:49:12 +00:00
rwatson
5dc127c9e2 Remove a debugging printf. 2005-09-13 10:33:32 +00:00
rwatson
3e75d8f4fd Comment test_lseek().
Add test_kqueue(), which registers and unregisters various kqueue filter
types on a fifo in order to make sure that EVFILT_READ, EVFILT_WRITE can
be registered, and that EVFILT_NETDEV can't be registered.  For now, we
don't test that EVFILT_VNODE can be registered on fifos, as that has been
broken at some point.
2005-09-12 19:31:16 +00:00
rwatson
1149df53b0 Further updates to fifo_io regression test:
- Teach fifo_io about kqueue monitoring of fifo file descriptor status,
  and add test cases for kqueue to match existing case for poll and
  select.  Add a new cleanup routine, cleanfifokq(), for use in tests that
  use kqueues.  kqueue_setup() sets up kqueue sessions, and kqueue_status()
  returns file descriptor status.

- Correct a bug in select handling relating to the nfds argument, which
  was incorrect so resulted in select occuring on the wrong file descriptor,
  and possible false positive/negative results.

- Clarify error reporting in one byte write+read tests to distinguish
  errors in the after case from the before case.
2005-09-12 17:05:48 +00:00
maxim
6732fe0718 o Add shutdown(2) regression tests. At the moment we cannot pass
shutdown-on-non connected socket test, kern/84761.
2005-09-12 14:12:09 +00:00
rwatson
bc20141649 Add fifo_misc, a regression test to hold misc. functional tests for fifos
that don't obviously fit into create, open, and io.  For now, add only a
regression test to make sure that lseek() fails with ESPIPE (which it
doesn't).
2005-09-12 11:58:14 +00:00
rwatson
4bf620706a Use different temporary directory templates for fifo_io and fifo_open so
that if the tests fail to GC their working spaces, it's clear which it is.
2005-09-12 11:43:51 +00:00
rwatson
073fb90c59 Add fifo_io, a regression test for I/O operations on POSIX fifos. We
currently can't pass this regression test due to broken poll() and
select() support for fifos, but past the basic I/O operation tests.
2005-09-12 09:42:29 +00:00
rwatson
42860f374b After going to some trouble to create a temporary directory in which to run
fifo tests, chdir to it.
2005-09-11 17:41:32 +00:00
rwatson
529f801256 Add fifo_open, a basic regression test for opening fifos, which tests
the blocking and non-blocking forms of open based on the POSIX spec for
now O_NONBLOCK should be handled.
2005-09-11 13:03:36 +00:00
rwatson
03ae4bec97 Add fifo_create, a simple regression test for mkfifo(2). 2005-09-10 21:09:26 +00:00
csjp
b1c29887f7 Now that the PID is constantly refreshed, introduce a pidname function which
when given a PID consults the kern.proc.pid sysctl variable to pull out the
pcomm data.
2005-09-05 23:13:05 +00:00
rwatson
61c98b99f2 Add a regression test to test two variations on the same bug: joining a
multicast group using a raw socket, then removing the interface on which
the group is found, and joining a multicast group using a udp socket,
then removing the interface on which the group is found.  An if_disc
interface is used as the interface on which to attach.

NB: A panic currently results from running this regression test, so do
so with caution.

PR:		77665
Reported by:	Gavin Atkinson <gavin dot atkinson at ury dot york dot ac dot uk>
Reported by:	Brooks Davis <brooks at FreeBSD dot org>
2005-09-05 13:23:01 +00:00
stefanf
560cfe4de3 - Add tests for hash and return and more tests for set -e.
- Simplify regress.sh, sort tests.
2005-09-05 09:42:10 +00:00
stefanf
4a2e133e0f Simplify and add PR 77067 which addresses the same bug. 2005-09-04 21:29:09 +00:00
stefanf
ea45d0596e Fix syntax error that crept in somehow. 2005-09-04 18:12:21 +00:00
stefanf
ce5d9c9b6d Add a couple of regression tests for /bin/sh. 2005-09-04 11:59:59 +00:00
sam
003ac31f45 script to set ifs parameters based on distance; derived from program
of the same name by Gunter Burchardt

MFC after:	3 days
2005-08-30 16:03:15 +00:00
sobomax
b96a97ffc3 Extend utility to allow recovering single file from the deffective
media.

MFC after:      2 weeks
2005-08-29 23:08:01 +00:00
simon
afde19d7bd Correct a comment to match the configuration parameter it describes.
MFC after:	3 days
2005-08-27 20:57:06 +00:00
pjd
77f75e8428 Add regression tests for '-L' option. 2005-08-25 20:13:58 +00:00
pjd
034dae7724 '-F' option behaviour was reverted, so revert previous commit. 2005-08-25 20:11:39 +00:00
pjd
2cdfac31a9 '-F' option now needs locked pidfile. Modify regression tests respectively. 2005-08-24 19:39:29 +00:00
csjp
29247e2d33 Add support for processing the "bd_locked" flag offered by the bpf
stats structure.
2005-08-23 00:06:04 +00:00
phk
6f0a19f7ae Increase flexibility in disk-layout 2005-08-16 05:49:17 +00:00
phk
acf047af75 Put more stuff in logfiles instead of stdout 2005-08-15 18:40:28 +00:00
phk
5f88d126f4 Cleanup and polishing. 2005-08-15 12:48:42 +00:00
phk
4a201f6027 After much experimentation, settle for the simplest model for customize
scripts.
2005-08-15 08:13:01 +00:00
phk
55d94ede25 Prune empty directories in /usr
Move argv parsing.
2005-08-13 08:06:18 +00:00
phk
ed93898ca2 Update to latest version of this tool.
Takes about a week for a full run.
2005-08-09 09:27:11 +00:00
sam
653cdbcef0 sigh, sizeof the correct variable so we can match ifname's > 4 bytes 2005-08-06 18:47:12 +00:00
rwatson
405f9b654c Add a few more system call timing cases:
Rename current socket creation test to socket_stream.
Add new socket_dgram test.
Add new socketpair_stream test.
Add new socketpair_dgram test.
2005-08-03 17:33:46 +00:00
sam
24f85b0b69 simplify use with non-ath devices; search the wlan sysctl nodes to
locate the right one for the specified interface

MFC after:	3 days
2005-08-03 04:25:04 +00:00
phk
634b705566 polish various bits. 2005-08-02 20:09:45 +00:00
phk
907344a7ad Ignore CVS directories 2005-08-02 20:09:24 +00:00
phk
8127211326 typo 2005-08-01 08:24:03 +00:00
phk
5c126adf7d Add stuff to HTML output. 2005-07-31 15:42:25 +00:00
phk
13782c6aeb The beginnings of a tool to survey the build options (NO_THIS, NO_THAT etc)
for effect.
2005-07-31 14:16:13 +00:00
des
8761731b8c In realpath(), make sure each path component consists only of safe
characters, and untaint it.
2005-07-29 11:28:03 +00:00
des
59a8e9095c Differentiate between empty and short reports, and raise the bar for what
we consider a short report to 128 characters.  Canonicalize %%HOME%%.
2005-07-29 11:25:10 +00:00
des
637e5e86f3 Don't email reports that are empty or very short, as can happen if tbmaster
fails to exec the tinderbox script.
2005-07-29 11:18:35 +00:00
des
f298f4eae6 Shorten src / obj paths while capturing logs, making them both smaller and
easier to read.
2005-07-28 10:09:22 +00:00
pjd
3f2c6109db Add regression tests (121 in total) for GEOM_ELI class.
To use them, run:

	# prove /usr/src/tools/regression/geom_eli

Sponsored by:	Wheel Sp. z o.o.
		http://www.wheel.pl
MFC after:	1 week
2005-07-27 22:27:30 +00:00
csjp
6bb4b5a92b Add a description for bpfstat 2005-07-26 21:44:40 +00:00
csjp
e5ca7cc52f Introduce a bpfstat utility. This program can be used to retrieve
stats provided by bpf(4). This program will live in tools/ for now
until we figure out where it will live permanently. Based on some
discussions on developers@, it is likely that we will be adding
this functionality to netstat(1) at some point.
2005-07-26 21:38:54 +00:00
phk
d47dbed233 Add the first snapshot at rewriting the nanobsd build to be a shellscript.
The overall idea is to get a single build script which will not need
editing, but instead overrides and changes happen by config files passed
as arguments.
2005-07-26 18:52:50 +00:00
philip
cdb54d3e8c Add some more NO_FOO options. I'm not sure if they're correctly sorted in the
size-scheme.  Also add commented NO_BIND_FOO options for people who want named
but not all of the bloat it likes to include by default.

While here, make a comment about BOOT_COMCONSOLE_SPEED.
2005-07-25 09:15:12 +00:00
philip
f6a2d54d4e Add fstab entries for ALTROOTSLICE and CFGSLICE, allowing us to do away with
most of the hardcoding of device names in installed convenience scripts.

Provide a new script (root/updatep) to easily update the ALTROOTSLICE.  It
does the same as updatep1/updatep2 without hardcoded device names.  If noone
protests, I'd like to get rid of updatep1/updatep2 at some point.

As an extra bonus: turn on the error led while updating (on hardware with a
led).
2005-07-25 08:40:13 +00:00
pjd
4138f701c8 Change jail IP from 1.0.0.127 to 127.0.0.1, which shows, that this test
doesn't examine the real issue as it pass without problems.
2005-07-23 05:40:17 +00:00
sam
0ba8dad185 update for recent additions 2005-07-22 23:37:03 +00:00
sam
db1d8862bd update with new msg classes 2005-07-22 23:33:33 +00:00
rwatson
c45e23d039 Add a simple multicast socket regression test set:
- Test that the basic socket options have the right defaults, that we can
  change them, read them back, etc.

- Add and remove some multicast addresses.

- Send a loopback multicast address and make sure it arrives intact.

There's more that could be done here, but it's a start.

MFC after:	3 days
2005-07-22 19:36:29 +00:00
phk
9b19f9f39e In 2003, a -s flag was added to ministat to separate the
avg/median/stddev bars onto separate lines for readability if the
ranges overlapped.  In 2005, ministat was extended to support more than
2 datasets, but the -s code was not updated.  It will coredump if run
with -s and >2 sets.

PR:	82909
Submitted by:	Dan Nelson <dnelson@allantgroup.com>
2005-07-21 08:32:56 +00:00
des
b820d7bda4 Catch up. 2005-07-20 20:01:37 +00:00
des
0758329fde Remove redundant rc files. 2005-07-20 20:00:51 +00:00
des
61cf820c99 CURRENT -> HEAD, and dump ia64 and powerpc. 2005-07-20 19:59:46 +00:00
des
450fedcb13 Use 'HEAD' instead of 'CURRENT', while retaining backward compatibility. 2005-07-20 19:58:47 +00:00
des
34f70ab4e5 Include RELENG_4_11 and RELENG_4. 2005-07-20 19:51:13 +00:00
des
08f9cd1a33 Include RELENG_5_4 and RELENG_5. Chuck out ia64. 2005-07-20 19:50:29 +00:00
des
2d14d0da5e Add rc files for RELENG_6. 2005-07-20 19:49:36 +00:00
imura
11bed7ab9b Add another regression tests for msdosfs which covers msdosfs_conv.c rev 1.45.
Requested by:	silby
2005-07-18 12:15:24 +00:00
gad
dae3611171 Correct one regression test (which was expected an incorrect answer), and
add a few more tests.  This matches bug fixes recently committed to 'env'.
2005-07-15 02:31:15 +00:00
philip
55acff0d21 Fix a minor buglet making the code match the comment. Fractional cylinders
confuse fdisk and break the NanoBSD build.

This is an MT5/6 candidate.

MFC after:	3 days
2005-07-14 12:20:02 +00:00
gad
2628b26a5e Upgrade these regression tests to track recent changes to `env'.
Approved by:	re (blanket `env')
2005-06-21 21:43:38 +00:00
gad
cb0516417f Add a suite of regression tests for all the recent changes to `env',
using my own script to handle it.  I wrote my own partially because
of all the quoting-issues involved with testing what I wanted to test,
and partially because this lets me commit one script and one data file,
instead of one-file-per-regression-test.

This suite was good enough for my initial testing (and it did help me
find a few bugs that would have otherwise been missed).  I'm not sure
how well it will work in general use, but I figured I might as well
commit it.  It won't *hurt* to have it available.  At the worst, people
can just ignore it.

Approved by:	re (blanket `env')
2005-06-20 04:17:12 +00:00
maxim
e5e29d142d o setsockopt(2) cannot remove accept filter. [1]
o getsockopt(SO_ACCEPTFILTER) always returns success on listen socket
  even we didn't install accept filter on the socket.
o Fix these bugs and add regression tests for them.

Submitted by:	Igor Sysoev [1]
Reviewed by:	alfred
MFC after:	2 weeks
2005-06-11 11:59:48 +00:00
sobomax
9f5f77a9e2 Add entry for recoverdisk. 2005-06-06 00:18:17 +00:00
harti
54f37e8648 Add a test for escaped newline handling. 2005-06-01 11:26:47 +00:00
harti
10c793046d Add support for TODO tests. These are tests that are supposed to fail,
because of a make bug that should be fixed.
2005-06-01 11:25:38 +00:00
harti
316b5bf776 Change the test infrastructure so that tests are easier to maintain and
so that make(1) will run in an almost clean environment and enhance the
description of the test infrastructure.

Add the ability to have multiple tests carried out per test script.

Give some tests more meaningful names.

Fix the usage message from the test scripts.

Make it possible to pass several commands to the test scripts like:
'sh test.t setup run compare clean'.
2005-05-31 14:13:07 +00:00
rwatson
8cf16b63df dd a '-n' option to ministat, which causes it to display only summary
statistics, not graph and statistical test output.  Useful for automated
processing.
2005-05-27 17:52:56 +00:00
harti
e533045bcd Add a test to check whether in compat mode make detectes builtins
on the command line and really executes the shell instead of directly
executing the command.
2005-05-20 15:25:04 +00:00
harti
d35d2dfc6f Add a test to ensure that in compat mode when a line contains no
shell meta characters it is not passed to the shell, but the command
is executed directly (given that the line is not a shell builtin) and
that the line with a meta character is passed to the shell.
2005-05-20 15:06:27 +00:00
harti
e956f972da Add a test that test whether we can replace the shell to use by
make with another shell and set all its parameters (meta and builtins
not tested here).
2005-05-20 14:50:30 +00:00
phk
906cfe30a4 Make the path to make.conf a parameter which can be overridden.
NB: you have to use absolute path!
2005-05-19 15:34:36 +00:00
phk
bb1e88d3de Save space by using -b 4096 -f 512 for newfs.
Retain -i 8192 to avoid wasting inodes.
2005-05-19 15:34:00 +00:00
phk
db59b95e39 Run the "files" customization script 2005-05-19 15:24:23 +00:00
phk
ad5fa596b8 Add some runtime admin/tool scripts 2005-05-19 15:23:47 +00:00
phk
4f1d6dc368 Add a couple of basic customization scripts. 2005-05-19 15:20:49 +00:00
phk
c4f68fb959 Explain the magic 2005-05-19 13:33:21 +00:00
harti
b2f252c7bc Some test cases for .SHELL target: builtin shell selection and
changing the path of a builtin shell.
2005-05-19 11:23:01 +00:00
ru
86758e8895 Make <runefile.h> internal to libc.
Suggested by:	phantom
2005-05-16 09:32:41 +00:00
rwatson
449a09d7f4 Add an #ifdef'd non-blocking version of the test.
Update copyright.
2005-05-16 00:54:47 +00:00
rwatson
b7aef0ed3c Close the connect socket as well as the listen socket on completion.
Update copyright.
2005-05-16 00:53:38 +00:00
marcel
208bfa4234 o -n option added.
o  -x option added.
2005-05-15 07:35:34 +00:00
avatar
5264ecc9eb Catching up with the latest crypto API changes in net80211.
Reviewed by:	sam
2005-05-05 13:16:30 +00:00
ume
9f4066d658 add simple test script. 2005-05-05 11:26:47 +00:00
ume
f0bd095e96 - add $FreeBSD$.
- enable -r option for regress target.
2005-05-04 19:40:30 +00:00
ume
c93d1b9f93 - add $FreeBSD$.
- do service lookup.
- add options to use gethostbyname(3) or getipnodebyname(3) instead
  of getaddrinfo(3).
- add option to do reverse lookup.
2005-05-04 12:02:10 +00:00
ume
8f2ac72729 This commit was generated by cvs2svn to compensate for changes in r145857,
which included commits to RCS files with non-trunk default branches.
2005-05-04 11:55:42 +00:00
ume
d7fda39756 import of parallel name resolution test.
Obtained from:	NetBSD
2005-05-04 11:55:42 +00:00
des
c46ecbdc68 Reduce diffs against actual production configuration. 2005-04-30 18:26:05 +00:00
des
ff75ea1f38 Remove a line which merely echoed the builtin default. 2005-04-30 18:25:01 +00:00
des
ca277419a2 Split the 'clean' command into 'cleansrc', 'cleanobj' and 'cleanroot'.
Specifying 'clean' is equivalent to specifying all three.
2005-04-30 18:22:12 +00:00
des
c34b0ce9c8 Add 'cleanobj' to the default target list. 2005-04-30 17:57:11 +00:00
harti
602fdc5e5e Add an initial regression test suite for make(1).
Submitted by:	Max Okumoto <okumotu@ucsd.edu> (partly, initial version)
2005-04-28 13:20:48 +00:00
davidxu
6149b9f287 Adjust code to be more reliable. 2005-04-24 00:17:30 +00:00
davidxu
72410b5004 Add a program to test if tls data is clean. 2005-04-23 23:47:58 +00:00
mux
fa9f34652d Fix printf() format string errors with 64-bit architectures.
Spotted by:	pav
2005-04-21 19:28:22 +00:00
phk
16e5fd3281 Remove redundant line, add comment about termcap 2005-04-19 15:15:35 +00:00
avatar
8694c5f462 Adding another multi-byte characters related regression test for msdosfs.
Tested by:	njl
Reviewed by:	silby, bde, sam (mentor)
2005-04-18 13:06:43 +00:00
silby
80df10c1f4 Add another regression test - one we don't pass right now. 2005-04-17 00:56:38 +00:00
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