diff options
author | Kieran Bingham <kieran.bingham@ideasonboard.com> | 2019-01-01 14:48:51 +0000 |
---|---|---|
committer | Jacopo Mondi <jacopo@jmondi.org> | 2019-01-14 17:54:56 +0100 |
commit | 4bf28fa225f6ef36e51e0dd12de8432b98137c51 (patch) | |
tree | d577dce924b70157dcae3b2d449a053a6cebf467 /test/media_device | |
parent | e3c49948123d6b66fce9bc094526895a11dae207 (diff) |
test: media_device: Convert to foreach
Prevent duplication of boilerplate code as the suite grows by
establishing the foreach pattern in the media_device test suite.
Signed-off-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
Diffstat (limited to 'test/media_device')
-rw-r--r-- | test/media_device/meson.build | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/test/media_device/meson.build b/test/media_device/meson.build index a7ebed10..40f9ffa4 100644 --- a/test/media_device/meson.build +++ b/test/media_device/meson.build @@ -1,5 +1,11 @@ -media_device_test = executable('media_device_test', 'media_device_test.cpp', - link_with : test_libraries, - include_directories : test_includes_internal) +media_device_tests = [ + ['media_device_test', 'media_device_test.cpp'], +] -test('Media Device Test', media_device_test) +foreach t : media_device_tests + exe = executable(t[0], t[1], + link_with : test_libraries, + include_directories : test_includes_internal) + + test(t[0], exe, suite: 'media_device', is_parallel: false) +endforeach |