2 .\" Automated Testing Framework (atf)
4 .\" Copyright (c) 2007 The NetBSD Foundation, Inc.
5 .\" All rights reserved.
7 .\" Redistribution and use in source and binary forms, with or without
8 .\" modification, are permitted provided that the following conditions
10 .\" 1. Redistributions of source code must retain the above copyright
11 .\" notice, this list of conditions and the following disclaimer.
12 .\" 2. Redistributions in binary form must reproduce the above copyright
13 .\" notice, this list of conditions and the following disclaimer in the
14 .\" documentation and/or other materials provided with the distribution.
16 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
17 .\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
18 .\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19 .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20 .\" IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY
21 .\" DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22 .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
23 .\" GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
24 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
25 .\" IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
26 .\" OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
27 .\" IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34 .Nd introduction to the Automated Testing Framework
36 .Em IMPORTANT: If you are here because you want to know how to run the tests in
38 .Em you most likely want to read the
40 .Em manual page instead.
42 The Automated Testing Framework
44 is a collection of libraries and utilities designed to ease unattended
45 application testing in the hands of developers and end users of a specific
48 As regards developers,
50 provides the necessary means to easily create
51 test suites composed of multiple test programs, which in turn are a
52 collection of test cases.
53 It also attempts to simplify the debugging of problems when these test
54 cases detect an error by providing as much information as possible
57 As regards users, it simplifies the process of running the test suites and,
58 in special, encourages end users to run them often: they do not need to
59 have source trees around nor any other development tools installed to be
60 able to certify that a given piece of software works on their machine as
63 If your operating systems distributes
65 it is possible that it provides an introductory
68 You are encouraged to read it now.
71 is distributed under the terms of the TNF License, a 2-clause BSD license.
72 For more details please see:
73 .Bd -literal -offset indent
74 .Pa __DOCDIR__/COPYING
78 is a highly modular piece of software.
79 It provides a couple of libraries to ease the implementation of test
80 programs: one for the C and C++ languages and another one for shell
82 It also includes multiple small utilities that follow the principle of
83 doing a single thing but doing it right.
84 This section outlines which these components are.
87 .Bl -tag -width atfXtestXprogramXXXXX
89 Executes a command and checks that its exit code, its standard output
90 and its standard error output match pre-specified expected values.
92 Queries static configuration information.
94 Converts the output of
96 to user-friendly and/or machine-parseable reports.
98 Automates the execution of a series of test programs and collects their
99 results in a unified report.
101 Shell interpreter for shell-based test programs.
104 Programming interfaces:
105 .Bl -tag -width atfXtestXprogramXXXXX
107 C programming interface for test programs.
109 C++ programming interface for test programs.
111 POSIX shell programming interface for test programs.
115 .Bl -tag -width atfXtestXprogramXXXXX
117 Description of the machine-parseable data formats used by the tools.
118 .It Xr atf-test-case 4
119 Generic description of test cases, independent of the language they are
121 .It Xr atf-test-program 1
122 Common interface provided by the test programs written using the
126 .Ss Recommended reading order
127 For end users wishing to run tests:
131 (only if provided by your operating system).
133 .Xr atf-test-program 1
142 For developers wanting to write their own tests:
145 Everything recommended to users.
160 For those interested in
165 Everything recommended to users.
167 Everything recommended to developers.
175 started as a Google Summer of Code 2007 project mentored by The NetBSD
177 Its original goal was to provide a testing framework for The NetBSD
178 Operating System, but it grew as an independent project because the
179 framework itself did not need to be tied to a specific operating system.
181 For more details on this subject, please see:
182 .Bd -literal -offset indent
184 .Pa __DOCDIR__/ROADMAP
187 For more details on the people that made
189 possible, please see:
190 .Bd -literal -offset indent
191 .Pa __DOCDIR__/AUTHORS