xref: /openbmc/phosphor-state-manager/test/meson.build (revision 409c449748008b329409736849217c17af5be753)
1
2test(
3    'test_systemd_parser',
4    executable(
5        'test_systemd_parser',
6        'systemd_parser.cpp',
7        '../systemd_target_parser.cpp',
8        dependencies: [gtest, nlohmann_json_dep],
9        implicit_include_directories: true,
10        include_directories: '../',
11    ),
12)
13
14test(
15    'test_systemd_signal',
16    executable(
17        'test_systemd_signal',
18        'systemd_signal.cpp',
19        '../systemd_target_signal.cpp',
20        dependencies: [
21            gtest,
22            libgpiod,
23            nlohmann_json_dep,
24            phosphorlogging,
25            sdbusplus,
26            sdeventplus,
27        ],
28        link_with: [utils_lib],
29        implicit_include_directories: true,
30        include_directories: '../',
31    ),
32)
33
34test(
35    'test_scheduled_host_transition',
36    executable(
37        'test_scheduled_host_transition',
38        'test_scheduled_host_transition.cpp',
39        '../scheduled_host_transition.cpp',
40        dependencies: [
41            cereal,
42            gmock,
43            gtest,
44            libgpiod,
45            phosphorlogging,
46            sdbusplus,
47            sdeventplus,
48        ],
49        link_with: [utils_lib],
50        implicit_include_directories: true,
51        include_directories: '../',
52    ),
53)
54
55test(
56    'test_hypervisor_state',
57    executable(
58        'test_hypervisor_state',
59        'hypervisor_state.cpp',
60        '../hypervisor_state_manager.cpp',
61        dependencies: [gtest, phosphorlogging, sdbusplus, sdeventplus],
62        implicit_include_directories: true,
63        include_directories: '../',
64    ),
65)
66