blob: fa581cd3bdcf62780d730a6fea524210fe2a9eff [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001tests = [
Manojkiran Eda3012b632024-08-22 11:09:01 +05302 '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 Joseph53279882021-04-28 06:29:13 -070013]
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()
Manojkiran Eda3012b632024-08-22 11:09:01 +053017 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 Joseph53279882021-04-28 06:29:13 -070022endif
23
Archana Kakani46f352e2024-03-17 08:21:08 -050024if get_option('system-specific-bios-json').allowed()
Manojkiran Eda3012b632024-08-22 11:09:01 +053025 tests += ['libpldmresponder_systemspecific_bios_test']
Archana Kakani46f352e2024-03-17 08:21:08 -050026else
Manojkiran Eda3012b632024-08-22 11:09:01 +053027 tests += ['libpldmresponder_bios_config_test']
Archana Kakani46f352e2024-03-17 08:21:08 -050028endif
29
Tom Joseph53279882021-04-28 06:29:13 -070030foreach t : tests
Manojkiran Eda3012b632024-08-22 11:09:01 +053031 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 Joseph53279882021-04-28 06:29:13 -070053endforeach