William A. Kennington III | 592128c | 2018-06-19 18:34:17 -0700 | [diff] [blame] | 1 | @CODE_COVERAGE_RULES@ |
| 2 | |
Brad Bishop | 14275cf | 2016-11-10 16:24:48 -0500 | [diff] [blame] | 3 | if WANT_LIBSDBUSPLUS |
| 4 | |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 5 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \ |
William A. Kennington III | c20acf6 | 2018-06-22 18:38:03 -0700 | [diff] [blame] | 6 | $(GTEST_CFLAGS) $(GMOCK_CFLAGS) $(SYSTEMD_CFLAGS) \ |
| 7 | $(CODE_COVERAGE_CPPFLAGS) |
William A. Kennington III | 592128c | 2018-06-19 18:34:17 -0700 | [diff] [blame] | 8 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
| 9 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 10 | test_ldadd = $(top_builddir)/libsdbusplus.la $(SYSTEMD_LIBS) \ |
William A. Kennington III | 592128c | 2018-06-19 18:34:17 -0700 | [diff] [blame] | 11 | $(OESDK_TESTCASE_FLAGS) $(CODE_COVERAGE_LIBS) |
William A. Kennington III | c20acf6 | 2018-06-22 18:38:03 -0700 | [diff] [blame] | 12 | gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock_main |
William A. Kennington III | 592128c | 2018-06-19 18:34:17 -0700 | [diff] [blame] | 13 | legacy_test_cxxflags = $(AM_CXXFLAGS) $(PTHREAD_CFLAGS) |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 14 | legacy_test_ldadd = $(test_ldadd) $(PTHREAD_LIBS) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 15 | |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 16 | check_PROGRAMS = |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 17 | TESTS = $(check_PROGRAMS) |
| 18 | |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 19 | check_PROGRAMS += bus_list_names |
| 20 | bus_list_names_SOURCES = bus/list_names.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 21 | bus_list_names_LDADD = $(gtest_ldadd) |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 22 | |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 23 | check_PROGRAMS += bus_match |
| 24 | bus_match_SOURCES = bus/match.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 25 | bus_match_LDADD = $(gtest_ldadd) |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 26 | |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 27 | check_PROGRAMS += message_append |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 28 | message_append_SOURCES = message/append.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 29 | message_append_CXXFLAGS = $(legacy_test_cxxflags) |
| 30 | message_append_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 31 | |
| 32 | check_PROGRAMS += message_read |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 33 | message_read_SOURCES = message/read.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 34 | message_read_CXXFLAGS = $(legacy_test_cxxflags) |
| 35 | message_read_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 36 | |
Patrick Williams | 9db2864 | 2017-01-06 15:55:05 -0600 | [diff] [blame] | 37 | check_PROGRAMS += message_native_types |
| 38 | message_native_types_SOURCES = message/native_types.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 39 | message_native_types_LDADD = $(gtest_ldadd) |
Patrick Williams | 9db2864 | 2017-01-06 15:55:05 -0600 | [diff] [blame] | 40 | |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 41 | check_PROGRAMS += message_types |
| 42 | message_types_SOURCES = message/types.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 43 | message_types_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 44 | |
| 45 | check_PROGRAMS += utility_tuple_to_array |
| 46 | utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 47 | utility_tuple_to_array_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 48 | |
| 49 | check_PROGRAMS += utility_type_traits |
| 50 | utility_type_traits_SOURCES = utility/type_traits.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 51 | utility_type_traits_CXXFLAGS = $(legacy_test_cxxflags) |
| 52 | utility_type_traits_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 53 | |
| 54 | check_PROGRAMS += vtable_vtable |
| 55 | vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 56 | vtable_vtable_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 57 | |
Brad Bishop | 14275cf | 2016-11-10 16:24:48 -0500 | [diff] [blame] | 58 | endif |