1tests = [ 2 'libpldmresponder_base_test', 3 'libpldmresponder_bios_test', 4 'libpldmresponder_bios_attribute_test', 5 'libpldmresponder_bios_enum_attribute_test', 6 'libpldmresponder_bios_integer_attribute_test', 7 'libpldmresponder_bios_string_attribute_test', 8 'libpldmresponder_bios_table_test', 9 'libpldmresponder_fru_test', 10 'libpldmresponder_platform_test', 11 'libpldmresponder_pdr_effecter_test', 12 'libpldmresponder_pdr_sensor_test', 13] 14 15 16if get_option('oem-ibm').allowed() 17 tests += [ 18 '../../oem/ibm/test/libpldmresponder_fileio_test', 19 '../../oem/ibm/test/libpldmresponder_oem_platform_test' 20 ] 21endif 22 23if get_option('system-specific-bios-json').allowed() 24 tests += [ 25 'libpldmresponder_systemspecific_bios_test' 26 ] 27else 28 tests += [ 29 'libpldmresponder_bios_config_test' 30 ] 31endif 32 33foreach t : tests 34 test(t, executable(t.underscorify(), t + '.cpp', 35 implicit_include_directories: false, 36 include_directories: [ '../../requester', '../../pldmd' ], 37 link_args: dynamic_linker, 38 build_rpath: get_option('oe-sdk').allowed() ? rpath : '', 39 dependencies: [ 40 libpldm_dep, 41 libpldmresponder_dep, 42 libpldmutils, 43 gtest, 44 gmock, 45 nlohmann_json_dep, 46 phosphor_dbus_interfaces, 47 phosphor_logging_dep, 48 sdeventplus, 49 sdbusplus]), 50 workdir: meson.current_source_dir()) 51endforeach 52