blob: 85731943822299add7fbe0307056aa8066de74f7 [file] [log] [blame]
Patrick Venture609fe982018-04-17 17:51:56 -07001AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
Patrick Venture9f514812018-06-27 10:19:32 -07002AM_CXXFLAGS = \
3 $(GTEST_MAIN_CFLAGS)
Patrick Venture609fe982018-04-17 17:51:56 -07004 $(SDBUSPLUS_CFLAGS) \
5 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Patrick Venture9f514812018-06-27 10:19:32 -07006AM_LDFLAGS = \
Patrick Venture609fe982018-04-17 17:51:56 -07007 $(GMOCK_LIBS) \
Patrick Venture9f514812018-06-27 10:19:32 -07008 $(GTEST_MAIN_LIBS) \
Patrick Venture609fe982018-04-17 17:51:56 -07009 $(OESDK_TESTCASE_FLAGS) \
10 $(SDBUSPLUS_LIBS) \
11 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
12
13# Run all 'check' test programs
Patrick Venture0e2d68d2018-12-19 07:53:45 -080014check_PROGRAMS = hwmon_unittest fanpwm_unittest sensor_unittest
Patrick Venture609fe982018-04-17 17:51:56 -070015TESTS = $(check_PROGRAMS)
16
17hwmon_unittest_SOURCES = hwmon_unittest.cpp
18hwmon_unittest_LDADD = $(top_builddir)/hwmon.o
19
Patrick Venture50552372018-06-07 10:53:56 -070020fanpwm_unittest_SOURCES = fanpwm_unittest.cpp
21fanpwm_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) $(top_builddir)/fan_pwm.o
Patrick Venture0e2d68d2018-12-19 07:53:45 -080022
23sensor_unittest_SOURCES = sensor_unittest.cpp
24sensor_unittest_CXXFLAGS = \
25 $(PHOSPHOR_LOGGING_CFLAGS) \
26 $(GPIOPLUS_CFLAGS)
27sensor_unittest_LDADD = \
28 -lstdc++fs \
29 $(PHOSPHOR_LOGGING_LIBS) \
30 $(GPIOPLUS_LIBS) \
31 $(top_builddir)/sensor.o \
32 $(top_builddir)/hwmon.o \
33 $(top_builddir)/gpio_handle.o \
34 env.o