NameDateSize

..20-Dec-201615

acct/H20-Dec-20165

acltools/H20-Dec-201615

aio/H20-Dec-20165

atm/H20-Dec-20169

audit/H20-Dec-20163

bin/H20-Dec-20168

bpf/H20-Dec-20164

ccd/H20-Dec-20163

doat/H20-Dec-20165

environ/H20-Dec-201610

ethernet/H20-Dec-20163

execve/H20-Dec-20166

fifo/H20-Dec-20166

file/H20-Dec-20167

filemon/H20-Dec-20166

fsx/H20-Dec-20164

gaithrstress/H20-Dec-20164

geom/H20-Dec-20168

geom_concat/H20-Dec-20165

geom_eli/H20-Dec-201622

geom_gate/H20-Dec-201610

geom_gpt/H20-Dec-20164

geom_mirror/H20-Dec-201610

geom_nop/H20-Dec-20165

geom_raid3/H20-Dec-201615

geom_shsec/H20-Dec-20165

geom_stripe/H20-Dec-20165

geom_subr.shH A D08-Mar-2015177

geom_uzip/H20-Dec-20168

ia64/H20-Dec-20164

include/H20-Dec-20163

ipfw/H20-Dec-20163

ipsec/H20-Dec-20164

kgssapi/H20-Dec-20164

kqueue/H20-Dec-201612

kthread/H20-Dec-20163

lib/H20-Dec-20166

mac/H20-Dec-20164

mlock/H20-Dec-20164

mmap/H20-Dec-20164

mqueue/H20-Dec-20168

msdosfs/H20-Dec-20168

net80211/H20-Dec-20165

netatalk/H20-Dec-20163

netinet/H20-Dec-201619

netinet6/H20-Dec-20165

netipx/H20-Dec-20167

nfsmmap/H20-Dec-20166

p1003_1b/H20-Dec-201612

pipe/H20-Dec-201612

pjdfstest/H20-Dec-20167

poll/H20-Dec-201612

posixsem/H20-Dec-20167

posixsem2/H20-Dec-20164

posixshm/H20-Dec-20167

priv/H20-Dec-201643

pthread/H20-Dec-20165

READMEH A D08-Mar-20153.5 KiB

redzone9/H20-Dec-20166

rpcsec_gss/H20-Dec-20164

sbin/H20-Dec-20165

security/H20-Dec-20166

sigqueue/H20-Dec-20165

sockets/H20-Dec-201628

sysvmsg/H20-Dec-20165

sysvsem/H20-Dec-20165

sysvshm/H20-Dec-20165

tls/H20-Dec-201610

tmpfs/H20-Dec-201627

TODOH A D08-Mar-20151.1 KiB

ufs/H20-Dec-20163

usr.bin/H20-Dec-201622

usr.sbin/H20-Dec-20166

vfs/H20-Dec-20163

zfs/H20-Dec-20165

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 netatalk tests require 'options NETATALK' in the kernel.
32A test may be skipped by printing '# skip Reason for skipping' after the
33test name.  For example,
34
35    ok 1 - netatalk # skip 'options NETATALK' 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 occurence.  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
80ia64		ia64 specific regression tests
81nfsmmap		Some tests to exercise some tricky cases in NFS and mmap
82p1003_1b	Exercise 1003.1B scheduler
83pipe		Pipe code regression test
84fsx		General filesystem exerciser
85sysvmsg 	SysV IPC Message Queue Regression Utility
86sysvsem 	SysV IPC Semaphore Regression Utility
87sysvshm 	SysV IPC Shared Memory Regression Utility
88gaithrstress	General threaded getaddrinfo(3) exerciser
89date		Date(1) + format string regression test
90