From 7a51a9f66332f758c0b590598f0a43ad14686c5a Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 22 Apr 2022 18:22:17 -0400 Subject: Put unit tests in a "unit" suite This enables running them without the data tests (which can be annoying while working in a messy repo), and for bonus points makes the log output look more uniform. --- test/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/meson.build b/test/meson.build index 893d824..d8b27a9 100644 --- a/test/meson.build +++ b/test/meson.build @@ -82,7 +82,8 @@ foreach test : basic_tests executable('test_' + test, 'test_@0@.c'.format(test), c_args: test_c_args, include_directories: include_directories(includes), - dependencies: [pugl_dep, stub_backend_dep])) + dependencies: [pugl_dep, stub_backend_dep]), + suite: 'unit') endforeach if opengl_dep.found() @@ -91,7 +92,8 @@ if opengl_dep.found() executable('test_' + test, 'test_@0@.c'.format(test), c_args: test_c_args, include_directories: include_directories(includes), - dependencies: [pugl_dep, gl_backend_dep])) + dependencies: [pugl_dep, gl_backend_dep]), + suite: 'unit') endforeach endif @@ -101,7 +103,8 @@ if cairo_dep.found() executable('test_' + test, 'test_@0@.c'.format(test), c_args: test_c_args, include_directories: include_directories(includes), - dependencies: [pugl_dep, cairo_backend_dep])) + dependencies: [pugl_dep, cairo_backend_dep]), + suite: 'unit') endforeach endif @@ -112,7 +115,8 @@ if vulkan_dep.found() c_args: test_c_args, cpp_args: test_cpp_args, include_directories: include_directories(includes), - dependencies: [pugl_dep, vulkan_backend_dep])) + dependencies: [pugl_dep, vulkan_backend_dep]), + suite: 'unit') endforeach endif -- cgit v1.2.1