Xiuzhi Cheng | 4f3eb90 | 2022-06-08 09:06:33 +0800 | [diff] [blame^] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | openssl = dependency('openssl', disabler: true, required: build_tests) |
| 4 | |
| 5 | configure_file(output: 'config.h', |
| 6 | configuration: cdata, |
| 7 | ) |
| 8 | test_inc = include_directories('.') |
| 9 | |
| 10 | test_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 | |
| 23 | test('test_kunlun-ipmi-oem', test_kunlun_ipmi_oem) |