Lei YU | ebd3d09 | 2020-09-27 18:11:48 +0800 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | |
| 4 | configure_file(output: 'config.h', |
| 5 | configuration: cdata, |
| 6 | ) |
| 7 | test_inc = include_directories('.') |
| 8 | |
George Liu | a3a9d2a | 2024-04-03 09:30:45 +0800 | [diff] [blame^] | 9 | test_iei_ipmi_oem = executable( |
| 10 | 'test_iei-ipmi-oem', |
| 11 | '../src/iei_oem.cpp', |
| 12 | 'test_iei_ipmi_oem.cpp', |
Lei YU | ebd3d09 | 2020-09-27 18:11:48 +0800 | [diff] [blame] | 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 | |
George Liu | a3a9d2a | 2024-04-03 09:30:45 +0800 | [diff] [blame^] | 24 | test('test_iei-ipmi-oem', test_iei_ipmi_oem) |