xref: /openbmc/phosphor-hwmon/test/meson.build (revision 6f42e356)
1average_unittest = executable(
2    'average_unittest',
3    'average_unittest.cpp',
4    dependencies: [
5        gmock,
6        gtest,
7    ],
8    include_directories: '..',
9    link_with: [
10        libaverage,
11    ],
12)
13
14env_unittest = executable(
15    'env_unittest',
16    'env_unittest.cpp',
17    dependencies: [
18        gmock,
19        gtest,
20    ],
21    include_directories: '..',
22)
23
24fanpwm_unittest = executable(
25    'fanpwm_unittest',
26    'fanpwm_unittest.cpp',
27    dependencies: [
28        gmock,
29        gtest,
30        phosphor_logging,
31        fmt,
32    ],
33    include_directories: '..',
34    link_with: [
35        libfan_pwm,
36    ],
37)
38
39hwmon_unittest = executable(
40    'hwmon_unittest',
41    'hwmon_unittest.cpp',
42    dependencies: [
43        gmock,
44        gtest,
45        fmt,
46    ],
47    include_directories: '..',
48    link_with: [
49        libhwmon,
50    ],
51)
52
53hwmonio_default_unittest = executable(
54    'hwmonio_default_unittest',
55    'hwmonio_default_unittest.cpp',
56    dependencies: [
57        gtest,
58        gmock,
59        fmt,
60    ],
61    include_directories: '..',
62    link_with: [
63        libhwmonio,
64    ],
65)
66
67sensor_unittest = executable(
68    'sensor_unittest',
69    'gpio.cpp',
70    'sensor_unittest.cpp',
71    dependencies: [
72        gtest,
73        gmock,
74        fmt,
75    ],
76    include_directories: '..',
77    link_with: [
78        libsensor,
79    ],
80)
81