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 \ |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 8 | libpldmresponder_base_test \ |
| 9 | libpldm_bios_test \ |
| 10 | libpldmresponder_bios_test |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 11 | |
| 12 | test_cppflags = \ |
| 13 | -Igtest \ |
| 14 | $(GTEST_CPPFLAGS) \ |
| 15 | $(AM_CPPFLAGS) |
| 16 | |
| 17 | test_cxxflags = \ |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 18 | $(PTHREAD_CFLAGS) \ |
| 19 | $(CODE_COVERAGE_CXXFLAGS) |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 20 | |
| 21 | test_ldflags = \ |
| 22 | -lgtest_main \ |
| 23 | -lgtest \ |
| 24 | $(PTHREAD_LIBS) \ |
| 25 | $(OESDK_TESTCASE_FLAGS) |
| 26 | |
| 27 | libpldm_base_test_CPPFLAGS = $(test_cppflags) |
| 28 | libpldm_base_test_CXXFLAGS = $(test_cxxflags) |
| 29 | libpldm_base_test_LDFLAGS = $(test_ldflags) |
Deepak Kodihalli | a038624 | 2019-04-25 07:27:18 -0500 | [diff] [blame] | 30 | libpldm_base_test_LDADD = \ |
| 31 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 32 | $(CODE_COVERAGE_LIBS) |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 33 | libpldm_base_test_SOURCES = libpldm_base_test.cpp |
| 34 | |
Sampa Misra | 0db1dfa | 2019-03-19 00:15:31 -0500 | [diff] [blame] | 35 | libpldm_platform_test_CPPFLAGS = $(test_cppflags) |
| 36 | libpldm_platform_test_CXXFLAGS = $(test_cxxflags) |
| 37 | libpldm_platform_test_LDFLAGS = $(test_ldflags) |
| 38 | libpldm_platform_test_LDADD = \ |
| 39 | $(top_builddir)/libpldm/libpldm_la-platform.o \ |
| 40 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 41 | $(CODE_COVERAGE_LIBS) |
| 42 | libpldm_platform_test_SOURCES = libpldm_platform_test.cpp |
| 43 | |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 44 | libpldm_bios_test_CPPFLAGS = $(test_cppflags) |
| 45 | libpldm_bios_test_CXXFLAGS = $(test_cxxflags) |
| 46 | libpldm_bios_test_LDFLAGS = $(test_ldflags) |
| 47 | libpldm_bios_test_LDADD = \ |
| 48 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 49 | $(top_builddir)/libpldm/libpldm_la-bios.o \ |
| 50 | $(CODE_COVERAGE_LIBS) |
| 51 | libpldm_bios_test_SOURCES = libpldm_bios_test.cpp |
| 52 | |
| 53 | libpldmresponder_bios_test_CPPFLAGS = $(test_cppflags) |
| 54 | libpldmresponder_bios_test_CXXFLAGS = $(test_cxxflags) |
Deepak Kodihalli | a038624 | 2019-04-25 07:27:18 -0500 | [diff] [blame] | 55 | libpldmresponder_bios_test_LDFLAGS = \ |
| 56 | $(test_ldflags) \ |
| 57 | $(SDBUSPLUS_LIBS) |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 58 | libpldmresponder_bios_test_LDADD = \ |
| 59 | $(top_builddir)/libpldmresponder/libpldmresponder_la-bios.o \ |
| 60 | $(top_builddir)/libpldmresponder/libpldmresponder_la-utils.o \ |
| 61 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
| 62 | $(top_builddir)/libpldm/libpldm_la-bios.o \ |
Deepak Kodihalli | a038624 | 2019-04-25 07:27:18 -0500 | [diff] [blame] | 63 | $(CODE_COVERAGE_LIBS) \ |
| 64 | $(SDBUSPLUS_LIBS) |
Sampa Misra | 032bd50 | 2019-03-06 05:03:22 -0600 | [diff] [blame] | 65 | libpldmresponder_bios_test_SOURCES = \ |
| 66 | libpldmresponder_bios_test.cpp |
| 67 | |
Sampa Misra | 0db1dfa | 2019-03-19 00:15:31 -0500 | [diff] [blame] | 68 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 69 | libpldmresponder_base_test_CPPFLAGS = $(test_cppflags) |
| 70 | libpldmresponder_base_test_CXXFLAGS = $(test_cxxflags) |
| 71 | libpldmresponder_base_test_LDFLAGS = $(test_ldflags) |
| 72 | libpldmresponder_base_test_LDADD = \ |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 73 | $(top_builddir)/libpldm/libpldm_la-base.o \ |
Deepak Kodihalli | a038624 | 2019-04-25 07:27:18 -0500 | [diff] [blame] | 74 | $(top_builddir)/libpldmresponder/libpldmresponder_la-base.o \ |
| 75 | $(CODE_COVERAGE_LIBS) |
Priyanga | fb4bec9 | 2019-03-25 11:51:31 +0530 | [diff] [blame] | 76 | |
Deepak Kodihalli | 1b24f97 | 2019-02-01 04:09:13 -0600 | [diff] [blame] | 77 | libpldmresponder_base_test_SOURCES = libpldmresponder_base_test.cpp |