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