Patrick Venture | 5d8f570 | 2019-03-06 10:24:04 -0800 | [diff] [blame] | 1 | AM_CPPFLAGS = \ |
| 2 | -I$(top_srcdir)/ \ |
| 3 | $(GTEST_CFLAGS) \ |
| 4 | $(GMOCK_CFLAGS) \ |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 5 | $(SDBUSPLUS_CFLAGS) \ |
Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame^] | 6 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \ |
| 7 | $(CODE_COVERAGE_CPPFLAGS) |
| 8 | AM_CFLAGS = \ |
| 9 | $(CODE_COVERAGE_CFLAGS) |
| 10 | AM_CXXFLAGS = \ |
| 11 | $(CODE_COVERAGE_CXXFLAGS) |
Patrick Venture | 9f51481 | 2018-06-27 10:19:32 -0700 | [diff] [blame] | 12 | AM_LDFLAGS = \ |
Patrick Venture | 5d8f570 | 2019-03-06 10:24:04 -0800 | [diff] [blame] | 13 | $(GTEST_LIBS) \ |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 14 | $(GMOCK_LIBS) \ |
Patrick Venture | 5d8f570 | 2019-03-06 10:24:04 -0800 | [diff] [blame] | 15 | -lgmock_main \ |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 16 | $(OESDK_TESTCASE_FLAGS) \ |
| 17 | $(SDBUSPLUS_LIBS) \ |
Patrick Venture | 69a68ed | 2019-03-06 10:37:30 -0800 | [diff] [blame^] | 18 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) \ |
| 19 | $(CODE_COVERAGE_LIBS) |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 20 | |
| 21 | # Run all 'check' test programs |
Patrick Venture | 0e2d68d | 2018-12-19 07:53:45 -0800 | [diff] [blame] | 22 | check_PROGRAMS = hwmon_unittest fanpwm_unittest sensor_unittest |
Patrick Venture | 609fe98 | 2018-04-17 17:51:56 -0700 | [diff] [blame] | 23 | TESTS = $(check_PROGRAMS) |
| 24 | |
| 25 | hwmon_unittest_SOURCES = hwmon_unittest.cpp |
| 26 | hwmon_unittest_LDADD = $(top_builddir)/hwmon.o |
| 27 | |
Patrick Venture | 5055237 | 2018-06-07 10:53:56 -0700 | [diff] [blame] | 28 | fanpwm_unittest_SOURCES = fanpwm_unittest.cpp |
| 29 | fanpwm_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) $(top_builddir)/fan_pwm.o |
Patrick Venture | 0e2d68d | 2018-12-19 07:53:45 -0800 | [diff] [blame] | 30 | |
| 31 | sensor_unittest_SOURCES = sensor_unittest.cpp |
| 32 | sensor_unittest_CXXFLAGS = \ |
| 33 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 34 | $(GPIOPLUS_CFLAGS) |
| 35 | sensor_unittest_LDADD = \ |
| 36 | -lstdc++fs \ |
| 37 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 38 | $(GPIOPLUS_LIBS) \ |
| 39 | $(top_builddir)/sensor.o \ |
| 40 | $(top_builddir)/hwmon.o \ |
Patrick Venture | 99b9581 | 2018-12-19 08:59:15 -0800 | [diff] [blame] | 41 | env.o \ |
| 42 | gpio.o |