blob: 35a739539e31cd76378e2ff53177e6545cb1d4e9 [file] [log] [blame]
AM_CPPFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CPPFLAGS)
TESTS = $(check_PROGRAMS)
check_PROGRAMS = \
libpldm_base_test \
libpldmresponder_base_test
test_cppflags = \
-Igtest \
$(GTEST_CPPFLAGS) \
$(AM_CPPFLAGS)
test_cxxflags = \
$(PTHREAD_CFLAGS) \
$(CODE_COVERAGE_CXXFLAGS)
test_ldflags = \
-lgtest_main \
-lgtest \
$(PTHREAD_LIBS) \
$(OESDK_TESTCASE_FLAGS)
libpldm_base_test_CPPFLAGS = $(test_cppflags)
libpldm_base_test_CXXFLAGS = $(test_cxxflags)
libpldm_base_test_LDFLAGS = $(test_ldflags)
libpldm_base_test_LDADD = $(top_builddir)/libpldm/libpldm_la-base.o $(CODE_COVERAGE_LIBS)
libpldm_base_test_SOURCES = libpldm_base_test.cpp
libpldmresponder_base_test_CPPFLAGS = $(test_cppflags)
libpldmresponder_base_test_CXXFLAGS = $(test_cxxflags)
libpldmresponder_base_test_LDFLAGS = $(test_ldflags)
libpldmresponder_base_test_LDADD = \
$(top_builddir)/libpldm/libpldm_la-base.o \
$(top_builddir)/libpldmresponder/libpldmresponder_la-base.o $(CODE_COVERAGE_LIBS)
libpldmresponder_base_test_SOURCES = libpldmresponder_base_test.cpp