• Home
  • History
  • Annotate
  • only in /freebsd/tools/regression/

..17-Nov-20154 KiB

aio/27-Apr-20154 KiB

atm/26-Apr-20124 KiB

audit/26-Apr-20124 KiB

bpf/26-Apr-20124 KiB

capsicum/13-Dec-20134 KiB

ccd/26-Apr-20124 KiB

doat/14-Apr-20144 KiB

environ/14-Apr-20144 KiB

ethernet/26-Apr-20124 KiB

filemon/07-Jul-20144 KiB

fsx/14-Apr-20144 KiB

gaithrstress/09-Dec-20154 KiB

geom/26-Apr-20124 KiB

geom_concat/26-Apr-20124 KiB

geom_eli/26-Apr-20124 KiB

geom_gate/26-Apr-20124 KiB

geom_gpt/26-Apr-20124 KiB

geom_mirror/26-Apr-20124 KiB

geom_nop/26-Apr-20124 KiB

geom_raid3/26-Apr-20124 KiB

geom_shsec/26-Apr-20124 KiB

geom_stripe/26-Apr-20124 KiB


geom_uzip/18-May-20134 KiB

include/12-Jun-20134 KiB

ipfw/26-Apr-20124 KiB

ipsec/26-Apr-20124 KiB

iscsi/17-Sep-20134 KiB

kgssapi/09-Dec-20154 KiB

kthread/26-Apr-20124 KiB

lib/13-Aug-20144 KiB

mac/26-Apr-20124 KiB

mlock/14-Apr-20144 KiB

msdosfs/26-Apr-20124 KiB

net/27-Sep-20124 KiB

net80211/26-Apr-20124 KiB

netinet/26-Apr-20124 KiB

netinet6/26-Apr-20124 KiB

nfsmmap/26-Apr-20124 KiB

p1003_1b/31-Aug-20154 KiB

poll/26-Apr-20124 KiB

posixsem/09-Dec-20154 KiB

posixsem2/14-Apr-20144 KiB

priv/09-Dec-20154 KiB

pthread/26-Apr-20124 KiB

README07-Jul-20143.5 KiB

redzone9/26-Apr-20124 KiB

rpcsec_gss/09-Dec-20154 KiB

security/26-Apr-20124 KiB

sigqueue/26-Apr-20124 KiB

sockets/27-Jan-20144 KiB

sysvmsg/14-Apr-20144 KiB

sysvsem/14-Apr-20144 KiB

sysvshm/19-Mar-20154 KiB

tls/26-Apr-20124 KiB

tmpfs/14-Apr-20144 KiB

TODO26-Apr-20121.1 KiB

ufs/26-Apr-20124 KiB

usb/26-Apr-20124 KiB

usr.bin/20-Mar-20144 KiB

zfs/27-Oct-20144 KiB


3This directory is for regression test programs.
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.
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...
12The test protocol is quite simple.  At its most basic, each .t file should, 
13when run, print a line in this format:
15   1..m
17where m is the number of tests that will be run.
19Each test should produce a single line of output.  This line should start
20with one of
22   ok n
23   not ok n
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 
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,
35    ok 1 - netinet # skip 'options INET' not compiled in
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
43    not ok 1 - infiniteloop # TODO write test for an infinite loop
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:
49    http://search.cpan.org/~petdance/Test-Harness-2.42/lib/Test/Harness.pm
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.
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
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
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.
69To execute individual regression tests for binaries that you are
70developing, add their directory in the path before running the tests.
72cd /usr/src/tools/regression/usr.bin
73(PATH=/home/user/src/experimental/jot:$PATH ; make SUBDIR=jot)
75Please make a subdir per other regression test, and add a brief description to
76this file.
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