Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/ $(GTEST_CFLAGS) $(GMOCK_CFLAGS) |
Patrick Venture | 2e3ecb5 | 2018-06-22 08:18:19 -0700 | [diff] [blame] | 2 | AM_CXXFLAGS = \ |
| 3 | $(GTEST_MAIN_CFLAGS) \ |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 4 | $(SDBUSPLUS_CFLAGS) \ |
Patrick Venture | 4cf3986 | 2018-12-06 10:24:44 -0800 | [diff] [blame^] | 5 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 6 | $(PHOSPHOR_LOGGING_CFLAGS) |
Patrick Venture | 2e3ecb5 | 2018-06-22 08:18:19 -0700 | [diff] [blame] | 7 | AM_LDFLAGS = \ |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 8 | $(GMOCK_LIBS) \ |
Patrick Venture | 2e3ecb5 | 2018-06-22 08:18:19 -0700 | [diff] [blame] | 9 | $(GTEST_MAIN_LIBS) \ |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 10 | $(OESDK_TESTCASE_FLAGS) \ |
| 11 | $(SDBUSPLUS_LIBS) \ |
Patrick Venture | 4cf3986 | 2018-12-06 10:24:44 -0800 | [diff] [blame^] | 12 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 13 | $(PHOSPHOR_LOGGING_LIBS) |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 14 | |
| 15 | # Run all 'check' test programs |
Patrick Venture | 1fa9aab | 2018-06-11 10:46:49 -0700 | [diff] [blame] | 16 | check_PROGRAMS = sensor_manager_unittest sensor_pluggable_unittest \ |
Patrick Venture | 3349ef2 | 2018-06-12 14:09:29 -0700 | [diff] [blame] | 17 | sensor_host_unittest util_unittest pid_zone_unittest \ |
Patrick Venture | 0ef1faf | 2018-06-13 12:50:53 -0700 | [diff] [blame] | 18 | pid_thermalcontroller_unittest pid_fancontroller_unittest \ |
James Feist | 3dfaafd | 2018-09-20 15:46:58 -0700 | [diff] [blame] | 19 | pid_stepwisecontroller_unittest \ |
Patrick Venture | 2524323 | 2018-06-14 10:34:34 -0700 | [diff] [blame] | 20 | dbus_passive_unittest dbus_active_unittest |
Patrick Venture | 7a841b6 | 2018-06-13 09:39:46 -0700 | [diff] [blame] | 21 | TESTS = $(check_PROGRAMS) |
Patrick Venture | fe75b19 | 2018-06-08 11:19:43 -0700 | [diff] [blame] | 22 | |
| 23 | # Until libconfig is mocked out or replaced, include it. |
| 24 | sensor_manager_unittest_SOURCES = sensor_manager_unittest.cpp |
| 25 | sensor_manager_unittest_LDADD = $(top_builddir)/sensors/manager.o |
Patrick Venture | e31ee6d | 2018-06-08 18:49:27 -0700 | [diff] [blame] | 26 | |
| 27 | sensor_pluggable_unittest_SOURCES = sensor_pluggable_unittest.cpp |
| 28 | sensor_pluggable_unittest_LDADD = $(top_builddir)/sensors/pluggable.o |
Patrick Venture | 1fa9aab | 2018-06-11 10:46:49 -0700 | [diff] [blame] | 29 | |
| 30 | sensor_host_unittest_SOURCES = sensor_host_unittest.cpp |
| 31 | sensor_host_unittest_LDADD = $(top_builddir)/sensors/host.o |
Patrick Venture | da06428 | 2018-06-12 19:33:47 -0700 | [diff] [blame] | 32 | |
| 33 | util_unittest_SOURCES = util_unittest.cpp |
| 34 | util_unittest_LDADD = $(top_builddir)/util.o |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 35 | |
| 36 | pid_zone_unittest_SOURCES = pid_zone_unittest.cpp |
| 37 | pid_zone_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 38 | $(top_builddir)/sensors/manager.o $(top_builddir)/pid/pidcontroller.o \ |
Patrick Venture | a58197c | 2018-06-11 15:29:45 -0700 | [diff] [blame] | 39 | $(top_builddir)/pid/zone.o |
Patrick Venture | 3349ef2 | 2018-06-12 14:09:29 -0700 | [diff] [blame] | 40 | |
| 41 | pid_thermalcontroller_unittest_SOURCES = pid_thermalcontroller_unittest.cpp |
| 42 | pid_thermalcontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 43 | $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \ |
Patrick Venture | 3349ef2 | 2018-06-12 14:09:29 -0700 | [diff] [blame] | 44 | $(top_builddir)/pid/thermalcontroller.o |
Patrick Venture | 566a151 | 2018-06-12 14:51:07 -0700 | [diff] [blame] | 45 | |
James Feist | 3dfaafd | 2018-09-20 15:46:58 -0700 | [diff] [blame] | 46 | pid_stepwisecontroller_unittest_SOURCES = pid_stepwisecontroller_unittest.cpp |
| 47 | pid_stepwisecontroller_unittest_LDADD = $(top_builddir)/pid/ec/stepwise.o \ |
| 48 | $(top_builddir)/pid/util.o $(top_builddir)/pid/stepwisecontroller.o |
| 49 | |
Patrick Venture | 566a151 | 2018-06-12 14:51:07 -0700 | [diff] [blame] | 50 | pid_fancontroller_unittest_SOURCES = pid_fancontroller_unittest.cpp |
| 51 | pid_fancontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \ |
James Feist | 22c257a | 2018-08-31 14:07:12 -0700 | [diff] [blame] | 52 | $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \ |
Patrick Venture | 566a151 | 2018-06-12 14:51:07 -0700 | [diff] [blame] | 53 | $(top_builddir)/pid/fancontroller.o |
Patrick Venture | 0ef1faf | 2018-06-13 12:50:53 -0700 | [diff] [blame] | 54 | |
| 55 | dbus_passive_unittest_SOURCES = dbus_passive_unittest.cpp |
| 56 | dbus_passive_unittest_LDADD = $(top_builddir)/dbus/util.o \ |
| 57 | $(top_builddir)/dbus/dbuspassive.o |
Patrick Venture | 2524323 | 2018-06-14 10:34:34 -0700 | [diff] [blame] | 58 | |
| 59 | dbus_active_unittest_SOURCES = dbus_active_unittest.cpp |
| 60 | dbus_active_unittest_LDADD = $(top_builddir)/dbus/dbusactiveread.o |