blob: 0e54c90d773cd1521129dce3b8013641d3bfc06b [file] [log] [blame]
Xiuzhi Cheng4f3eb902022-06-08 09:06:33 +08001gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2gmock = dependency('gmock', disabler: true, required: build_tests)
3openssl = dependency('openssl', disabler: true, required: build_tests)
4
5configure_file(output: 'config.h',
6 configuration: cdata,
7)
8test_inc = include_directories('.')
9
10test_kunlun_ipmi_oem = executable(
11 'test_kunlun-ipmi-oem',
12 '../src/kunlun_oem.cpp',
13 'test_kunlun_ipmi_oem.cpp',
14 include_directories: [test_inc, src_inc],
15 dependencies: [
16 libipmid,
17 gtest,
18 gmock,
19 phosphor_logging,
20 openssl,
21 ])
22
23test('test_kunlun-ipmi-oem', test_kunlun_ipmi_oem)