blob: f3ff32460b07ec661c70c3b9a2391ac5f05d91af [file] [log] [blame]
Lei YUebd3d092020-09-27 18:11:48 +08001gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2gmock = dependency('gmock', disabler: true, required: build_tests)
3
4configure_file(output: 'config.h',
5 configuration: cdata,
6)
7test_inc = include_directories('.')
8
George Liua3a9d2a2024-04-03 09:30:45 +08009test_iei_ipmi_oem = executable(
10 'test_iei-ipmi-oem',
11 '../src/iei_oem.cpp',
12 'test_iei_ipmi_oem.cpp',
Lei YUebd3d092020-09-27 18:11:48 +080013 'mocked_utils.cpp',
14 'mocked_sdbus.cpp',
15 include_directories: [test_inc, src_inc],
16 dependencies: [
17 gtest,
18 gmock,
19 phosphor_logging,
20 phosphor_dbus_interfaces,
21 sdbusplus,
22 ])
23
George Liua3a9d2a2024-04-03 09:30:45 +080024test('test_iei-ipmi-oem', test_iei_ipmi_oem)