summaryrefslogtreecommitdiff
path: root/test/meson.build
diff options
context:
space:
mode:
Diffstat (limited to 'test/meson.build')
-rw-r--r--test/meson.build27
1 files changed, 22 insertions, 5 deletions
diff --git a/test/meson.build b/test/meson.build
index 9fac7e39..ae8b3fb9 100644
--- a/test/meson.build
+++ b/test/meson.build
@@ -12,10 +12,27 @@ test_includes_internal = [
libcamera_internal_includes,
]
-list = executable('list', 'list.cpp',
- link_with : test_libraries,
- include_directories : test_includes_public)
-
subdir('media_device')
-test('List Camera API tests', list)
+public_tests = [
+ ['list', 'list.cpp'],
+]
+
+internal_tests = [
+]
+
+foreach t : public_tests
+ exe = executable(t[0], t[1],
+ link_with : test_libraries,
+ include_directories : test_includes_public)
+
+ test(t[0], exe)
+endforeach
+
+foreach t : internal_tests
+ exe = executable(t[0], t[1],
+ link_with : test_libraries,
+ include_directories : test_includes_internal)
+
+ test(t[0], exe)
+endforeach