blob: 9a9fbc954fd8c550bfb76f1858f20ef662415417 [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001tests = [
2 'libpldmresponder_base_test',
3 'libpldmresponder_bios_test',
4 'libpldmresponder_bios_attribute_test',
Tom Joseph53279882021-04-28 06:29:13 -07005 '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 Bishopc021dbc2021-12-01 21:38:00 -050014
Tom Joseph53279882021-04-28 06:29:13 -070015
Patrick Williams87bfacd2023-11-29 06:44:36 -060016if get_option('oem-ibm').allowed()
Tom Joseph53279882021-04-28 06:29:13 -070017 tests += [
18 '../../oem/ibm/test/libpldmresponder_fileio_test',
George Liub49b7d82021-02-08 14:10:17 +080019 '../../oem/ibm/test/libpldmresponder_oem_platform_test',
20 '../../oem/ibm/test/host_bmc_lamp_test',
Tom Joseph53279882021-04-28 06:29:13 -070021 ]
22endif
23
Archana Kakani46f352e2024-03-17 08:21:08 -050024if get_option('system-specific-bios-json').allowed()
25 tests += [
26 'libpldmresponder_systemspecific_bios_test'
27 ]
28else
29 tests += [
30 'libpldmresponder_bios_config_test'
31 ]
32endif
33
Tom Joseph53279882021-04-28 06:29:13 -070034foreach t : tests
35 test(t, executable(t.underscorify(), t + '.cpp',
36 implicit_include_directories: false,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093037 include_directories: [ '../../requester', '../../pldmd' ],
Tom Joseph53279882021-04-28 06:29:13 -070038 dependencies: [
Tom Joseph53279882021-04-28 06:29:13 -070039 libpldm_dep,
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053040 libpldmresponder_dep,
Tom Joseph53279882021-04-28 06:29:13 -070041 libpldmutils,
42 gtest,
43 gmock,
Patrick Williamscf772842023-12-07 14:39:52 -060044 nlohmann_json_dep,
Tom Joseph53279882021-04-28 06:29:13 -070045 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060046 phosphor_logging_dep,
Tom Joseph53279882021-04-28 06:29:13 -070047 sdeventplus,
48 sdbusplus]),
Tom Joseph53279882021-04-28 06:29:13 -070049 workdir: meson.current_source_dir())
50endforeach