blob: b94959ad30aac63d1db66d6aae1028eccc66552c [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 += [
14 '../../oem/ibm/test/libpldm_fileio_test',
George Liu9008d282020-03-12 11:20:35 +080015 '../../oem/ibm/test/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