blob: d276ec417cff80505ad00c62227289d5f86e4666 [file] [log] [blame]
Tom Joseph7dae7772019-04-10 14:44:44 +05301AM_CPPFLAGS = -I$(top_srcdir)
2
3TESTS = $(check_PROGRAMS)
4
5check_PROGRAMS = \
Tom Joseph55306762019-05-02 09:11:26 +05306 libpldmoem_fileio_test \
7 libpldmoemresponder_fileio_test
Tom Joseph7dae7772019-04-10 14:44:44 +05308
9test_cppflags = \
10 -Igtest \
11 $(GTEST_CPPFLAGS) \
Tom Joseph55306762019-05-02 09:11:26 +053012 $(AM_CPPFLAGS) \
13 $(PHOSPHOR_LOGGING_CFLAGS)
Tom Joseph7dae7772019-04-10 14:44:44 +053014
15test_cxxflags = \
16 $(PTHREAD_CFLAGS)
17
18test_ldflags = \
19 -lgtest_main \
20 -lgtest \
21 $(PTHREAD_LIBS) \
Tom Joseph55306762019-05-02 09:11:26 +053022 $(OESDK_TESTCASE_FLAGS) \
23 $(PHOSPHOR_LOGGING_LIBS) \
24 -lstdc++fs \
25 -lgmock
Tom Joseph7dae7772019-04-10 14:44:44 +053026
Tom Joseph55306762019-05-02 09:11:26 +053027libpldmoem_fileio_test_CPPFLAGS = $(test_cppflags)
28libpldmoem_fileio_test_CXXFLAGS = $(test_cxxflags)
29libpldmoem_fileio_test_LDFLAGS = $(test_ldflags)
30libpldmoem_fileio_test_LDADD = \
31 $(top_builddir)/libpldm/base.o \
32 $(top_builddir)/libpldm/file_io.o
33libpldmoem_fileio_test_SOURCES = libpldm_fileio_test.cpp
34
35libpldmoemresponder_fileio_test_CPPFLAGS = $(test_cppflags)
36libpldmoemresponder_fileio_test_CXXFLAGS = $(test_cxxflags)
37libpldmoemresponder_fileio_test_LDFLAGS = $(test_ldflags)
38libpldmoemresponder_fileio_test_LDADD = \
39 $(top_builddir)/libpldm/base.o \
40 $(top_builddir)/libpldm/file_io.o \
Tom Josephb4ecdf22019-05-15 12:16:40 +053041 $(top_builddir)/libpldmresponder/file_io.o \
42 $(top_builddir)/libpldmresponder/file_table.o
Tom Joseph55306762019-05-02 09:11:26 +053043libpldmoemresponder_fileio_test_SOURCES = libpldmresponder_fileio_test.cpp
44