summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/meson.build49
1 files changed, 49 insertions, 0 deletions
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 <d@drobilla.net>
+# 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