Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | tests = [ |
| 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 | ] |
Brad Bishop | c021dbc | 2021-12-01 21:38:00 -0500 | [diff] [blame] | 15 | broken_tests = [] |
| 16 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 17 | |
| 18 | if get_option('oem-ibm').enabled() |
| 19 | tests += [ |
| 20 | '../../oem/ibm/test/libpldmresponder_fileio_test', |
| 21 | '../../oem/ibm/test/libpldmresponder_oem_platform_test' |
| 22 | ] |
Brad Bishop | c021dbc | 2021-12-01 21:38:00 -0500 | [diff] [blame] | 23 | broken_tests += [ |
| 24 | '../../oem/ibm/test/libpldmresponder_oem_platform_test' |
| 25 | ] |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 26 | endif |
| 27 | |
| 28 | dep_src_files = [ |
| 29 | '../../pldmd/instance_id.cpp', |
| 30 | '../../pldmd/dbus_impl_requester.cpp' |
| 31 | ] |
Sampa Misra | c0c7948 | 2021-06-02 08:01:54 -0500 | [diff] [blame] | 32 | dep_src = declare_dependency(sources: dep_src_files,include_directories: '../../requester') |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 33 | |
| 34 | foreach t : tests |
| 35 | test(t, executable(t.underscorify(), t + '.cpp', |
| 36 | implicit_include_directories: false, |
| 37 | link_args: dynamic_linker, |
| 38 | build_rpath: get_option('oe-sdk').enabled() ? rpath : '', |
| 39 | dependencies: [ |
| 40 | dep_src, |
| 41 | libpldm_dep, |
Manojkiran Eda | 998dc4e | 2022-07-28 08:18:03 +0530 | [diff] [blame^] | 42 | libpldmresponder_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 43 | libpldmutils, |
| 44 | gtest, |
| 45 | gmock, |
| 46 | nlohmann_json, |
| 47 | phosphor_dbus_interfaces, |
| 48 | sdeventplus, |
| 49 | sdbusplus]), |
Brad Bishop | c021dbc | 2021-12-01 21:38:00 -0500 | [diff] [blame] | 50 | should_fail: broken_tests.contains(t), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 51 | workdir: meson.current_source_dir()) |
| 52 | endforeach |