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 | |
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) |
Vernon Mauery | 7efcdae | 2018-09-06 06:34:39 -0700 | [diff] [blame] | 12 | gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock_main -lpthread |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 13 | |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 14 | check_PROGRAMS = |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 15 | TESTS = $(check_PROGRAMS) |
| 16 | |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 17 | check_PROGRAMS += bus_list_names |
| 18 | bus_list_names_SOURCES = bus/list_names.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 19 | bus_list_names_LDADD = $(gtest_ldadd) |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 20 | |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 21 | check_PROGRAMS += bus_match |
| 22 | bus_match_SOURCES = bus/match.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 23 | bus_match_LDADD = $(gtest_ldadd) |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 24 | |
William A. Kennington III | 874e82e | 2018-06-22 19:23:54 -0700 | [diff] [blame] | 25 | check_PROGRAMS += exception_sdbus_error |
| 26 | exception_sdbus_error_SOURCES = exception/sdbus_error.cpp |
| 27 | exception_sdbus_error_LDADD = $(gtest_ldadd) |
| 28 | |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 29 | check_PROGRAMS += message_append |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 30 | message_append_SOURCES = message/append.cpp |
William A. Kennington III | a1e9e2a | 2018-06-23 13:33:25 -0700 | [diff] [blame] | 31 | message_append_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 32 | |
| 33 | check_PROGRAMS += message_read |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 34 | message_read_SOURCES = message/read.cpp |
William A. Kennington III | b4b4fa1 | 2018-06-25 17:20:06 -0700 | [diff] [blame] | 35 | message_read_LDADD = $(gtest_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 | 977d4d4 | 2018-06-23 00:33:08 -0700 | [diff] [blame] | 51 | utility_type_traits_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 52 | |
| 53 | check_PROGRAMS += vtable_vtable |
| 54 | vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 55 | vtable_vtable_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 56 | |
Vernon Mauery | 7efcdae | 2018-09-06 06:34:39 -0700 | [diff] [blame] | 57 | check_PROGRAMS += timer |
| 58 | timer_SOURCES = timer.cpp |
| 59 | timer_LDADD = $(gtest_ldadd) |
| 60 | |
Brad Bishop | 14275cf | 2016-11-10 16:24:48 -0500 | [diff] [blame] | 61 | endif |