Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | # Run all 'check' test programs |
| 4 | TESTS = $(check_PROGRAMS) |
| 5 | |
| 6 | # Build/add utest to test suite |
William A. Kennington III | 1eb97d9 | 2018-09-13 00:36:12 -0700 | [diff] [blame] | 7 | check_PROGRAMS = watchdog_test |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 8 | |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 9 | utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \ |
| 10 | $(AM_CPPFLAGS) \ |
| 11 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame] | 12 | $(SDEVENTPLUS_CFLAGS) \ |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 13 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 14 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 15 | |
| 16 | utestCXXFLAGS = $(PTHREAD_CFLAGS) |
| 17 | |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 18 | utestLDFLAGS = $(GTEST_MAIN_LIBS) \ |
| 19 | $(PTHREAD_LIBS) \ |
| 20 | $(OESDK_TESTCASE_FLAGS) \ |
| 21 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame] | 22 | $(SDEVENTPLUS_LIBS) \ |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 25 | |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 26 | watchdog_test_CPPFLAGS = ${utestCPPFLAGS} |
| 27 | watchdog_test_CXXFLAGS = ${utestCXXFLAGS} |
| 28 | watchdog_test_LDFLAGS = ${utestLDFLAGS} |
| 29 | |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame] | 30 | watchdog_test_SOURCES = ../watchdog.cpp watchdog_test.cpp |