blob: 607dd7d211b183be159da1dec94c3cd3b3d710b7 [file] [log] [blame]
Lei YUf357b5a2020-02-27 11:52:39 +08001tests = [
2 'libpldm_base_test',
3 'libpldm_platform_test',
4 'libpldm_bios_test',
5 'libpldm_bios_table_test',
6 'libpldm_fru_test',
7 'libpldm_utils_test',
8 'libpldm_pdr_test'
9]
10
11if get_option('oem-ibm').enabled()
12 tests += [
13 '../../oem/ibm/test/libpldm_fileio_test',
George Liu9008d282020-03-12 11:20:35 +080014 '../../oem/ibm/test/libpldm_host_test',
Lei YUf357b5a2020-02-27 11:52:39 +080015 ]
16endif
17
18foreach t : tests
19 test(t, executable(t.underscorify(), t + '.cpp',
20 implicit_include_directories: false,
21 link_args: dynamic_linker,
22 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
23 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050024 libpldm_dep,
Lei YUf357b5a2020-02-27 11:52:39 +080025 gtest,
26 gmock]),
27 workdir: meson.current_source_dir())
28endforeach
29