blob: bb1d048d9a3e4c2634b0bf901020a6234b6d0b44 [file] [log] [blame]
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +05301AM_CPPFLAGS = -I$(top_srcdir)
2
3# Run all 'check' test programs
4TESTS = $(check_PROGRAMS)
5
6# Build/add utest to test suite
William A. Kennington III1eb97d92018-09-13 00:36:12 -07007check_PROGRAMS = watchdog_test
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +05308
William A. Kennington IIIe2aab942018-01-24 16:56:41 -08009utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \
10 $(AM_CPPFLAGS) \
11 $(SDBUSPLUS_CFLAGS) \
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070012 $(SDEVENTPLUS_CFLAGS) \
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080013 $(PHOSPHOR_LOGGING_CFLAGS) \
14 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053015
16utestCXXFLAGS = $(PTHREAD_CFLAGS)
17
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080018utestLDFLAGS = $(GTEST_MAIN_LIBS) \
19 $(PTHREAD_LIBS) \
20 $(OESDK_TESTCASE_FLAGS) \
21 $(SDBUSPLUS_LIBS) \
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070022 $(SDEVENTPLUS_LIBS) \
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080023 $(PHOSPHOR_LOGGING_LIBS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053025
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053026watchdog_test_CPPFLAGS = ${utestCPPFLAGS}
27watchdog_test_CXXFLAGS = ${utestCXXFLAGS}
28watchdog_test_LDFLAGS = ${utestLDFLAGS}
29
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070030watchdog_test_SOURCES = ../watchdog.cpp watchdog_test.cpp