blob: 7fdbaf5beea0fad28bcd940b0afad7c763ab4fce [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 Ventureda064282018-06-12 19:33:47 -070015 sensor_host_unittest util_unittest
Patrick Venture7a841b62018-06-13 09:39:46 -070016TESTS = $(check_PROGRAMS)
Patrick Venturefe75b192018-06-08 11:19:43 -070017
18# Until libconfig is mocked out or replaced, include it.
19sensor_manager_unittest_SOURCES = sensor_manager_unittest.cpp
20sensor_manager_unittest_LDADD = $(top_builddir)/sensors/manager.o
Patrick Venturee31ee6d2018-06-08 18:49:27 -070021
22sensor_pluggable_unittest_SOURCES = sensor_pluggable_unittest.cpp
23sensor_pluggable_unittest_LDADD = $(top_builddir)/sensors/pluggable.o
Patrick Venture1fa9aab2018-06-11 10:46:49 -070024
25sensor_host_unittest_SOURCES = sensor_host_unittest.cpp
26sensor_host_unittest_LDADD = $(top_builddir)/sensors/host.o
Patrick Ventureda064282018-06-12 19:33:47 -070027
28util_unittest_SOURCES = util_unittest.cpp
29util_unittest_LDADD = $(top_builddir)/util.o