Name Date Size #Lines LOC

..22-Aug-2023-

aio/aiop/H22-Aug-2023-235145

atm/H22-Aug-2023-162105

audit/audit_pipe_ioctl/H22-Aug-2023-15478

bpf/H22-Aug-2023-4,5332,607

capsicum/syscalls/H22-Aug-2023-1,4071,021

ccd/layout/H22-Aug-2023-5,8665,809

doat/H22-Aug-2023-689585

environ/H22-Aug-2023-846460

ethernet/ethermulti/H22-Aug-2023-265178

fsx/H22-Aug-2023-1,2281,018

gaithrstress/H22-Aug-2023-285212

geom/H22-Aug-2023-4,2974,102

geom_gpt/H22-Aug-2023-425329

include/H22-Aug-2023-795594

ipfw/fwd/H22-Aug-2023-370242

ipsec/H22-Aug-2023-210153

iscsi/H22-Aug-2023-890706

kgssapi/H22-Aug-2023-318256

kthread/kld/H22-Aug-2023-216147

lib/libc/regex/H22-Aug-2023-127

mlock/H22-Aug-2023-9948

msdosfs/H22-Aug-2023-181127

net/if_tap/H22-Aug-2023-6024

net80211/H22-Aug-2023-1,548875

netinet/H22-Aug-2023-5,0253,218

netinet6/H22-Aug-2023-799441

nfsmmap/H22-Aug-2023-176138

p1003_1b/H22-Aug-2023-1,080623

poll/H22-Aug-2023-1,120941

posixsem/H22-Aug-2023-1,6251,237

posixsem2/H22-Aug-2023-148126

priv/H22-Aug-2023-6,1173,680

pthread/H22-Aug-2023-454299

redzone9/H22-Aug-2023-171123

rpcsec_gss/H22-Aug-2023-410330

security/H22-Aug-2023-3,8752,552

sigqueue/H22-Aug-2023-179144

sockets/H22-Aug-2023-8,9895,988

sysvmsg/H22-Aug-2023-375200

sysvsem/H22-Aug-2023-381212

sysvshm/H22-Aug-2023-312167

tls/H22-Aug-2023-490304

tmpfs/H22-Aug-2023-2,3551,086

ufs/uprintf/H22-Aug-2023-197105

usb/H22-Aug-2023-3114

usr.bin/H22-Aug-2023-1,2741,033

zfs/H22-Aug-2023-12,06911,158

READMEH A D22-Aug-20233.5 KiB8966

TODOH A D22-Aug-20231.1 KiB3929

README

1$FreeBSD$
2
3This directory is for regression test programs.
4
5A regression test program is one that will exercise a particular bit of the
6system to check that we have not reintroduced an old bug.
7
8Tests should be implemented in files with a .t extension.  Each .t file
9can contain more than one test, and can be implemented in any scripting
10language -- /bin/sh, Perl...
11
12The test protocol is quite simple.  At its most basic, each .t file should,
13when run, print a line in this format:
14
15   1..m
16
17where m is the number of tests that will be run.
18
19Each test should produce a single line of output.  This line should start
20with one of
21
22   ok n
23   not ok n
24
25to indicate whether or not the test succeeded.  'n' is the test's number.
26Anything after this on the line (up to the first '#' if present) is
27considered to be the name of the test.  Naming tests is optional, but
28encouraged.
29
30A test may be written which is conditional, and may need to be skipped.
31For example, the netinet tests require 'options INET' in the kernel.
32A test may be skipped by printing '# skip Reason for skipping' after the
33test name.  For example,
34
35    ok 1 - netinet # skip 'options INET' not compiled in
36
37A test may be flagged as 'todo'.  This indicates that you expect the test
38to fail (perhaps because the necessary functionality hasn't been written
39yet).  'todo' tests are expected to fail, so when they start working the
40test framework can alert you to this happy occurrence.  Flag these tests
41with a '# TODO' comment after the test name
42
43    not ok 1 - infiniteloop # TODO write test for an infinite loop
44
45This is modelled on the protocol followed by the Test::Harness Perl
46module (and therefore much of the automated testing carried out by the
47Perl community).  More documentation can be found at:
48
49    http://search.cpan.org/~petdance/Test-Harness-2.42/lib/Test/Harness.pm
50
51To run the tests and parse their output install the devel/p5-Test-Harness
52port.  This includes the prove(1) command which is used to run the tests
53and collate the output.
54
55    prove geom_concat		# run all the tests in geom_concat
56    prove -r lib		# run all tests in lib/, and subdirectories
57    prove -r -v lib		# as above, with verbose output
58    prove -r			# run *all* the tests
59
60Tests that are for parts of the base system should go into a directory here
61which is the same as their path relative to src/, for example the uuencode(1)
62utility resides in src/usr.bin/uuencode so its regression test resides in
63src/tools/regression/usr.bin/uuencode.
64
65To avoid the pre-commit check program complaining about the lack of
66CVS keywords in test data files, use a .in suffix for input files and
67a .out suffix for output files.
68
69To execute individual regression tests for binaries that you are
70developing, add their directory in the path before running the tests.
71Example:
72cd /usr/src/tools/regression/usr.bin
73(PATH=/home/user/src/experimental/jot:$PATH ; make SUBDIR=jot)
74
75Please make a subdir per other regression test, and add a brief description to
76this file.
77
78acct		Exercise the integer to float conversion used in acct(5)
79geom		Some tests and an out-of-kernel simulator for the GEOM code
80nfsmmap		Some tests to exercise some tricky cases in NFS and mmap
81p1003_1b	Exercise 1003.1B scheduler
82pipe		Pipe code regression test
83fsx		General filesystem exerciser
84sysvmsg 	SysV IPC Message Queue Regression Utility
85sysvsem 	SysV IPC Semaphore Regression Utility
86sysvshm 	SysV IPC Shared Memory Regression Utility
87gaithrstress	General threaded getaddrinfo(3) exerciser
88date		Date(1) + format string regression test
89