Tom Joseph | 7dae777 | 2019-04-10 14:44:44 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
| 2 | |
| 3 | TESTS = $(check_PROGRAMS) |
| 4 | |
| 5 | check_PROGRAMS = \ |
Tom Joseph | 5530676 | 2019-05-02 09:11:26 +0530 | [diff] [blame] | 6 | libpldmoem_fileio_test \ |
| 7 | libpldmoemresponder_fileio_test |
Tom Joseph | 7dae777 | 2019-04-10 14:44:44 +0530 | [diff] [blame] | 8 | |
| 9 | test_cppflags = \ |
| 10 | -Igtest \ |
| 11 | $(GTEST_CPPFLAGS) \ |
Tom Joseph | 5530676 | 2019-05-02 09:11:26 +0530 | [diff] [blame] | 12 | $(AM_CPPFLAGS) \ |
| 13 | $(PHOSPHOR_LOGGING_CFLAGS) |
Tom Joseph | 7dae777 | 2019-04-10 14:44:44 +0530 | [diff] [blame] | 14 | |
| 15 | test_cxxflags = \ |
| 16 | $(PTHREAD_CFLAGS) |
| 17 | |
| 18 | test_ldflags = \ |
| 19 | -lgtest_main \ |
| 20 | -lgtest \ |
| 21 | $(PTHREAD_LIBS) \ |
Tom Joseph | 5530676 | 2019-05-02 09:11:26 +0530 | [diff] [blame] | 22 | $(OESDK_TESTCASE_FLAGS) \ |
| 23 | $(PHOSPHOR_LOGGING_LIBS) \ |
| 24 | -lstdc++fs \ |
| 25 | -lgmock |
Tom Joseph | 7dae777 | 2019-04-10 14:44:44 +0530 | [diff] [blame] | 26 | |
Tom Joseph | 5530676 | 2019-05-02 09:11:26 +0530 | [diff] [blame] | 27 | libpldmoem_fileio_test_CPPFLAGS = $(test_cppflags) |
| 28 | libpldmoem_fileio_test_CXXFLAGS = $(test_cxxflags) |
| 29 | libpldmoem_fileio_test_LDFLAGS = $(test_ldflags) |
| 30 | libpldmoem_fileio_test_LDADD = \ |
| 31 | $(top_builddir)/libpldm/base.o \ |
| 32 | $(top_builddir)/libpldm/file_io.o |
| 33 | libpldmoem_fileio_test_SOURCES = libpldm_fileio_test.cpp |
| 34 | |
| 35 | libpldmoemresponder_fileio_test_CPPFLAGS = $(test_cppflags) |
| 36 | libpldmoemresponder_fileio_test_CXXFLAGS = $(test_cxxflags) |
| 37 | libpldmoemresponder_fileio_test_LDFLAGS = $(test_ldflags) |
| 38 | libpldmoemresponder_fileio_test_LDADD = \ |
| 39 | $(top_builddir)/libpldm/base.o \ |
| 40 | $(top_builddir)/libpldm/file_io.o \ |
Tom Joseph | b4ecdf2 | 2019-05-15 12:16:40 +0530 | [diff] [blame^] | 41 | $(top_builddir)/libpldmresponder/file_io.o \ |
| 42 | $(top_builddir)/libpldmresponder/file_table.o |
Tom Joseph | 5530676 | 2019-05-02 09:11:26 +0530 | [diff] [blame] | 43 | libpldmoemresponder_fileio_test_SOURCES = libpldmresponder_fileio_test.cpp |
| 44 | |