1tests = [ 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 16 17if get_option('oem-ibm').enabled() 18 tests += [ 19 '../../oem/ibm/test/libpldmresponder_fileio_test', 20 '../../oem/ibm/test/libpldmresponder_oem_platform_test' 21 ] 22endif 23 24 dep_src_files = [ 25 '../../pldmd/instance_id.cpp', 26 '../../pldmd/dbus_impl_requester.cpp' 27 ] 28dep_src = declare_dependency(sources: dep_src_files,include_directories: '../../requester') 29 30foreach t : tests 31 test(t, executable(t.underscorify(), t + '.cpp', 32 implicit_include_directories: false, 33 link_args: dynamic_linker, 34 build_rpath: get_option('oe-sdk').enabled() ? rpath : '', 35 dependencies: [ 36 dep_src, 37 libpldm_dep, 38 libpldmresponder_dep, 39 libpldmutils, 40 gtest, 41 gmock, 42 nlohmann_json, 43 phosphor_dbus_interfaces, 44 phosphor_logging_dep, 45 sdeventplus, 46 sdbusplus]), 47 workdir: meson.current_source_dir()) 48endforeach 49