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 | e335ed9 | 2018-01-23 22:13:44 -0800 | [diff] [blame] | 7 | check_PROGRAMS = argument_test \ |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 8 | watchdog_test |
| 9 | |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 10 | utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \ |
| 11 | $(AM_CPPFLAGS) \ |
| 12 | $(SDBUSPLUS_CFLAGS) \ |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame^] | 13 | $(SDEVENTPLUS_CFLAGS) \ |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 14 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 15 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 16 | |
| 17 | utestCXXFLAGS = $(PTHREAD_CFLAGS) |
| 18 | |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 19 | utestLDFLAGS = $(GTEST_MAIN_LIBS) \ |
| 20 | $(PTHREAD_LIBS) \ |
| 21 | $(OESDK_TESTCASE_FLAGS) \ |
| 22 | $(SDBUSPLUS_LIBS) \ |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame^] | 23 | $(SDEVENTPLUS_LIBS) \ |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 24 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 25 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 26 | |
William A. Kennington III | e335ed9 | 2018-01-23 22:13:44 -0800 | [diff] [blame] | 27 | argument_test_CPPFLAGS = ${utestCPPFLAGS} |
| 28 | argument_test_CXXFLAGS = ${utestCXXFLAGS} |
| 29 | argument_test_LDFLAGS = ${utestLDFLAGS} |
| 30 | |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 31 | watchdog_test_CPPFLAGS = ${utestCPPFLAGS} |
| 32 | watchdog_test_CXXFLAGS = ${utestCXXFLAGS} |
| 33 | watchdog_test_LDFLAGS = ${utestLDFLAGS} |
| 34 | |
William A. Kennington III | 41d63a0 | 2018-02-02 16:34:53 -0800 | [diff] [blame] | 35 | argument_test_SOURCES = ../argument.cpp argument_test.cpp |
William A. Kennington III | f505fc0 | 2018-09-12 18:30:09 -0700 | [diff] [blame^] | 36 | watchdog_test_SOURCES = ../watchdog.cpp watchdog_test.cpp |