blob: 04cf2df2c402bfa2960788dd5ccb7c5eb558375d [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) \
Patrick Venture4cf39862018-12-06 10:24:44 -08005 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
6 $(PHOSPHOR_LOGGING_CFLAGS)
Patrick Venture2e3ecb52018-06-22 08:18:19 -07007AM_LDFLAGS = \
Patrick Venture7a841b62018-06-13 09:39:46 -07008 $(GMOCK_LIBS) \
Patrick Venture2e3ecb52018-06-22 08:18:19 -07009 $(GTEST_MAIN_LIBS) \
Patrick Venture7a841b62018-06-13 09:39:46 -070010 $(OESDK_TESTCASE_FLAGS) \
11 $(SDBUSPLUS_LIBS) \
Patrick Venture4cf39862018-12-06 10:24:44 -080012 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
13 $(PHOSPHOR_LOGGING_LIBS)
Patrick Venture7a841b62018-06-13 09:39:46 -070014
15# Run all 'check' test programs
Patrick Venture1fa9aab2018-06-11 10:46:49 -070016check_PROGRAMS = sensor_manager_unittest sensor_pluggable_unittest \
Patrick Venture3349ef22018-06-12 14:09:29 -070017 sensor_host_unittest util_unittest pid_zone_unittest \
Patrick Venture0ef1faf2018-06-13 12:50:53 -070018 pid_thermalcontroller_unittest pid_fancontroller_unittest \
James Feist3dfaafd2018-09-20 15:46:58 -070019 pid_stepwisecontroller_unittest \
Patrick Ventureeeeb8672019-02-08 11:47:42 -080020 dbus_passive_unittest dbus_active_unittest \
Patrick Venture5426c342019-02-11 12:03:30 -080021 sensors_json_unittest pid_json_unittest json_parse_unittest
Patrick Venture7a841b62018-06-13 09:39:46 -070022TESTS = $(check_PROGRAMS)
Patrick Venturefe75b192018-06-08 11:19:43 -070023
24# Until libconfig is mocked out or replaced, include it.
25sensor_manager_unittest_SOURCES = sensor_manager_unittest.cpp
26sensor_manager_unittest_LDADD = $(top_builddir)/sensors/manager.o
Patrick Venturee31ee6d2018-06-08 18:49:27 -070027
28sensor_pluggable_unittest_SOURCES = sensor_pluggable_unittest.cpp
29sensor_pluggable_unittest_LDADD = $(top_builddir)/sensors/pluggable.o
Patrick Venture1fa9aab2018-06-11 10:46:49 -070030
31sensor_host_unittest_SOURCES = sensor_host_unittest.cpp
32sensor_host_unittest_LDADD = $(top_builddir)/sensors/host.o
Patrick Ventureda064282018-06-12 19:33:47 -070033
34util_unittest_SOURCES = util_unittest.cpp
35util_unittest_LDADD = $(top_builddir)/util.o
Patrick Venturea58197c2018-06-11 15:29:45 -070036
37pid_zone_unittest_SOURCES = pid_zone_unittest.cpp
38pid_zone_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
James Feist22c257a2018-08-31 14:07:12 -070039 $(top_builddir)/sensors/manager.o $(top_builddir)/pid/pidcontroller.o \
Patrick Venturea58197c2018-06-11 15:29:45 -070040 $(top_builddir)/pid/zone.o
Patrick Venture3349ef22018-06-12 14:09:29 -070041
42pid_thermalcontroller_unittest_SOURCES = pid_thermalcontroller_unittest.cpp
43pid_thermalcontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
James Feist22c257a2018-08-31 14:07:12 -070044 $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \
Patrick Venture3349ef22018-06-12 14:09:29 -070045 $(top_builddir)/pid/thermalcontroller.o
Patrick Venture566a1512018-06-12 14:51:07 -070046
James Feist3dfaafd2018-09-20 15:46:58 -070047pid_stepwisecontroller_unittest_SOURCES = pid_stepwisecontroller_unittest.cpp
48pid_stepwisecontroller_unittest_LDADD = $(top_builddir)/pid/ec/stepwise.o \
49 $(top_builddir)/pid/util.o $(top_builddir)/pid/stepwisecontroller.o
50
Patrick Venture566a1512018-06-12 14:51:07 -070051pid_fancontroller_unittest_SOURCES = pid_fancontroller_unittest.cpp
52pid_fancontroller_unittest_LDADD = $(top_builddir)/pid/ec/pid.o \
James Feist22c257a2018-08-31 14:07:12 -070053 $(top_builddir)/pid/util.o $(top_builddir)/pid/pidcontroller.o \
Patrick Venture566a1512018-06-12 14:51:07 -070054 $(top_builddir)/pid/fancontroller.o
Patrick Venture0ef1faf2018-06-13 12:50:53 -070055
56dbus_passive_unittest_SOURCES = dbus_passive_unittest.cpp
57dbus_passive_unittest_LDADD = $(top_builddir)/dbus/util.o \
58 $(top_builddir)/dbus/dbuspassive.o
Patrick Venture25243232018-06-14 10:34:34 -070059
60dbus_active_unittest_SOURCES = dbus_active_unittest.cpp
61dbus_active_unittest_LDADD = $(top_builddir)/dbus/dbusactiveread.o
Patrick Ventureeeeb8672019-02-08 11:47:42 -080062
63sensors_json_unittest_SOURCES = sensors_json_unittest.cpp
64sensors_json_unittest_LDADD = $(top_builddir)/sensors/buildjson.o
Patrick Ventured1491722019-02-08 14:37:45 -080065
66pid_json_unittest_SOURCES = pid_json_unittest.cpp
67pid_json_unittest_LDADD = $(top_builddir)/pid/buildjson.o
Patrick Venture5426c342019-02-11 12:03:30 -080068
69json_parse_unittest_SOURCES = json_parse_unittest.cpp
70json_parse_unittest_LDADD = $(top_builddir)/build/buildjson.o