blob: 721157395cb4ec7434c6ace82acf87f0a64112b0 [file] [log] [blame]
Priyangafb4bec92019-03-25 11:51:31 +05301AM_CPPFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CPPFLAGS)
Deepak Kodihalli1b24f972019-02-01 04:09:13 -06002
3TESTS = $(check_PROGRAMS)
4
5check_PROGRAMS = \
6 libpldm_base_test \
Sampa Misra0db1dfa2019-03-19 00:15:31 -05007 libpldm_platform_test \
Deepak Kodihalli1b24f972019-02-01 04:09:13 -06008 libpldmresponder_base_test
9
10test_cppflags = \
11 -Igtest \
12 $(GTEST_CPPFLAGS) \
13 $(AM_CPPFLAGS)
14
15test_cxxflags = \
Priyangafb4bec92019-03-25 11:51:31 +053016 $(PTHREAD_CFLAGS) \
17 $(CODE_COVERAGE_CXXFLAGS)
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060018
19test_ldflags = \
20 -lgtest_main \
21 -lgtest \
22 $(PTHREAD_LIBS) \
23 $(OESDK_TESTCASE_FLAGS)
24
25libpldm_base_test_CPPFLAGS = $(test_cppflags)
26libpldm_base_test_CXXFLAGS = $(test_cxxflags)
27libpldm_base_test_LDFLAGS = $(test_ldflags)
Priyangafb4bec92019-03-25 11:51:31 +053028libpldm_base_test_LDADD = $(top_builddir)/libpldm/libpldm_la-base.o $(CODE_COVERAGE_LIBS)
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060029libpldm_base_test_SOURCES = libpldm_base_test.cpp
30
Sampa Misra0db1dfa2019-03-19 00:15:31 -050031libpldm_platform_test_CPPFLAGS = $(test_cppflags)
32libpldm_platform_test_CXXFLAGS = $(test_cxxflags)
33libpldm_platform_test_LDFLAGS = $(test_ldflags)
34libpldm_platform_test_LDADD = \
35 $(top_builddir)/libpldm/libpldm_la-platform.o \
36 $(top_builddir)/libpldm/libpldm_la-base.o \
37 $(CODE_COVERAGE_LIBS)
38libpldm_platform_test_SOURCES = libpldm_platform_test.cpp
39
40
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060041libpldmresponder_base_test_CPPFLAGS = $(test_cppflags)
42libpldmresponder_base_test_CXXFLAGS = $(test_cxxflags)
43libpldmresponder_base_test_LDFLAGS = $(test_ldflags)
44libpldmresponder_base_test_LDADD = \
Priyangafb4bec92019-03-25 11:51:31 +053045 $(top_builddir)/libpldm/libpldm_la-base.o \
46 $(top_builddir)/libpldmresponder/libpldmresponder_la-base.o $(CODE_COVERAGE_LIBS)
47
Deepak Kodihalli1b24f972019-02-01 04:09:13 -060048libpldmresponder_base_test_SOURCES = libpldmresponder_base_test.cpp