tests: meson: Push build configuration down to leaf directories
I feel this keeps things a bit more self-contained.
Change-Id: I68de6e4b0269d64b620b6c339825113e31074b4c
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
diff --git a/tests/meson.build b/tests/meson.build
index 04dd4dc..27103ef 100644
--- a/tests/meson.build
+++ b/tests/meson.build
@@ -30,27 +30,15 @@
# The 'test' transport APIs will never be marked stable as they are just for
# testing.
if get_option('abi').contains('testing')
- tests += [
- 'transport',
- 'transport/send_recv_one',
- 'transport/send_recv_timeout',
- 'transport/send_recv_unwanted',
- 'transport/send_recv_wrong_command_code',
- 'transport/send_recv_wrong_pldm_type',
- ]
+ subdir('transport')
endif
if get_option('oem-ibm').allowed()
- tests += [
- 'oem/ibm/libpldm_fileio_test',
- 'oem/ibm/libpldm_host_test',
- ]
+ subdir('oem/ibm')
endif
if get_option('oem-meta').allowed()
- tests += [
- 'oem/meta/libpldm_fileio_test',
- ]
+ subdir('oem/meta')
endif
test_include_dirs = [ libpldm_include_dir, include_directories('../src') ]