blob: dc862c4b8f41653d20c3ad8f2f4a4b690fdabe67 [file] [log] [blame]
@VALGRIND_CHECK_RULES@
AM_CPPFLAGS = \
-I$(top_srcdir)/ \
$(GTEST_CFLAGS) \
$(GMOCK_CFLAGS) \
$(CODE_COVERAGE_CPPFLAGS)
AM_CFLAGS = \
$(CODE_COVERAGE_CFLAGS)
AM_CXXFLAGS = \
$(CODE_COVERAGE_CXXFLAGS)
AM_LDFLAGS = \
$(GTEST_LIBS) \
$(GMOCK_LIBS) \
-lgmock_main \
$(OESDK_TESTCASE_FLAGS) \
$(CODE_COVERAGE_LIBS)
# Run all 'check' test programs
check_PROGRAMS = \
ipmi_unittest \
ipmi_getcount_unittest \
ipmi_enumerate_unittest \
ipmi_open_unittest \
ipmi_close_unittest \
ipmi_delete_unittest \
ipmi_stat_unittest \
ipmi_sessionstat_unittest \
ipmi_commit_unittest \
ipmi_read_unittest \
ipmi_write_unittest \
ipmi_writemeta_unittest \
ipmi_validate_unittest \
manager_unittest \
manager_getsession_unittest \
manager_open_unittest \
manager_stat_unittest \
manager_sessionstat_unittest \
manager_commit_unittest \
manager_close_unittest \
manager_delete_unittest \
manager_write_unittest \
manager_read_unittest \
manager_writemeta_unittest \
process_unittest \
utils_unittest
TESTS = $(check_PROGRAMS)
ipmi_unittest_SOURCES = ipmi_unittest.cpp
ipmi_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_getcount_unittest_SOURCES = ipmi_getcount_unittest.cpp
ipmi_getcount_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_enumerate_unittest_SOURCES = ipmi_enumerate_unittest.cpp
ipmi_enumerate_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_open_unittest_SOURCES = ipmi_open_unittest.cpp
ipmi_open_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_close_unittest_SOURCES = ipmi_close_unittest.cpp
ipmi_close_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_delete_unittest_SOURCES = ipmi_delete_unittest.cpp
ipmi_delete_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_stat_unittest_SOURCES = ipmi_stat_unittest.cpp
ipmi_stat_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_sessionstat_unittest_SOURCES = ipmi_sessionstat_unittest.cpp
ipmi_sessionstat_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_commit_unittest_SOURCES = ipmi_commit_unittest.cpp
ipmi_commit_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_read_unittest_SOURCES = ipmi_read_unittest.cpp
ipmi_read_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_write_unittest_SOURCES = ipmi_write_unittest.cpp
ipmi_write_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_writemeta_unittest_SOURCES = ipmi_writemeta_unittest.cpp
ipmi_writemeta_unittest_LDADD = $(top_builddir)/ipmi.o
ipmi_validate_unittest_SOURCES = ipmi_validate_unittest.cpp
ipmi_validate_unittest_LDADD = $(top_builddir)/ipmi.o
manager_unittest_SOURCES = manager_unittest.cpp
manager_unittest_LDADD = $(top_builddir)/manager.o
manager_getsession_unittest_SOURCES = manager_getsession_unittest.cpp
manager_getsession_unittest_LDADD = $(top_builddir)/manager.o
manager_open_unittest_SOURCES = manager_open_unittest.cpp
manager_open_unittest_LDADD = $(top_builddir)/manager.o
manager_stat_unittest_SOURCES = manager_stat_unittest.cpp
manager_stat_unittest_LDADD = $(top_builddir)/manager.o
manager_sessionstat_unittest_SOURCES = manager_sessionstat_unittest.cpp
manager_sessionstat_unittest_LDADD = $(top_builddir)/manager.o
manager_commit_unittest_SOURCES = manager_commit_unittest.cpp
manager_commit_unittest_LDADD = $(top_builddir)/manager.o
manager_close_unittest_SOURCES = manager_close_unittest.cpp
manager_close_unittest_LDADD = $(top_builddir)/manager.o
manager_delete_unittest_SOURCES = manager_delete_unittest.cpp
manager_delete_unittest_LDADD = $(top_builddir)/manager.o
manager_write_unittest_SOURCES = manager_write_unittest.cpp
manager_write_unittest_LDADD = $(top_builddir)/manager.o
manager_read_unittest_SOURCES = manager_read_unittest.cpp
manager_read_unittest_LDADD = $(top_builddir)/manager.o
manager_writemeta_unittest_SOURCES = manager_writemeta_unittest.cpp
manager_writemeta_unittest_LDADD = $(top_builddir)/manager.o
process_unittest_SOURCES = process_unittest.cpp
process_unittest_LDADD = $(top_builddir)/process.o $(top_builddir)/ipmi.o
utils_unittest_SOURCES = utils_unittest.cpp
utils_unittest_LDADD = $(top_builddir)/utils.o $(PHOSPHOR_LOGGING_LIBS)