blob: 12dab0ae5127b71e5dc05ad3755cf6446376e5a4 [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',
gokulsanker138ceba2021-04-05 13:25:25 +05308 'libpldm_pdr_test',
9 'libpldm_firmware_update_test'
Lei YUf357b5a2020-02-27 11:52:39 +080010]
11
12if get_option('oem-ibm').enabled()
13 tests += [
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053014 '../oem/ibm/libpldm/tests/libpldm_fileio_test',
15 '../oem/ibm/libpldm/tests/libpldm_host_test',
Lei YUf357b5a2020-02-27 11:52:39 +080016 ]
17endif
18
19foreach t : tests
20 test(t, executable(t.underscorify(), t + '.cpp',
21 implicit_include_directories: false,
22 link_args: dynamic_linker,
23 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
24 dependencies: [
Patrick Williams6f4479c2021-04-16 21:39:44 -050025 libpldm_dep,
Lei YUf357b5a2020-02-27 11:52:39 +080026 gtest,
27 gmock]),
28 workdir: meson.current_source_dir())
29endforeach
30