summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst17
1 files changed, 17 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 27b24d0e98..4c208fe025 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -6184,3 +6184,20 @@ Miscellaneous
See the FFmpeg libavfilter documentation for details on the available
filters.
+
+Debugging
+---------
+
+``--unittest=<name>``
+ Run an internal unit test. There are multiple, and the name specifies which.
+
+ The special value ``all-simple`` runs all tests which do not need further
+ setup (other arguments and such). Some tests may need additional arguments
+ to do anything useful.
+
+ On success, the player binary exits with exit status 0, otherwise it returns
+ with an undefined non-0 exit status (it may crash or abort itself on test
+ failures).
+
+ This is only enabled if built with ``--enable-tests``, and should normally
+ be enabled and used by developers only.