blob: 6622169f0b174e21124e2ca45849d896a65ebcfb [file] [log] [blame]
Patrick Venture7a841b62018-06-13 09:39:46 -07001AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS)
Patrick Venture2e3ecb52018-06-22 08:18:19 -07002AM_CXXFLAGS = \
3 $(GTEST_MAIN_CFLAGS) \
Patrick Venture7a841b62018-06-13 09:39:46 -07004 $(SDBUSPLUS_CFLAGS) \
5 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Patrick Venture2e3ecb52018-06-22 08:18:19 -07006AM_LDFLAGS = \
Patrick Venture7a841b62018-06-13 09:39:46 -07007 $(GMOCK_LIBS) \
Patrick Venture2e3ecb52018-06-22 08:18:19 -07008 $(GTEST_MAIN_LIBS) \
Patrick Venture7a841b62018-06-13 09:39:46 -07009 $(OESDK_TESTCASE_FLAGS) \
10 $(SDBUSPLUS_LIBS) \
11 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
12
13# Run all 'check' test programs
Patrick Venture1fa9aab2018-06-11 10:46:49 -070014check_PROGRAMS = sensor_manager_unittest sensor_pluggable_unittest \
Patrick Venture3349ef22018-06-12 14:09:29 -070015 sensor_host_unittest util_unittest pid_zone_unittest \
Patrick Venture0ef1faf2018-06-13 12:50:53 -070016 pid_thermalcontroller_unittest pid_fancontroller_unittest \
Patrick Venture25243232018-06-14 10:34:34 -070017 dbus_passive_unittest dbus_active_unittest
Patrick Venture7a841b62018-06-13 09:39:46 -070018TESTS = $(check_PROGRAMS)
Patrick Venturefe75b192018-06-08 11:19:43 -070019
20# Until libconfig is mocked out or replaced, include it.
21sensor_manager_unittest_SOURCES = sensor_manager_unittest.cpp
22sensor_manager_unittest_LDADD = $(top_builddir)/sensors/manager.o
Patrick Venturee31ee6d2018-06-08 18:49:27 -070023
24sensor_pluggable_unittest_SOURCES = sensor_pluggable_unittest.cpp
25sensor_pluggable_unittest_LDADD = $(top_builddir)/sensors/pluggable.o
Patrick Venture1fa9aab2018-06-11 10:46:49 -070026
27sensor_host_unittest_SOURCES = sensor_host_unittest.cpp
28sensor_host_unittest_LDADD = $(top_builddir)/sensors/host.o
Patrick Ventureda064282018-06-12 19:33:47 -070029
30util_unittest_SOURCES = util_unittest.cpp
31util_unittest_LDADD = $(top_builddir)/util.o
Patrick Venturea58197c2018-06-11 15:29:45 -070032
33pid_zone_unittest_SOURCES = pid_zone_unittest.cpp
34pid_zone_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
35 $(top_builddir)/sensors/manager.o $(top_builddir)/pid/controller.o \
36 $(top_builddir)/pid/zone.o
Patrick Venture3349ef22018-06-12 14:09:29 -070037
38pid_thermalcontroller_unittest_SOURCES = pid_thermalcontroller_unittest.cpp
39pid_thermalcontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
40 $(top_builddir)/pid/util.o $(top_builddir)/pid/controller.o \
41 $(top_builddir)/pid/thermalcontroller.o
Patrick Venture566a1512018-06-12 14:51:07 -070042
43pid_fancontroller_unittest_SOURCES = pid_fancontroller_unittest.cpp
44pid_fancontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
45 $(top_builddir)/pid/util.o $(top_builddir)/pid/controller.o \
46 $(top_builddir)/pid/fancontroller.o
Patrick Venture0ef1faf2018-06-13 12:50:53 -070047
48dbus_passive_unittest_SOURCES = dbus_passive_unittest.cpp
49dbus_passive_unittest_LDADD = $(top_builddir)/dbus/util.o \
50 $(top_builddir)/dbus/dbuspassive.o
Patrick Venture25243232018-06-14 10:34:34 -070051
52dbus_active_unittest_SOURCES = dbus_active_unittest.cpp
53dbus_active_unittest_LDADD = $(top_builddir)/dbus/dbusactiveread.o