:tocdepth: 0 .. _/spec/test-checks: Tests Checks ============ In some cases we want to run additional checks while running a test. A nice example is a check for unexpected SELinux AVCs produced during the test, this can point to additional issues the user can run into. Another useful checks would be kernel panic detection, core dump collection or collection of system logs. See the :ref:`/spec/tests/check` key for specification and more examples. Below, you will find test check plugins shipped with tmt. .. _spec/test-checks/avc: avc ^^^ Check for SELinux AVC denials raised during the test. The check collects SELinux AVC denials from the audit log, gathers details about them, and together with versions of the ``selinux-policy`` and related packages stores them in a file after the test. .. code-block:: yaml check: - name: avc .. versionadded:: 1.28 **Configuration** enabled: ``true | false`` Whether the check is enabled or not. .. _spec/test-checks/dmesg: dmesg ^^^^^ Save the content of kernel ring buffer (aka "console") into a file. The check saves one file before the test, and then again when test finishes. .. code-block:: yaml check: - name: dmesg .. versionadded:: 1.28 **Configuration** enabled: ``true | false`` Whether the check is enabled or not.