irtestcase(1)
π irtestcase(1) β the lirc testcase bestie π
okay so this is the manual page for irtestcase, a User Commands situation, and honestly? it's giving "record the vibe, replay the vibe" β¨
πΈ NAME πΈ
irtestcase β create or check decoding testcases. fr fr that's the whole job.
π SYNOPSIS π
irtestcase [-l lircrc-file -p prog] <socket>
irtestcase [-l lircrc-file -p prog] -t testdata <socket>
irtestcase [-v|-h]
β¨ DESCRIPTION β¨
okay so irtestcase is that girl who records keypresses from a remote together with the decoded values. and then β plot twist β you can hand her the output from another session and she'll verify that the decoding still works like it's supposed to. slay π
In the first form, irtestcase just... waits. for input. and creates log files for it. while she's doing that she also echoes the received buttons on stdout. π¦
β οΈ not me having to tell you this: there is no way to stop the program in a clean way. just hit ctrl-C when you're done. periodt. π
In the second form she feeds the data from the testdata file to lircd and logs the decoded data as usual. which means you can test the output from the remote that generated the testdata in the first place. iykyk. in this form lircd must be running with the "file" driver. no cap. π
The optional socket is the lircd output socket (lircd must be running, bestie). it defaults to LIRC_SOCKET_PATH in the environment, falling back to a hardcoded default value (/var/run/lirc/lircd). π«Ά
π OPTIONS π
-l,--lircrc<lircrc config file> β log also applications strings (likeircat(1)does) using a lircrc type config file. obsessed with her tbh-p,--prog<program id> β when you're using-l/--lircrc, this is the program name that matches thePROG =entries in lircrc. β-t,--testdataβ use data from a file instead of "live" input from the remote. this can be thedurations.logfile from a previous run, see FILES below. it can also be logged output frommode2(1). π-v,--versionβ print version and exit. short and sweet.-h,--helpβ print help message. π
π§ ENVIRONMENT π§
irtestcase respects LIRC_SOCKET_PATH, which β if defined β holds the path to the lircd output socket to listen to. the vibe check of paths, honestly.
π¦ FILES π¦
/tmp/irtestcaseβirtestcasecreates files in/tmp/irtestcase(hardcoded, sorry π). after a successful run, here's what you get:~/.cache/irtestcase.logβ debug log. setting theXDG_CACHE_HOMEenvironment variable relocates this file to$XDG_CACHE_HOME/irtestcase.log. the amount of logging respects theLIRC_LOGLEVELenvironment variable, defaulting to the debug value in the[lircd]section oflirc_options.conf. she's thorough, we love that for her.
π SEE ALSO π
the documentation for lirc is maintained as html pages. they are located under html/ in the documentation directory. go read them bestie, they ate. π
and that's the whole page!! π«Ά this was irtestcase 0.10.2, last change Oct 2015 β iconic behavior, main character energy, no notes ππ
β¨
π¦ where this page comes from
- alpine 3.24: lirc-doc 0.10.2-r4 Β· GPL-2.0-only
- debian trixie: lirc 0.10.2-0.10 Β· GPL-2.0-or-later
- fedora 43: lirc-core 0.10.2-4.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 43: lirc-core 0.10.2-4.fc43 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 44: lirc-core 0.10.2-5.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- fedora 44: lirc-core 0.10.2-5.fc44 Β· GPL-2.0-only AND LicenseRef-Callaway-BSD
- nixos 26.05: lirc 0.10.2
- nixpkgs unstable: lirc 0.10.2
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- opensuse-leap 16.0: lirc-core 0.10.2-160000.2.2 Β· GPL-2.0-or-later
- ubuntu noble: lirc 0.10.2-0.8build1 Β· GPL-2.0-or-later
- ubuntu questing: lirc 0.10.2-0.10build1
- ubuntu resolute: lirc 0.10.2-0.10ubuntu1 Β· GPL-2.0-or-later
- ubuntu stonking: lirc 0.10.2-0.11 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms