1tests = [
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',
13]
14
15
16if get_option('oem-ibm').allowed()
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    ]
22endif
23
24if get_option('system-specific-bios-json').allowed()
25    tests += ['libpldmresponder_systemspecific_bios_test']
26else
27    tests += ['libpldmresponder_bios_config_test']
28endif
29
30foreach t : tests
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    )
53endforeach
54