libinput-test-suite.man 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. .TH libinput-test-suite "1" "" "libinput @LIBINPUT_VERSION@" "libinput Manual"
  2. .SH NAME
  3. libinput\-test\-suite \- run the libinput test suite
  4. .SH SYNOPSIS
  5. .B libinput test\-suite [OPTIONS]
  6. .PP
  7. .SH DESCRIPTION
  8. .PP
  9. The
  10. .B "libinput test\-suite"
  11. command runs the libinput test suite.
  12. Its primary purpose is to verify distribution composes after package updates. Test
  13. suite failures usually indicate missing patches and/or incompatible lower
  14. system layers.
  15. .PP
  16. .B The test suite should not be run by users. Data loss is possible.
  17. .PP
  18. The test suite must be run as root. The test suite installs several files
  19. on the host system (see section \fBFILES\fR), runs system commands and
  20. creates virtual kernel devices via uinput. These devices will interfere with
  21. any active session and may cause data loss.
  22. .PP
  23. It is recommended that the test suite is run in a virtual machine and/or on
  24. a system not otherwise in use. A graphical environment is not required to
  25. run the test suite.
  26. .SH OPTIONS
  27. Note that the options may change in future releases of libinput. Test names,
  28. test device names and test group names may change at any time.
  29. .TP 8
  30. .B \-\-filter\-test \fI"testname"\fB
  31. A glob limiting the tests to run. Specifying a filter sets the
  32. \fB\-\-jobs\fR default to 1.
  33. .TP 8
  34. .B \-\-filter\-device \fI"devicename"\fB
  35. A glob limiting the devices to run tests for. Specifying a filter sets the
  36. \fB\-\-jobs\fR default to 1.
  37. .TP 8
  38. .B \-\-filter\-group \fI"groupname"\fB
  39. A glob limiting the tests to (arbitrarily named) groups. Specifying a filter sets the
  40. \fB\-\-jobs\fR default to 1.
  41. .TP 8
  42. .B \-\-filter\-deviceless
  43. \fBFOR INTERNAL USE ONLY\fR
  44. .TP 8
  45. .B \-h, \-\-help
  46. Print help
  47. .TP 8
  48. .B \-j, \-\-jobs 8
  49. Number of parallel processes to run. Default: 8.
  50. .TP 8
  51. .B \-\-list
  52. List all test cases and the devices they are run for. Test names, test device
  53. names and test group names may change at any time.
  54. .TP 8
  55. .B \-\-verbose
  56. Enable verbose output, including libinput debug messages.
  57. .SH FILES
  58. The following directories are modified:
  59. .TP 8
  60. .B @LIBINPUT_DATA_DIR@
  61. Test device-specific quirks are installed in this directory with a custom
  62. prefix. Files in this directory are untouched but new files are installed
  63. and removed on exit. Existing files (e.g. from a previous aborted run) with
  64. the same name will be silently overwritten and removed.
  65. .TP 8
  66. .B /run/udev/rules.d
  67. Test-specific udev rules are installed in this directory and removed on
  68. exit.
  69. .PP
  70. .SH SYSTEM SETUP
  71. The \fBxorg.conf.d(5)\fR snippet below ensures the X server ignores the test
  72. devices created by this test suite:
  73. .PP
  74. .RS 4
  75. .nf
  76. .B "Section ""InputClass""
  77. .B " Identifier ""Ignore libinput test suite devices""
  78. .B " MatchProduct ""litest""
  79. .B " Option ""Ignore"" ""on""
  80. .B "EndSection"
  81. .fi
  82. .RE
  83. .PP
  84. No configuration is required for Wayland compositors. libinput's default
  85. mode will ignore test devices from this test suite.
  86. .SH BUGS
  87. Some tests are sensitive to timing. Where a system is under heavy load,
  88. a test may fail. Re-running the test with \fB\-\-filter-test\fR can help
  89. verify whether a test case failure was a true failure.
  90. .SH LIBINPUT
  91. Part of the
  92. .B libinput(1)
  93. suite