blob: f2534f35deddfde6effc91f5494489cbcc57a38e [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
9test_inspur_ipmi_oem = executable(
10 'test_inspur-ipmi-oem',
11 '../src/inspur_oem.cpp',
12 'test_inspur_ipmi_oem.cpp',
13 '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
24test('test_inspur-ipmi-oem', test_inspur_ipmi_oem)