1gtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2gmock = dependency('gmock', disabler: true, required: build_tests)
3phosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
4sdbusplus = dependency('sdbusplus')
5
6tests = [
7  'post_reporter_test',
8]
9
10foreach 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                    ]))
20endforeach
21