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