1 .\" $OpenBSD: bsd.regress.mk.5,v 1.7 2013/06/17 11:57:10 schwarze Exp $
3 .\" Copyright (c) 2002 Anil Madhavapeddy
4 .\" Copyright (c) 2000 Marc Espie
6 .\" All rights reserved.
8 .\" Redistribution and use in source and binary forms, with or without
9 .\" modification, are permitted provided that the following conditions
11 .\" 1. Redistributions of source code must retain the above copyright
12 .\" notice, this list of conditions and the following disclaimer.
13 .\" 2. Redistributions in binary form must reproduce the above copyright
14 .\" notice, this list of conditions and the following disclaimer in the
15 .\" documentation and/or other materials provided with the distribution.
17 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
18 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
19 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
21 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
22 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 .Dd $Mdocdate: June 17 2013 $
33 .Nd regression test master Makefile fragment
35 .Fd .include <bsd.regress.mk>
38 holds the standard routines used by the source regression tests.
39 Some variables and targets are for its internal use only.
40 The rest are documented here.
42 Since this file also includes
46 Makefile variables may be used to build the regression
49 .Bl -tag -width regress
51 Build any dependencies required to carry out the current set
54 Executes all of the regression targets defined in the Makefile.
56 Runs an individual regression test.
57 If the exit status of the program indicates an error or timeout,
58 then a failure is logged, otherwise the test is marked as a success.
61 .Bl -tag -width REGRESS_LOG
62 .It Ev REGRESS_FAIL_EARLY
63 If this variable is set to anything but
67 target will abort as soon as a test fails.
69 Points to the fully-qualified path of a file to which regression
73 .It Ev REGRESS_MAXTIME
74 Maximum limit of CPU seconds to spend on the regression test.
75 Exceeding this time will result in a failure being logged.
76 .It Ev REGRESS_ROOT_TARGETS
77 Targets for which root access is required to run the test.
80 variable is invoked for these targets.
83 .It Ev REGRESS_SKIP_SLOW
84 If this variable is not empty, skip over all the regression
85 tests which have been marked as being 'slow' using the
86 .Ev REGRESS_SLOW_TARGETS
88 .It Ev REGRESS_SLOW_TARGETS
89 Targets which are defined as 'slow'.
90 All of these tests can be skipped by setting the
93 .It Ev REGRESS_TARGETS
94 Targets which are invoked to run the set of regression tests
97 .Ar run-regress-${PROG} .
99 Location of the sudo command, used to switch to root for certain
100 test targets which require it.
105 The regression system originally came from
107 with many tests added by
110 The current Makefile framework was written by Artur Grabowski
113 .Sh BUGS AND LIMITATIONS
114 The build system is unable to distinguish between timeouts due to
116 being exceeded, or a genuine failure occurring.