| AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS) |
| AM_CXXFLAGS = \ |
| $(GTEST_MAIN_CFLAGS) \ |
| $(SDBUSPLUS_CFLAGS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| AM_LDFLAGS = \ |
| $(GMOCK_LIBS) \ |
| $(GTEST_MAIN_LIBS) \ |
| $(OESDK_TESTCASE_FLAGS) \ |
| $(SDBUSPLUS_LIBS) \ |
| $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
| |
| # Run all 'check' test programs |
| check_PROGRAMS = sensor_manager_unittest sensor_pluggable_unittest \ |
| sensor_host_unittest util_unittest pid_zone_unittest \ |
| pid_thermalcontroller_unittest pid_fancontroller_unittest \ |
| pid_stepwisecontroller_unittest \ |
| dbus_passive_unittest dbus_active_unittest |
| TESTS = $(check_PROGRAMS) |
| |
| # Until libconfig is mocked out or replaced, include it. |
| sensor_manager_unittest_SOURCES = sensor_manager_unittest.cpp |
| sensor_manager_unittest_LDADD = $(top_builddir)/sensors/manager.o |
| |
| sensor_pluggable_unittest_SOURCES = sensor_pluggable_unittest.cpp |
| sensor_pluggable_unittest_LDADD = $(top_builddir)/sensors/pluggable.o |
| |
| sensor_host_unittest_SOURCES = sensor_host_unittest.cpp |
| sensor_host_unittest_LDADD = $(top_builddir)/sensors/host.o |
| |
| util_unittest_SOURCES = util_unittest.cpp |
| util_unittest_LDADD = $(top_builddir)/util.o |
| |
| pid_zone_unittest_SOURCES = pid_zone_unittest.cpp |
| pid_zone_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
| $(top_builddir)/sensors/manager.o $(top_builddir)/pid/pidcontroller.o \ |
| $(top_builddir)/pid/zone.o |
| |
| pid_thermalcontroller_unittest_SOURCES = pid_thermalcontroller_unittest.cpp |
| pid_thermalcontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
| $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \ |
| $(top_builddir)/pid/thermalcontroller.o |
| |
| pid_stepwisecontroller_unittest_SOURCES = pid_stepwisecontroller_unittest.cpp |
| pid_stepwisecontroller_unittest_LDADD = $(top_builddir)/pid/ec/stepwise.o \ |
| $(top_builddir)/pid/util.o $(top_builddir)/pid/stepwisecontroller.o |
| |
| pid_fancontroller_unittest_SOURCES = pid_fancontroller_unittest.cpp |
| pid_fancontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
| $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \ |
| $(top_builddir)/pid/fancontroller.o |
| |
| dbus_passive_unittest_SOURCES = dbus_passive_unittest.cpp |
| dbus_passive_unittest_LDADD = $(top_builddir)/dbus/util.o \ |
| $(top_builddir)/dbus/dbuspassive.o |
| |
| dbus_active_unittest_SOURCES = dbus_active_unittest.cpp |
| dbus_active_unittest_LDADD = $(top_builddir)/dbus/dbusactiveread.o |