meson: Use the tests option for validate
authorNirbheek Chauhan <nirbheek@centricular.com>
Thu, 11 Jun 2020 07:46:40 +0000 (13:16 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Thu, 11 Jun 2020 08:31:01 +0000 (14:01 +0530)
commit30509252ca8dfa6e3146996c083076abf4aef9c7
treed227e3a5ff4f64f81889883d003a9b38ef419549
parent4986138c1684afa05a723be51068590ca2c020bd
meson: Use the tests option for validate

This is what gstreamer core does too, and avoids a configure error
when tests are disabled globally. Also print a useful error when
gst_tester is not found from the gstreamer subproject.

This broke in https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/667

Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-base/-/merge_requests/697>
meson_options.txt
tests/meson.build
tests/validate/meson.build