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:
parent
e3c4994812
commit
4bf28fa225
1 changed files with 10 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue