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 transforms the output of atf-run to different formats
37 .Op Fl o Ar fmt1:path1 Op .. Fl o Ar fmtN:pathN
44 and transforms it to different formats.
45 Some of these are user-friendly and others are machine-parseable, which
46 opens a wide range of possibilities to analyze the results of a test
50 below for more details on which these formats are.
52 In the first synopsis form,
56 through its standard input and, if no
58 options are given, prints a user-friendly report on its standard
64 options are provided (more than one are allowed), they specify the complete
65 list of reports to generate.
66 They are all generated simultaneously, and for obvious reasons, two reports
67 cannot be written to the same file.
68 Note that the default output is suppressed when
72 In the second synopsis form,
74 will print information about all supported options and their purpose.
76 The following options are available:
77 .Bl -tag -width XoXfmtXpathXX
79 Shows a short summary of all available options and their purpose.
81 Adds a new output format.
83 is one of the formats described later on in
86 specifies where the report will be written to.
87 Depending on the chosen format, this may refer to a single file or to
89 For those formats that write to a single file, specifying a
91 as the path will redirect the report to the standard output.
94 The following output formats are allowed:
95 .Bl -tag -width tickerXX
97 A machine-parseable Comma-Separated Values (CSV) file.
98 This file contains the results for all test cases and test programs.
99 Test cases are logged using the following syntax:
100 .Bd -literal -offset indent
101 tc, duration, test-program, test-case, result[, reason]
106 field for test cases is always one of
111 The last two are always followed by a reason.
113 Test programs are logged with the following syntax:
114 .Bd -literal -offset indent
115 tp, duration, test-program, result[, reason]
122 which denotes test programs that ran without any failure;
124 which refers to test programs in which one or more test cases failed;
127 which mentions those test programs that failed to execute by some reason.
128 The reason field is only available in the last case.
130 The time required to execute each test case and test program is
132 You should not rely on the order of the entries in the resulting output.
134 A user-friendly report that shows the progress of the test suite's
135 execution as it operates.
136 This type of report should always be redirected to a virtual terminal,
137 not a file, as it may use control sequences that will make the output
138 unreadable in regular files.
140 A report contained in a single XML file.
141 Ideal for later processing with
143 to generate nice HTML reports.
146 The most simple way of running a test suite is to pipe the output of
150 without any additional flags.
151 This will use the default output format, which is suitable to most users:
152 .Bd -literal -offset indent
156 In some situations, it may be interesting to get a machine-parseable file
157 aside from the standard report.
158 This can be done as follows:
159 .Bd -literal -offset indent
160 atf-run | atf-report -o csv:testsuite.csv -o ticker:-
163 Or if the standard report is not desired, thus achieving completely silent
165 atf-run | atf-report -o csv:testsuite.csv