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', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 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 | ] |
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() |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 17 | tests += [ |
| 18 | '../../oem/ibm/test/libpldmresponder_fileio_test', |
George Liu | b49b7d8 | 2021-02-08 14:10:17 +0800 | [diff] [blame^] | 19 | '../../oem/ibm/test/libpldmresponder_oem_platform_test', |
| 20 | '../../oem/ibm/test/host_bmc_lamp_test', |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 21 | ] |
| 22 | endif |
| 23 | |
Archana Kakani | 46f352e | 2024-03-17 08:21:08 -0500 | [diff] [blame] | 24 | if get_option('system-specific-bios-json').allowed() |
| 25 | tests += [ |
| 26 | 'libpldmresponder_systemspecific_bios_test' |
| 27 | ] |
| 28 | else |
| 29 | tests += [ |
| 30 | 'libpldmresponder_bios_config_test' |
| 31 | ] |
| 32 | endif |
| 33 | |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 34 | foreach t : tests |
| 35 | test(t, executable(t.underscorify(), t + '.cpp', |
| 36 | implicit_include_directories: false, |
Andrew Jeffery | 7c1dc7e | 2023-04-28 14:52:16 +0930 | [diff] [blame] | 37 | include_directories: [ '../../requester', '../../pldmd' ], |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 38 | dependencies: [ |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 39 | libpldm_dep, |
Manojkiran Eda | 998dc4e | 2022-07-28 08:18:03 +0530 | [diff] [blame] | 40 | libpldmresponder_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 41 | libpldmutils, |
| 42 | gtest, |
| 43 | gmock, |
Patrick Williams | cf77284 | 2023-12-07 14:39:52 -0600 | [diff] [blame] | 44 | nlohmann_json_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 45 | phosphor_dbus_interfaces, |
Riya Dixit | 49cfb13 | 2023-03-02 04:26:53 -0600 | [diff] [blame] | 46 | phosphor_logging_dep, |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 47 | sdeventplus, |
| 48 | sdbusplus]), |
Tom Joseph | 5327988 | 2021-04-28 06:29:13 -0700 | [diff] [blame] | 49 | workdir: meson.current_source_dir()) |
| 50 | endforeach |