Kun Yi | 0d14a59 | 2020-04-06 14:01:36 -0700 | [diff] [blame] | 1 | gtest = dependency('gtest', main: true, disabler: true, required: build_tests) |
| 2 | gmock = dependency('gmock', disabler: true, required: build_tests) |
| 3 | phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces') |
| 4 | sdbusplus = dependency('sdbusplus') |
| 5 | |
| 6 | tests = [ |
| 7 | 'post_reporter_test', |
| 8 | ] |
| 9 | |
| 10 | foreach t : tests |
| 11 | test(t, executable(t.underscorify(), t + '.cpp', |
| 12 | include_directories: postd_headers, |
| 13 | implicit_include_directories: false, |
| 14 | dependencies: [ |
| 15 | gtest, |
| 16 | gmock, |
| 17 | phosphor_dbus_interfaces, |
| 18 | sdbusplus, |
| 19 | ])) |
| 20 | endforeach |