blob: 1c44162b1523b13da997a5c515aa6f80267fe1be [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 \
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +05308 watchdog_test
9
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080010utestCPPFLAGS = $(GTEST_MAIN_CFLAGS) \
11 $(AM_CPPFLAGS) \
12 $(SDBUSPLUS_CFLAGS) \
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070013 $(SDEVENTPLUS_CFLAGS) \
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080014 $(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) \
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070023 $(SDEVENTPLUS_LIBS) \
William A. Kennington IIIe2aab942018-01-24 16:56:41 -080024 $(PHOSPHOR_LOGGING_LIBS) \
25 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053026
William A. Kennington IIIe335ed92018-01-23 22:13:44 -080027argument_test_CPPFLAGS = ${utestCPPFLAGS}
28argument_test_CXXFLAGS = ${utestCXXFLAGS}
29argument_test_LDFLAGS = ${utestLDFLAGS}
30
Vishwanatha Subbanna00bd3772017-05-31 14:53:42 +053031watchdog_test_CPPFLAGS = ${utestCPPFLAGS}
32watchdog_test_CXXFLAGS = ${utestCXXFLAGS}
33watchdog_test_LDFLAGS = ${utestLDFLAGS}
34
William A. Kennington III41d63a02018-02-02 16:34:53 -080035argument_test_SOURCES = ../argument.cpp argument_test.cpp
William A. Kennington IIIf505fc02018-09-12 18:30:09 -070036watchdog_test_SOURCES = ../watchdog.cpp watchdog_test.cpp