Debian Codegraph @

utils/cec-compliance/cec-compliance.1.in

raw
1 .TH "CEC-COMPLIANCE" "1" "August 2016" "v4l-utils @MAN_PACKAGE_VERSION@" "User Commands"
2 .SH NAME
3 cec-compliance - An application to verify remote CEC devices
4 .SH SYNOPSIS
5 .B cec-compliance
6 [\fI-h\fR] [\fI-d <dev>\fR] [other options]
7 .SH DESCRIPTION
8 The cec-compliance utility can be used to test how well remote CEC devices
9 comply with the CEC specification. It can also be used to test the local
10 CEC adapter (with the \fI-A\fR option).
11
12 By default it will run through all tests, but if one or more of the feature
13 test options is given, then only those tests will be performed. A set of core
14 tests is always run.
15
16 The CEC adapter needs to be configured before it is used to run tests with
17 \fBcec-compliance\fR. Use \fBcec-ctl\fR for configuration.
18
19 If the CEC adapter has claimed several logical addresses, the test set is run
20 from each logical address in succession. The remote device needs to report a
21 valid physical address in order to run tests on it.
22
23 When running compliance tests, \fBcec-follower\fR should be run on the same
24 adapter. \fBcec-follower\fR will reply to messages that are not handled by
25 \fBcec-compliance\fR. \fBcec-follower\fR will also monitor the device under test
26 for behaviors that are not compliant with the specification. Before each test-run
27 \fBcec-follower\fR should be restarted if it is already running, to initialize
28 the emulated device with a clean and known initial state.
29
30 Some tests require interactive mode (with the \fI-i\fR option) to confirm that
31 the test passed. When in interactive mode, the user is asked to observe or
32 perform actions on the remote device. Some tests also give conclusive test
33 results when run in interactive mode.
34
35 When testing the local CEC adapter's compliance with the CEC API, there must be
36 at least one remote device present in order to test transmitting and receiving.
37
38 The compliance tests can have several possible outcomes besides passing and
39 failing:
40
41 OK The test passed.
42
43 OK (Unexpected) The test passed, but it was unexpected for the device
44 under test to support it. This might for example occur
45 when a TV replies to messages in the Deck Control
46 feature.
47
48 OK (Not Supported) The feature that was tested is not supported by the
49 device under test, and that feature was not mandatory for
50 the device to pass.
51
52 OK (Presumed) Nothing went wrong during the test, but the test cannot
53 positively verify that the required effects of the test
54 occurred. The test runner should verify that the test
55 passed by manually observing the device under test. This
56 is typically the test result for tests that send
57 messages that are not replied to, but which induce some
58 side effect on the device under test, such as a TV
59 switching to another input or sending a Remote Control
60 command.
61
62 OK (Refused) The device supports the feature or message being tested,
63 but responded <Feature Abort> ["Refused"] to indicate
64 that it cannot perform the given operation. This might
65 for example occur when trying to test the One Touch
66 Record feature on a TV with copy protection enabled.
67
68 FAIL The test failed and was expected to pass on the device.
69
70 OK (Expected Failure) Failed but this was expected. This can only happen
71 if the \fB\-\-expect\fR option was used that specified
72 that a particular test would return a FAIL result.
73
74 FAIL (Expected X, got Y) The test returned a different result than was expected.
75 This can only happen if the \fB\-\-expect\fR option was used
76 that specified that a particular test would return a specific
77 non-FAIL result.
78
79 Some tests depend on other tests being successful. These are not run if the
80 tests they depend on failed, and they will not be shown in the test listing.
81 .SH OPTIONS
82 .TP
83 \fB\-d\fR, \fB\-\-device\fR \fI<dev>\fR
84 Use device <dev> as the CEC device. If <dev> is a number, then /dev/cec<dev> is used.
85 .TP
86 \fB\-D\fR, \fB\-\-driver\fR \fI<drv>\fR
87 Use a cec device that has driver name \fI<drv>\fR, as returned by the CEC_ADAP_G_CAPS ioctl.
88 This option can be combined with \fB\-a\fR to uniquely identify a CEC device without
89 having to rely on the device node number.
90 .TP
91 \fB\-a\fR, \fB\-\-adapter\fR \fI<adap-name>\fR
92 Use a cec device that has adapter name \fI<adap-name>\fR, as returned by the CEC_ADAP_G_CAPS ioctl.
93 This option can be combined with \fB\-D\fR to uniquely identify a CEC device without
94 having to rely on the device node number.
95 .TP
96 \fB\-E\fR, \fB\-\-exit\-on\-fail\fR
97 Exit this application when the first failure occurs instead of continuing
98 with a possible inconsistent state.
99 .TP
100 \fB\-l\fR, \fB\-\-list\-tests\fR
101 List all tests and the possible test results. This is used by the \fB\-\-expect\fR
102 option.
103 .TP
104 \fB\-e\fR, \fB\-\-expect\fR \fI<test>\fR=\fI<result>\fR
105 \fB\-n\fR, \fB\-\-expect-with-no-warnings\fR \fI<test>\fR=\fI<result>\fR
106 Fail if the test gave a different result. The \fB\-\-list\-tests\fR option
107 lists all the possible tests and what result values can be used.
108
109 This can be used in test scripts to verify that a specific result was returned
110 by the test. One use-case is to verify that an optional feature is actually
111 supported, so an \fIOK\fR result instead of an \fIOK (Not Supported)\fR result is expected.
112
113 It can also be used to accept known failures. In that case the test will not
114 fail, but return an \fIOK (Expected Failure)\fR result.
115
116 The \fB\-\-expect-with-no-warnings\fR variant is more strict and will also
117 check that the test produced no warnings.
118 .TP
119 \fB\-v\fR, \fB\-\-verbose\fR
120 Turn on verbose reporting.
121 .TP
122 \fB\-\-version\fR
123 Show version information.
124 .TP
125 \fB\-w\fR, \fB\-\-wall\-clock\fR
126 Show timestamps as wall-clock time.
127 .TP
128 \fB\-S\fR, \fB\-\-show\-timestamp\fR
129 For each test, show the timestamp of when the test started.
130 .TP
131 \fB\-T\fR, \fB\-\-trace\fR
132 Trace all called ioctls. Useful for debugging.
133 .TP
134 \fB\-h\fR, \fB\-\-help\fR
135 Prints the help message.
136 .TP
137 \fB\-W\fR, \fB\-\-exit\-on\-warn\fR
138 Exit this application when the first warning occurs instead of continuing.
139 .TP
140 \fB\-s\fR, \fB\-\-skip\-info\fR
141 Skip the Driver Info output section.
142 .TP
143 \fB\-C\fR, \fB\-\-color\fR \fI<when>\fR
144 Highlight OK/warn/fail/FAIL strings with colors. OK is marked green, warn is
145 marked bold, and fail/FAIL are marked bright red if enabled. \fI<when>\fR can
146 be \fIalways\fR, \fInever\fR, or \fIauto\fR (the default).
147 .TP
148 \fB\-N\fR, \fB\-\-no\-warnings\fR
149 Turn off warning messages.
150 .TP
151 \fB\-r\fR, \fB\-\-remote\fR \fI<la>\fR
152 As initiator test the remote logical address <la> or all LAs if no LA was given.
153 .TP
154 \fB\-i\fR, \fB\-\-interactive\fR
155 Interactive mode when doing remote tests.
156 .TP
157 \fB\-R\fR, \fB\-\-reply\-threshold\fR \fI<timeout>\fR
158 Warn if replies take longer than this threshold (default 1000ms).
159 .TP
160 \fB\-t\fR, \fB\-\-timeout\fR \fI<secs>\fR
161 Set the standby/resume timeout to the given number of seconds. Default is 60s.
162 .TP
163 \fB\-A\fR, \fB\-\-test\-adapter\fR
164 Test the CEC adapter API
165 .TP
166 \fB\-F\fR, \fB\-\-test\-fuzzing\fR
167 Test the remote CEC adapter by randomly creating CEC messages.
168 This runs forever until an error occurs.
169 .TP
170 \fB\-\-test\-core\fR
171 Test the core functionality
172 .TP
173 \fB\-\-test\-audio\-rate\-control\fR
174 Test the Audio Rate Control feature
175 .TP
176 \fB\-\-test\-audio\-return\-channel\-control\fR
177 Test the Audio Return Channel Control feature
178 .TP
179 \fB\-\-test\-capability\-discovery\-and\-control\fR
180 Test the Capability Discovery and Control feature
181 .TP
182 \fB\-\-test\-deck\-control\fR
183 Test the Deck Control feature
184 .TP
185 \fB\-\-test\-device\-menu\-control\fR
186 Test the Device Menu Control feature
187 .TP
188 \fB\-\-test\-device\-osd\-transfer\fR
189 Test the Device OSD Transfer feature
190 .TP
191 \fB\-\-test\-dynamic\-audio\-lipsync\fR
192 Test the Dynamic Audio Lipsync feature
193 .TP
194 \fB\-\-test\-osd\-display\fR
195 Test the OSD Display feature
196 .TP
197 \fB\-\-test\-one\-touch\-play\fR
198 Test the One Touch Play feature
199 .TP
200 \fB\-\-test\-one\-touch\-record\fR
201 Test the One Touch Record feature
202 .TP
203 \fB\-\-test\-power\-status\fR
204 Test the Power Status feature
205 .TP
206 \fB\-\-test\-remote\-control\-passthrough\fR
207 Test the Remote Control Passthrough feature
208 .TP
209 \fB\-\-test\-routing\-control\fR
210 Test the Routing Control feature
211 .TP
212 \fB\-\-test\-system\-audio\-control\fR
213 Test the System Audio Control feature
214 .TP
215 \fB\-\-test\-system\-information\fR
216 Test the System Information feature
217 .TP
218 \fB\-\-test\-timer\-programming\fR
219 Test the Timer Programming feature
220 .TP
221 \fB\-\-test\-tuner\-control\fR
222 Test the Tuner Control feature
223 .TP
224 \fB\-\-test\-vendor\-specific\-commands\fR
225 Test the Vendor Specific Commands feature
226 .TP
227 \fB\-\-test\-standby\-resume\fR
228 Test standby and resume functionality. This will activate
229 testing of Standby, Give Device Power Status and One Touch Play.
230
231 .SH EXIT STATUS
232 On success, it returns 0. Otherwise, it will return the error code.
233 .SH EXAMPLE
234 We want to test the compliance of a TV when it is interacting with a Playback
235 device. The device node of the CEC adapter which the TV is connected to is
236 /dev/cec1.
237
238 The local CEC adapter first needs to be configured as a Playback device, and it
239 must have an appropriate physical address. It is important that the physical
240 address is correct, so as to not confuse the device under test. For example, if
241 the CEC adapter is connected to the first input of the TV, the physical address
242 1.0.0.0 should generally be used.
243
244 cec-ctl -d1 --playback --phys-addr 1.0.0.0
245
246 Most CEC adapters will automatically detect the physical address, and for those
247 adapters the \fI--phys-addr\fR option is not needed.
248
249 Next, \fBcec-follower\fR also has to be started on the same device:
250
251 cec-follower -d1
252
253 \fBcec-compliance\fR can now be run towards the TV by supplying the \fI-r\fR
254 option with the logical address 0:
255
256 cec-compliance -d1 -r0
257 .SH BUGS
258 This manual page is a work in progress.
259
260 Bug reports or questions about this utility should be sent to the [email protected]
261 mailinglist.
262 .SH SEE ALSO
263 \fBcec-follower\fR(1), \fBcec-ctl\fR(1)