blob: e500841edc07ab6bd14dbb5b1f25ab1cc2bc406a [file] [log] [blame]
AM_CPPFLAGS = \
-I$(top_srcdir) \
$(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS = \
$(SDBUSPLUS_CFLAGS) \
$(SDEVENTPLUS_CFLAGS) \
$(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
$(PHOSPHOR_LOGGING_CFLAGS) \
$(CODE_COVERAGE_CPPFLAGS)
AM_CXXFLAGS = \
$(CODE_COVERAGE_CXXFLAGS)
AM_LDFLAGS = \
-lstdc++fs \
$(SDBUSPLUS_LIBS) \
$(SDEVENTPLUS_LIBS) \
$(PHOSPHOR_DBUS_INTERFACES_LIBS) \
$(PHOSPHOR_LOGGING_LIBS) \
$(OPENSSL_LIBS) \
$(GTEST_LIBS) -lgmock_main $(GMOCK_LIBS) \
$(OESDK_TESTCASE_FLAGS) \
$(CODE_COVERAGE_LIBS)
check_PROGRAMS =
# Run all 'check' test programs
TESTS = $(check_PROGRAMS)
# Build/add certs_manager_test to test suite
check_PROGRAMS += certs_manager_test
certs_manager_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_CPPFLAGS)
certs_manager_test_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS)
certs_manager_test_SOURCES = certs_manager_test.cpp
certs_manager_test_LDADD = $(top_builddir)/certs_manager.o
certs_manager_test_LDADD += $(top_builddir)/certificate.o
certs_manager_test_LDADD += $(top_builddir)/csr.o
certs_manager_test_LDADD += $(top_builddir)/watch.o
certs_manager_test_LDADD += $(CODE_COVERAGE_LIBS)
if CA_CERT_EXTENSION
# Build/add ca_certs_manager_test to test suite
check_PROGRAMS += ca_certs_manager_test
ca_certs_manager_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_CPPFLAGS)
ca_certs_manager_test_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS)
ca_certs_manager_test_SOURCES = ca_certs_manager_test.cpp
ca_certs_manager_test_LDADD = $(top_builddir)/bmc-vmi-ca/ca_certs_manager.o
ca_certs_manager_test_LDADD += $(top_builddir)/bmc-vmi-ca/ca_cert_entry.o
ca_certs_manager_test_LDADD += $(CODE_COVERAGE_LIBS)
endif