Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) $(CODE_COVERAGE_CPPFLAGS) |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 2 | |
| 3 | TESTS = $(check_PROGRAMS) |
| 4 | |
| 5 | check_PROGRAMS = \ |
| 6 | libpldm_base_test \ |
Sampa Misra | 0db1dfa | 2019-03-19 00:15:31 -0500 | [diff] [blame^] | 7 | libpldm_platform_test \ |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 8 | libpldmresponder_base_test |
| 9 | |
| 10 | test_cppflags = \ |
| 11 | -Igtest \ |
| 12 | $(GTEST_CPPFLAGS) \ |
| 13 | $(AM_CPPFLAGS) |
| 14 | |
| 15 | test_cxxflags = \ |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 16 | $(PTHREAD_CFLAGS) \ |
| 17 | $(CODE_COVERAGE_CXXFLAGS) |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 18 | |
| 19 | test_ldflags = \ |
| 20 | -lgtest_main \ |
| 21 | -lgtest \ |
| 22 | $(PTHREAD_LIBS) \ |
| 23 | $(OESDK_TESTCASE_FLAGS) |
| 24 | |
| 25 | libpldm_base_test_CPPFLAGS = $(test_cppflags) |
| 26 | libpldm_base_test_CXXFLAGS = $(test_cxxflags) |
| 27 | libpldm_base_test_LDFLAGS = $(test_ldflags) |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 28 | libpldm_base_test_LDADD = $(top_builddir)/libpldm/libpldm_la-base.o $(CODE_COVERAGE_LIBS) |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 29 | libpldm_base_test_SOURCES = libpldm_base_test.cpp |
| 30 | |
Sampa Misra | 0db1dfa | 2019-03-19 00:15:31 -0500 | [diff] [blame^] | 31 | libpldm_platform_test_CPPFLAGS = $(test_cppflags) |
| 32 | libpldm_platform_test_CXXFLAGS = $(test_cxxflags) |
| 33 | libpldm_platform_test_LDFLAGS = $(test_ldflags) |
| 34 | libpldm_platform_test_LDADD = \ |
| 35 | $(top_builddir)/libpldm/libpldm_la-platform.o \ |
| 36 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 37 | $(CODE_COVERAGE_LIBS) |
| 38 | libpldm_platform_test_SOURCES = libpldm_platform_test.cpp |
| 39 | |
| 40 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 41 | libpldmresponder_base_test_CPPFLAGS = $(test_cppflags) |
| 42 | libpldmresponder_base_test_CXXFLAGS = $(test_cxxflags) |
| 43 | libpldmresponder_base_test_LDFLAGS = $(test_ldflags) |
| 44 | libpldmresponder_base_test_LDADD = \ |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 45 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 46 | $(top_builddir)/libpldmresponder/libpldmresponder_la-base.o $(CODE_COVERAGE_LIBS) |
| 47 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 48 | libpldmresponder_base_test_SOURCES = libpldmresponder_base_test.cpp |