1*11be35a1SLionel Sambuc.\" Copyright 2012 Google Inc.
2*11be35a1SLionel Sambuc.\" All rights reserved.
3*11be35a1SLionel Sambuc.\"
4*11be35a1SLionel Sambuc.\" Redistribution and use in source and binary forms, with or without
5*11be35a1SLionel Sambuc.\" modification, are permitted provided that the following conditions are
6*11be35a1SLionel Sambuc.\" met:
7*11be35a1SLionel Sambuc.\"
8*11be35a1SLionel Sambuc.\" * Redistributions of source code must retain the above copyright
9*11be35a1SLionel Sambuc.\"   notice, this list of conditions and the following disclaimer.
10*11be35a1SLionel Sambuc.\" * Redistributions in binary form must reproduce the above copyright
11*11be35a1SLionel Sambuc.\"   notice, this list of conditions and the following disclaimer in the
12*11be35a1SLionel Sambuc.\"   documentation and/or other materials provided with the distribution.
13*11be35a1SLionel Sambuc.\" * Neither the name of Google Inc. nor the names of its contributors
14*11be35a1SLionel Sambuc.\"   may be used to endorse or promote products derived from this software
15*11be35a1SLionel Sambuc.\"   without specific prior written permission.
16*11be35a1SLionel Sambuc.\"
17*11be35a1SLionel Sambuc.\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18*11be35a1SLionel Sambuc.\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19*11be35a1SLionel Sambuc.\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20*11be35a1SLionel Sambuc.\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21*11be35a1SLionel Sambuc.\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22*11be35a1SLionel Sambuc.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23*11be35a1SLionel Sambuc.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24*11be35a1SLionel Sambuc.\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25*11be35a1SLionel Sambuc.\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26*11be35a1SLionel Sambuc.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27*11be35a1SLionel Sambuc.\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28*11be35a1SLionel Sambuc.Dd December 26, 2012
29*11be35a1SLionel Sambuc.Dt KYUA-TESTER-LIST 5
30*11be35a1SLionel Sambuc.Os
31*11be35a1SLionel Sambuc.Sh NAME
32*11be35a1SLionel Sambuc.Nm kyua-tester-list
33*11be35a1SLionel Sambuc.Nd The test cases list printed by the Kyua testers
34*11be35a1SLionel Sambuc.Sh SYNOPSIS
35*11be35a1SLionel Sambuc.Fn test_case properties_table
36*11be35a1SLionel Sambuc.Sh DESCRIPTION
37*11be35a1SLionel SambucThe
38*11be35a1SLionel Sambuc.Sq list
39*11be35a1SLionel Sambucsubcommand of the various Kyua testers outputs the list of tests cases within a
40*11be35a1SLionel Sambucgiven test program.  The format of the list of test cases is a Lua script in
41*11be35a1SLionel Sambucwhich every line invokes the
42*11be35a1SLionel Sambuc.Fn test_case
43*11be35a1SLionel Sambucfunction to define a test case.  The
44*11be35a1SLionel Sambuc.Xr kyua 1
45*11be35a1SLionel Sambucruntime engine reads this list in order to determine what tests can be run.
46*11be35a1SLionel Sambuc.Pp
47*11be35a1SLionel SambucThe
48*11be35a1SLionel Sambuc.Fn test_case
49*11be35a1SLionel Sambucfunction takes a table as its only argument, and the table contains the
50*11be35a1SLionel Sambucdefinition of the metadata properties of the test case.  A typical invocation of
51*11be35a1SLionel Sambucthis function looks like this:
52*11be35a1SLionel Sambuc.Bd -literal -indent
53*11be35a1SLionel Sambuctest_case{name='THE-NAME', ...}
54*11be35a1SLionel Sambuc.Ed
55*11be35a1SLionel Sambuc.Pp
56*11be35a1SLionel SambucWhere
57*11be35a1SLionel Sambuc.Sq ...
58*11be35a1SLionel Sambucdenote optional metadata values attached to the test case.  The supported
59*11be35a1SLionel Sambucmetadata properties are the following:
60*11be35a1SLionel Sambuc.Bl -tag -width allowedXarchitecturesXX
61*11be35a1SLionel Sambuc.It allowed_architectures
62*11be35a1SLionel SambucWhitespace-separated list of machine architecture names allowed by the test
63*11be35a1SLionel Sambuccase.  If empty or not defined, the test case is allowed to run on any machine
64*11be35a1SLionel Sambucarchitecture.
65*11be35a1SLionel Sambuc.It allowed_platforms
66*11be35a1SLionel SambucWhitespace-separated list of machine platform names allowed by the test case.
67*11be35a1SLionel SambucIf empty or not defined, the test case is allowed to run on any machine
68*11be35a1SLionel Sambucplatform.
69*11be35a1SLionel Sambuc.It description
70*11be35a1SLionel SambucTextual description of the test case.
71*11be35a1SLionel Sambuc.It has_cleanup
72*11be35a1SLionel SambucIf
73*11be35a1SLionel Sambuc.Sq true ,
74*11be35a1SLionel Sambucdenotes that the test case has a cleanup routine.
75*11be35a1SLionel Sambuc.It required_configs
76*11be35a1SLionel SambucWhitespace-separated list of configuration variables that the test case requires
77*11be35a1SLionel Sambucto be defined before it can run.
78*11be35a1SLionel Sambuc.It required_files
79*11be35a1SLionel SambucWhitespace-separated list of paths that the test case requires to exist before
80*11be35a1SLionel Sambucit can run.
81*11be35a1SLionel Sambuc.It required_memory
82*11be35a1SLionel SambucAmount of physical memory that the test case needs to run successfully.
83*11be35a1SLionel Sambuc.It required_programs
84*11be35a1SLionel SambucWhitespace-separated list of basenames or absolute paths pointing to executable
85*11be35a1SLionel Sambucbinaries that the test case requires to exist before it can run.
86*11be35a1SLionel Sambuc.It required_user
87*11be35a1SLionel SambucIf empty, the test case has no restrictions on the calling user for it to run.
88*11be35a1SLionel SambucIf set to
89*11be35a1SLionel Sambuc.Sq unprivileged ,
90*11be35a1SLionel Sambucthe test case needs to not run as root.
91*11be35a1SLionel SambucIf set to
92*11be35a1SLionel Sambuc.Sq root ,
93*11be35a1SLionel Sambucthe test case must run as root.
94*11be35a1SLionel Sambuc.It timeout
95*11be35a1SLionel SambucAmount of seconds that the test case is allowed to execute before being killed.
96*11be35a1SLionel Sambuc.It X-NAME
97*11be35a1SLionel SambucCustom variable defined by the test case, where
98*11be35a1SLionel Sambuc.Sq NAME
99*11be35a1SLionel Sambucdenotes the name of the variable.
100*11be35a1SLionel Sambuc.El
101*11be35a1SLionel Sambuc.Sh SEE ALSO
102*11be35a1SLionel Sambuc.Xr kyua-atf-tester 1 ,
103*11be35a1SLionel Sambuc.Xr kyua-plain-tester 1
104