blob: 49e5a23d2667050175b7c06de7ad787a2f374110 [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001tests = [
2 'libpldmresponder_base_test',
3 'libpldmresponder_bios_test',
4 'libpldmresponder_bios_attribute_test',
5 'libpldmresponder_bios_config_test',
6 'libpldmresponder_bios_enum_attribute_test',
7 'libpldmresponder_bios_integer_attribute_test',
8 'libpldmresponder_bios_string_attribute_test',
9 'libpldmresponder_bios_table_test',
10 'libpldmresponder_fru_test',
11 'libpldmresponder_platform_test',
12 'libpldmresponder_pdr_effecter_test',
13 'libpldmresponder_pdr_sensor_test',
14]
15
16if get_option('oem-ibm').enabled()
17 tests += [
18 '../../oem/ibm/test/libpldmresponder_fileio_test',
19 '../../oem/ibm/test/libpldmresponder_oem_platform_test'
20 ]
21endif
22
23 dep_src_files = [
24 '../../pldmd/instance_id.cpp',
25 '../../pldmd/dbus_impl_requester.cpp'
26 ]
Sampa Misrac0c79482021-06-02 08:01:54 -050027dep_src = declare_dependency(sources: dep_src_files,include_directories: '../../requester')
Tom Joseph53279882021-04-28 06:29:13 -070028
29foreach t : tests
30 test(t, executable(t.underscorify(), t + '.cpp',
31 implicit_include_directories: false,
32 link_args: dynamic_linker,
33 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
34 dependencies: [
35 dep_src,
36 libpldm_dep,
37 libpldmresponder,
38 libpldmutils,
39 gtest,
40 gmock,
41 nlohmann_json,
42 phosphor_dbus_interfaces,
43 sdeventplus,
44 sdbusplus]),
45 workdir: meson.current_source_dir())
46endforeach