1irtestcase(1)                    User Commands                   irtestcase(1)
2
3
4

NAME

6       irtestcase - Create or check decoding testcases.
7

SYNOPSIS

9       irtestcase [-l lircrc-file -p prog] <socket>
10
11       irtestcase [-l lircrc-file -p prog] -t testdata <socket>
12
13       irtestcase [-v|-h]
14
15

DESCRIPTION

17       irtestcase is a tool which can record keypresses from a remote together
18       with the decoded values. Given output from another session, it can also
19       verify that the decoding still works as expected.
20
21       In  the  first form irtestcase will wait for input and create log files
22       for it. Doing so, it also echoes received buttons on stdout.  There  is
23       no  way  to  stop the program in a clean way, just use ctrl-C when com‐
24       pleted.
25
26       In the second form it will feed the data  from  the  testdata  file  to
27       lircd and log the the decoded data as usually. Thus, this makes it pos‐
28       sible to test the output from the remote which generated the  testdata.
29       In this form lircd must be running with the "file" driver.
30
31       The optional socket is the lircd output socket (lircd must be running).
32       It defaults to LIRC_SOCKET_PATH in environment, falling back to a hard‐
33       coded default value (/var/run/lirc/lircd).
34
35

OPTIONS

37       -l, --lircrc  <lircrc config file>
38           Log  also applications strings (as ircat(1)) using lircrc type con‐
39           fig file.
40
41
42       -p, --prog <program id>
43           When using -l/--lircrc,  the  program  name  matching  the  PROG  =
44           entries in lircrc
45
46
47       -t, --testdata
48           Use  data  i file instead of "live" input from the remote. This can
49           be the durations.log file from a previous run, see  FILES.  It  can
50           also be logged output from mode2(1).
51
52
53       -v , --version
54           Print version and exit.
55
56
57       -h , --help
58           Print help message.
59
60

ENVIRONMENT

62       irtestcase respects LIRC_SOCKET_PATH which if defined holds the path to
63       the lircd output socket to listen to.
64
65

FILES

67       /tmp/irtestcase
68           irtestcase creates files  in  /tmp/irtestcase  (hardcoded,  sorry).
69           After a successful run here is:
70
71           durations.log
72               Printable space/pulse durations in the same format as mode2(1).
73               This file is usable as -t/--testdata input.
74
75           codes.log
76               The decoded  buttons, in same format as irw(1).
77
78           app_strings.log
79               The application strings, as presented by ircat(1).
80
81       ~/.cache/irtestcase.log
82           Debug log. Setting the XDG_CACHE_HOME  environment  variable  relo‐
83           cates  this  file  to $XDG_CACHE_HOME/irtestcase.log. The amount of
84           logging respects the LIRC_LOGLEVEL environment variable, defaulting
85           to the debug value in the [lircd] section of lirc_options.conf.
86
87

SEE ALSO

89       The  documentation  for  lirc  is  maintained  as  html pages. They are
90       located under html/ in the documentation directory.
91
92
93
94irtestcase 0.10.0            Last change: Oct 2015               irtestcase(1)
Impressum