1 .\" Copyright 2012 Google Inc.
2 .\" All rights reserved.
4 .\" Redistribution and use in source and binary forms, with or without
5 .\" modification, are permitted provided that the following conditions are
8 .\" * Redistributions of source code must retain the above copyright
9 .\" notice, this list of conditions and the following disclaimer.
10 .\" * Redistributions in binary form must reproduce the above copyright
11 .\" notice, this list of conditions and the following disclaimer in the
12 .\" documentation and/or other materials provided with the distribution.
13 .\" * Neither the name of Google Inc. nor the names of its contributors
14 .\" may be used to endorse or promote products derived from this software
15 .\" without specific prior written permission.
17 .\" THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 .\" "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 .\" LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 .\" A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 .\" OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 .\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 .\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 .\" OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 .Dt KYUA-TESTER-LIST 5
33 .Nd The test cases list printed by the Kyua testers
35 .Fn test_case properties_table
39 subcommand of the various Kyua testers outputs the list of tests cases within a
40 given test program. The format of the list of test cases is a Lua script in
41 which every line invokes the
43 function to define a test case. The
45 runtime engine reads this list in order to determine what tests can be run.
49 function takes a table as its only argument, and the table contains the
50 definition of the metadata properties of the test case. A typical invocation of
51 this function looks like this:
53 test_case{name='THE-NAME', ...}
58 denote optional metadata values attached to the test case. The supported
59 metadata properties are the following:
60 .Bl -tag -width allowedXarchitecturesXX
61 .It allowed_architectures
62 Whitespace-separated list of machine architecture names allowed by the test
63 case. If empty or not defined, the test case is allowed to run on any machine
66 Whitespace-separated list of machine platform names allowed by the test case.
67 If empty or not defined, the test case is allowed to run on any machine
70 Textual description of the test case.
74 denotes that the test case has a cleanup routine.
76 Whitespace-separated list of configuration variables that the test case requires
77 to be defined before it can run.
79 Whitespace-separated list of paths that the test case requires to exist before
82 Amount of physical memory that the test case needs to run successfully.
84 Whitespace-separated list of basenames or absolute paths pointing to executable
85 binaries that the test case requires to exist before it can run.
87 If empty, the test case has no restrictions on the calling user for it to run.
90 the test case needs to not run as root.
93 the test case must run as root.
95 Amount of seconds that the test case is allowed to execute before being killed.
97 Custom variable defined by the test case, where
99 denotes the name of the variable.
102 .Xr kyua-atf-tester 1 ,
103 .Xr kyua-plain-tester 1