blob: 48b35592ade0c72872fb33e1e77a987373c6554b [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 IIIe335ed92018-01-23 22:13:44 -08007check_PROGRAMS = argument_test \
8 timer_test \
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +05309 watchdog_test
10
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080011utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \
12 $(AM_CPPFLAGS) \
13 $(SDBUSPLUS_CFLAGS) \
14 $(PHOSPHOR_LOGGING_CFLAGS) \
15 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053016
17utestCXXFLAGS = $(PTHREAD_CFLAGS)
18
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080019utestLDFLAGS = $(GTEST_MAIN_LIBS) \
20 $(PTHREAD_LIBS) \
21 $(OESDK_TESTCASE_FLAGS) \
22 $(SDBUSPLUS_LIBS) \
23 $(PHOSPHOR_LOGGING_LIBS) \
24 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053025
William A. Kennington IIIe335ed92018-01-23 22:13:44 -080026argument_test_CPPFLAGS = ${utestCPPFLAGS}
27argument_test_CXXFLAGS = ${utestCXXFLAGS}
28argument_test_LDFLAGS = ${utestLDFLAGS}
29
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053030timer_test_CPPFLAGS = ${utestCPPFLAGS}
31timer_test_CXXFLAGS = ${utestCXXFLAGS}
32timer_test_LDFLAGS = ${utestLDFLAGS}
33
34watchdog_test_CPPFLAGS = ${utestCPPFLAGS}
35watchdog_test_CXXFLAGS = ${utestCXXFLAGS}
36watchdog_test_LDFLAGS = ${utestLDFLAGS}
37
William A. Kennington III41d63a02018-02-02 16:34:53 -080038argument_test_SOURCES = ../argument.cpp argument_test.cpp
39timer_test_SOURCES = ../timer.cpp timer_test.cpp
40watchdog_test_SOURCES = ../timer.cpp ../watchdog.cpp watchdog_test.cpp