diff options
author | Dudemanguy <random342@airmail.cc> | 2023-02-25 21:50:08 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2023-03-02 15:45:27 +0000 |
commit | 9db818279aa63d071f2bca369235285314444dcd (patch) | |
tree | 9aafc5cf73e19ae8ea69751c060cab9766a6b9a4 /meson_options.txt | |
parent | 61532421571f972f076b3700d7ae468c0a0438c0 (diff) | |
download | mpv-9db818279aa63d071f2bca369235285314444dcd.tar.bz2 mpv-9db818279aa63d071f2bca369235285314444dcd.tar.xz |
test: integrate unittests with meson
This reworks all of mpv's unit tests so they are compiled as separate
executables (optional) and run via meson test. Because most of the tests
are dependant on mpv's internals, existing compiled objects are
leveraged to create static libs and used when necessary. As an aside, a
function was moved into video/out/gpu/utils for sanity's sake (otherwise
most of vo would have been needed). As a plus, meson multithreads
running tests automatically and also the output no longer pollutes the
source directory. There are tests that can break due to ffmpeg changes,
so they require a specific minimum libavutil version to be built.
Diffstat (limited to 'meson_options.txt')
-rw-r--r-- | meson_options.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meson_options.txt b/meson_options.txt index 27af048c37..6e9269ffb4 100644 --- a/meson_options.txt +++ b/meson_options.txt @@ -3,7 +3,7 @@ option('gpl', type: 'boolean', value: true, description: 'GPL (version 2 or late option('cplayer', type: 'boolean', value: true, description: 'mpv CLI player') option('libmpv', type: 'boolean', value: false, description: 'libmpv library') option('build-date', type: 'boolean', value: true, description: 'whether to include binary compile time') -option('tests', type: 'boolean', value: false, description: 'unit tests (development only)') +option('tests', type: 'boolean', value: false, description: 'meson unit tests') # Reminder: normally always built, but enabled by MPV_LEAK_REPORT. # Building it can be disabled only by defining NDEBUG through CFLAGS. option('ta-leak-report', type: 'boolean', value: false, description: 'enable ta leak report by default (development only)') |