From 1e87b3ace42c1a51d8b8c6d09b4fa4d0d6025698 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 28 Jun 2022 23:17:19 -0400 Subject: Switch to meson build system --- test/meson.build | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 test/meson.build (limited to 'test') diff --git a/test/meson.build b/test/meson.build new file mode 100644 index 0000000..2321712 --- /dev/null +++ b/test/meson.build @@ -0,0 +1,49 @@ +# Copyright 2019-2022 David Robillard +# SPDX-License-Identifier: CC0-1.0 OR GPL-3.0-or-later + +if not get_option('tests').disabled() and not meson.is_subproject() + # Check release metadata + autoship = find_program('autoship', required: get_option('tests')) + if autoship.found() + test( + 'autoship', autoship, + args: ['test', raul_src_root], + suite: 'data', + ) + endif +endif + +############## +# Unit Tests # +############## + +tests = [ + 'array_test', + 'build_test', + 'double_buffer_test', + 'maid_test', + 'path_test', + 'ringbuffer_test', + 'sem_test', + 'symbol_test', + 'thread_test', +] + +if host_machine.system() != 'windows' + tests += [ + 'socket_test', + ] +endif + +foreach test : tests + test( + test, + executable( + test, + '@0@.cpp'.format(test), + cpp_args: cpp_suppressions, + dependencies: [raul_dep, thread_dep], + ), + suite: 'unit', + ) +endforeach -- cgit v1.2.1