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>
This commit is contained in:
Kieran Bingham 2019-01-01 14:48:51 +00:00 committed by Jacopo Mondi
parent e3c4994812
commit 4bf28fa225

View file

@ -1,5 +1,11 @@
media_device_test = executable('media_device_test', 'media_device_test.cpp',
media_device_tests = [
['media_device_test', 'media_device_test.cpp'],
]
foreach t : media_device_tests
exe = executable(t[0], t[1],
link_with : test_libraries,
include_directories : test_includes_internal)
test('Media Device Test', media_device_test)
test(t[0], exe, suite: 'media_device', is_parallel: false)
endforeach