Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 1 | tests = [ |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 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', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 13 | ] |
Brad Bishop | c021dbc | 2021-12-01 21:38:00 -0500 | [diff] [blame] | 14 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 15 | |
Patrick Williams | 87bfacd | 2023-11-29 06:44:36 -0600 | [diff] [blame] | 16 | if get_option('oem-ibm').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 17 | tests += [ |
| 18 | '../../oem/ibm/test/libpldmresponder_fileio_test', |
| 19 | '../../oem/ibm/test/libpldmresponder_oem_platform_test', |
| 20 | '../../oem/ibm/test/host_bmc_lamp_test', |
| 21 | ] |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 22 | endif |
| 23 | |
Archana Kakani | 46f352e | 2024-03-17 08:21:08 -0500 | [diff] [blame] | 24 | if get_option('system-specific-bios-json').allowed() |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 25 | tests += ['libpldmresponder_systemspecific_bios_test'] |
Archana Kakani | 46f352e | 2024-03-17 08:21:08 -0500 | [diff] [blame] | 26 | else |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 27 | tests += ['libpldmresponder_bios_config_test'] |
Archana Kakani | 46f352e | 2024-03-17 08:21:08 -0500 | [diff] [blame] | 28 | endif |
| 29 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 30 | foreach t : tests |
Manojkiran Eda | 3012b63 | 2024-08-22 11:09:01 +0530 | [diff] [blame^] | 31 | test( |
| 32 | t, |
| 33 | executable( |
| 34 | t.underscorify(), |
| 35 | t + '.cpp', |
| 36 | implicit_include_directories: false, |
| 37 | include_directories: ['../../requester', '../../pldmd'], |
| 38 | dependencies: [ |
| 39 | libpldm_dep, |
| 40 | libpldmresponder_dep, |
| 41 | libpldmutils, |
| 42 | gtest, |
| 43 | gmock, |
| 44 | nlohmann_json_dep, |
| 45 | phosphor_dbus_interfaces, |
| 46 | phosphor_logging_dep, |
| 47 | sdeventplus, |
| 48 | sdbusplus, |
| 49 | ], |
| 50 | ), |
| 51 | workdir: meson.current_source_dir(), |
| 52 | ) |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 53 | endforeach |