1 .\" Copyright (C) 2018 Free Software Foundation, Inc.
2 .\" You may distribute this file under the terms of the GNU Free
3 .\" Documentation License.
6 .Dt DEJAGNU-REPORT-CARD 1 URM
8 .Nm dejagnu\ report\ card
9 .Nd summarize results from testing multiple tools
11 .Nm dejagnu\ report\ card
12 .Oo Ao Ar option Ac \*(Ba Ao Ar tool Ac \*(Ba Ao Ar file Ac Oc ...
16 command displays results from testing multiple tools in a tabular format.
17 The produced table lists, for each tool (and if multiple passes were run,
18 each pass) the number of tests passed, failed, unsupported, unresolved, and
19 untested. Tests that are expected to fail are counted in separate columns
20 from tests expected to pass, but "known" failures and "expected" failures
21 are summarized together. If a test generated warnings or errors, a tag
25 is appended at the end of the relevant line.
27 Aside from options, the argument list may include tool or file names. The
29 command prefers to read DejaGnu summary files and will translate names accordingly:
30 .Bl -tag -width ".Pa *.sum"
40 is appended to select a summary file. This processing is done for
41 convenience when using Readline file name completion in a shell, which will
49 .Bl -tag -width ".Fl v , -verbose"
51 Emit additional output describing the operation of
58 command produces its output by reading the summary files produced by
59 DejaGnu and counting "PASS", "FAIL", etc.
61 If no names are given as arguments, all files matching
63 in the current directory are read.
65 .Ss A simple example from DejaGnu's own testsuite
68 \ __________________________________________________
69 \ / PASS FAIL ?PASS ?FAIL UNSUP UNRES UNTEST
70 \ |--------------------------------------------------
71 \ launcher | 52 0 0 0 0 0 0
72 libdejagnu | 5 0 0 0 0 0 0
73 \ runtest | 135 0 0 0 0 0 0
74 \ |--------------------------------------------------
76 \ \\__________________________________________________
79 Three tools were tested, with a total of 192 tests, all expected to pass.
80 In this example, all tests did pass, so all other columns are zero. The
84 columns count tests known or expected to fail that either unexpectedly
85 passed or failed as expected. The remaining three columns count the
86 exceptional results for unsupported tests, unresolved tests and stub tests
87 that simply declare themselves untested.
90 .Ss The same example after tests were added for dejagnu-report-card
93 \ __________________________________________________
94 \ / PASS FAIL ?PASS ?FAIL UNSUP UNRES UNTEST
95 \ |--------------------------------------------------
96 \ launcher | 52 0 0 0 0 0 0
97 \ libdejagnu | 5 0 0 0 0 0 0
98 report-card / awk | 36 0 0 0 0 0 0
99 report-card / sh | 36 0 0 0 0 0 0
100 report-card / tcl | 36 0 0 0 0 0 0
101 \ runtest | 135 0 0 0 0 0 0
102 \ |--------------------------------------------------
103 \ awk | 36 0 0 0 0 0 0
104 \ sh | 36 0 0 0 0 0 0
105 \ tcl | 36 0 0 0 0 0 0
106 \ |--------------------------------------------------
108 \ \\__________________________________________________
113 tool has been added, with three passes, one for each implementation. (The
114 shell and Tcl implementations were later dropped to reduce future
115 maintenance burden.) As before, all tests passed as expected. The
116 interesting difference from the previous example is the use of DejaGnu's
117 multipass testing feature and the additional per-pass summary lines added.
118 For this example, only the
120 tool uses multipass testing, so each pass total is simply the count of
123 instead of a distinct total.
125 Also note that the command used to invoke
127 is slightly different here. The
129 launcher will also accept multiple words joined with dashes into a single
130 argument. This allows individual words in a command name to be separated
131 with either dashes or spaces on the command line interchangeably.
136 The full documentation for DejaGnu is maintained as a Texinfo manual. If the
138 program is properly installed at your site, the command
140 should give you access to the complete manual.
144 .\" LocalWords: Dt dejagnu URM Nm Ao Oo Oc DejaGnu Xr runtest DejaGnu's Bd Ql
145 .\" LocalWords: testsuite UNSUP UNRES UNTEST libdejagnu Readline Ss tcl awk
146 .\" LocalWords: ne multipass