From 75e647def0f67647ec7ba1405e26d809a87c62fc Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 3 Jul 2022 20:47:34 -0400 Subject: Switch to meson build system --- test/.clang-tidy | 1 + test/meson.build | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 test/meson.build (limited to 'test') diff --git a/test/.clang-tidy b/test/.clang-tidy index 6f36a17..53e7864 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -3,6 +3,7 @@ Checks: > -*-magic-numbers, -*-uppercase-literal-suffix, -altera-*, + -bugprone-macro-parentheses, -bugprone-suspicious-string-compare, -clang-analyzer-security.insecureAPI.DeprecatedOrUnsafeBufferHandling, -hicpp-signed-bitwise, diff --git a/test/meson.build b/test/meson.build new file mode 100644 index 0000000..3cecff6 --- /dev/null +++ b/test/meson.build @@ -0,0 +1,23 @@ +autoship = find_program('autoship', required: false) + +unit_tests = [ + 'sratom', +] + +foreach unit : unit_tests + test( + unit, + executable( + 'test_@0@'.format(unit), + files('test_@0@.c'.format(unit)), + c_args: c_suppressions, + dependencies: [sratom_dep, serd_dep, sord_dep], + include_directories: include_directories('../src'), + ), + suite: 'unit', + ) +endforeach + +if autoship.found() + test('autoship', autoship, args: ['test', sratom_src_root], suite: 'data') +endif -- cgit v1.2.1