blob: 73938b435ae10cd5d7279078b49765da66eae06c [file] [log] [blame]
Tom Joseph53279882021-04-28 06:29:13 -07001tests = [
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 Bishopc021dbc2021-12-01 21:38:00 -050015
Tom Joseph53279882021-04-28 06:29:13 -070016
17if get_option('oem-ibm').enabled()
18 tests += [
19 '../../oem/ibm/test/libpldmresponder_fileio_test',
20 '../../oem/ibm/test/libpldmresponder_oem_platform_test'
21 ]
22endif
23
Tom Joseph53279882021-04-28 06:29:13 -070024foreach t : tests
25 test(t, executable(t.underscorify(), t + '.cpp',
26 implicit_include_directories: false,
Andrew Jeffery7c1dc7e2023-04-28 14:52:16 +093027 include_directories: [ '../../requester', '../../pldmd' ],
Tom Joseph53279882021-04-28 06:29:13 -070028 link_args: dynamic_linker,
29 build_rpath: get_option('oe-sdk').enabled() ? rpath : '',
30 dependencies: [
Tom Joseph53279882021-04-28 06:29:13 -070031 libpldm_dep,
Manojkiran Eda998dc4e2022-07-28 08:18:03 +053032 libpldmresponder_dep,
Tom Joseph53279882021-04-28 06:29:13 -070033 libpldmutils,
34 gtest,
35 gmock,
36 nlohmann_json,
37 phosphor_dbus_interfaces,
Riya Dixit49cfb132023-03-02 04:26:53 -060038 phosphor_logging_dep,
Tom Joseph53279882021-04-28 06:29:13 -070039 sdeventplus,
40 sdbusplus]),
Tom Joseph53279882021-04-28 06:29:13 -070041 workdir: meson.current_source_dir())
42endforeach