blob: 562de0395d67080517c5941a8ca4df3e9abd35ce [file] [log] [blame]
AM_CPPFLAGS = \
-I$(top_srcdir)/ \
$(GTEST_CFLAGS) \
$(GMOCK_CFLAGS) \
$(SDBUSPLUS_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
AM_LDFLAGS = \
$(GTEST_LIBS) \
$(GMOCK_LIBS) \
-lgmock_main \
$(OESDK_TESTCASE_FLAGS) \
$(SDBUSPLUS_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS)
# Run all 'check' test programs
check_PROGRAMS = hwmon_unittest fanpwm_unittest sensor_unittest
TESTS = $(check_PROGRAMS)
hwmon_unittest_SOURCES = hwmon_unittest.cpp
hwmon_unittest_LDADD = $(top_builddir)/hwmon.o
fanpwm_unittest_SOURCES = fanpwm_unittest.cpp
fanpwm_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) $(top_builddir)/fan_pwm.o
sensor_unittest_SOURCES = sensor_unittest.cpp
sensor_unittest_CXXFLAGS = \
$(PHOSPHOR_LOGGING_CFLAGS) \
$(GPIOPLUS_CFLAGS)
sensor_unittest_LDADD = \
-lstdc++fs \
$(PHOSPHOR_LOGGING_LIBS) \
$(GPIOPLUS_LIBS) \
$(top_builddir)/sensor.o \
$(top_builddir)/hwmon.o \
env.o \
gpio.o