diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-01-07 11:36:39 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2020-01-07 11:49:13 +0300 |
commit | 28e3e3199c0c25b6888df34cde0ebb7c2343f5b7 (patch) | |
tree | b11ca2980a3c67f452764e66253c9e0f83278542 /meson.build | |
parent | accd10dfea086104ae1119ba85c43d2b5ad4bd81 (diff) |
meson: add test wrapper
Allow us to run the tests using 'meson test'.
Needed for https://gitlab.freedesktop.org/gstreamer/gst-ci/issues/46
Diffstat (limited to 'meson.build')
-rw-r--r-- | meson.build | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/meson.build b/meson.build index 12881cd9d..4ba11b227 100644 --- a/meson.build +++ b/meson.build @@ -80,6 +80,8 @@ foreach d: deps endif endforeach +exclude = ','.join(exclude) + # Always build the target so we don't have to list all source files as input rs_plugins = custom_target('gst-plugins-rs', build_by_default: true, @@ -94,10 +96,20 @@ rs_plugins = custom_target('gst-plugins-rs', meson.current_source_dir(), meson.build_root(), target, - ext, - ','.join(exclude)]) + exclude, + ext]) # FIXME: raises a warning as the target has multiple outputs and meson will use # only the first one. All the plugins have the same basedir, hence # GST_PLUGIN_PATH will include them all, so that's ok. plugins = [rs_plugins] + +test('tests', + cargo_wrapper, + args: ['test', + meson.current_build_dir(), + meson.current_source_dir(), + meson.build_root(), + target, + exclude], + timeout: 600) |