xref: /openbmc/phosphor-host-postd/test/meson.build (revision 0d14a59ecc6a76816d1aa2c26d6f7c36b257341c)
1*0d14a59eSKun Yigtest = dependency('gtest', main: true, disabler: true, required: build_tests)
2*0d14a59eSKun Yigmock = dependency('gmock', disabler: true, required: build_tests)
3*0d14a59eSKun Yiphosphor_dbus_interfaces = dependency('phosphor-dbus-interfaces')
4*0d14a59eSKun Yisdbusplus = dependency('sdbusplus')
5*0d14a59eSKun Yi
6*0d14a59eSKun Yitests = [
7*0d14a59eSKun Yi  'post_reporter_test',
8*0d14a59eSKun Yi]
9*0d14a59eSKun Yi
10*0d14a59eSKun Yiforeach t : tests
11*0d14a59eSKun Yi  test(t, executable(t.underscorify(), t + '.cpp',
12*0d14a59eSKun Yi                     include_directories: postd_headers,
13*0d14a59eSKun Yi                     implicit_include_directories: false,
14*0d14a59eSKun Yi                     dependencies: [
15*0d14a59eSKun Yi                       gtest,
16*0d14a59eSKun Yi                       gmock,
17*0d14a59eSKun Yi                       phosphor_dbus_interfaces,
18*0d14a59eSKun Yi                       sdbusplus,
19*0d14a59eSKun Yi                    ]))
20*0d14a59eSKun Yiendforeach
21