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 \ |
| 8 | timer_test \ |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 9 | watchdog_test |
| 10 | |
William A. Kennington III | e2aab94 | 2018-01-24 16:56:41 -0800 | [diff] [blame] | 11 | utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \ |
| 12 | $(AM_CPPFLAGS) \ |
| 13 | $(SDBUSPLUS_CFLAGS) \ |
| 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) \ |
| 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 24 | $(PHOSPHOR_DBUS_INTERFACES_LIBS) |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 25 | |
William A. Kennington III | e335ed9 | 2018-01-23 22:13:44 -0800 | [diff] [blame] | 26 | argument_test_CPPFLAGS = ${utestCPPFLAGS} |
| 27 | argument_test_CXXFLAGS = ${utestCXXFLAGS} |
| 28 | argument_test_LDFLAGS = ${utestLDFLAGS} |
| 29 | |
Vishwanatha Subbanna | 00bd377 | 2017-05-31 14:53:42 +0530 | [diff] [blame] | 30 | timer_test_CPPFLAGS = ${utestCPPFLAGS} |
| 31 | timer_test_CXXFLAGS = ${utestCXXFLAGS} |
| 32 | timer_test_LDFLAGS = ${utestLDFLAGS} |
| 33 | |
| 34 | watchdog_test_CPPFLAGS = ${utestCPPFLAGS} |
| 35 | watchdog_test_CXXFLAGS = ${utestCXXFLAGS} |
| 36 | watchdog_test_LDFLAGS = ${utestLDFLAGS} |
| 37 | |
William A. Kennington III | 41d63a0 | 2018-02-02 16:34:53 -0800 | [diff] [blame] | 38 | argument_test_SOURCES = ../argument.cpp argument_test.cpp |
| 39 | timer_test_SOURCES = ../timer.cpp timer_test.cpp |
| 40 | watchdog_test_SOURCES = ../timer.cpp ../watchdog.cpp watchdog_test.cpp |