blob: 857f2931d093c3281605f8e5593883bc7ef14445 [file] [log] [blame]
William A. Kennington III6c17d3d2018-06-19 18:34:43 -07001@VALGRIND_CHECK_RULES@
William A. Kennington III592128c2018-06-19 18:34:17 -07002
Brad Bishop14275cf2016-11-10 16:24:48 -05003if WANT_LIBSDBUSPLUS
4
William A. Kennington III809e3732018-06-19 18:41:07 -07005AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
William A. Kennington IIIc20acf62018-06-22 18:38:03 -07006 $(GTEST_CFLAGS) $(GMOCK_CFLAGS) $(SYSTEMD_CFLAGS) \
7 $(CODE_COVERAGE_CPPFLAGS)
William A. Kennington III592128c2018-06-19 18:34:17 -07008AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
9AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
William A. Kennington III809e3732018-06-19 18:41:07 -070010test_ldadd = $(top_builddir)/libsdbusplus.la $(SYSTEMD_LIBS) \
William A. Kennington III592128c2018-06-19 18:34:17 -070011 $(OESDK_TESTCASE_FLAGS) $(CODE_COVERAGE_LIBS)
Vernon Mauery7efcdae2018-09-06 06:34:39 -070012gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock_main -lpthread
Patrick Williams83a9d0b2016-11-04 17:06:13 -050013
William A. Kennington III809e3732018-06-19 18:41:07 -070014check_PROGRAMS =
Patrick Williams83a9d0b2016-11-04 17:06:13 -050015TESTS = $(check_PROGRAMS)
16
Patrick Williamsb4041d42017-04-27 21:49:00 -050017check_PROGRAMS += bus_list_names
18bus_list_names_SOURCES = bus/list_names.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070019bus_list_names_LDADD = $(gtest_ldadd)
Patrick Williamsb4041d42017-04-27 21:49:00 -050020
Patrick Williamsfaa89f22017-04-29 15:50:13 -050021check_PROGRAMS += bus_match
22bus_match_SOURCES = bus/match.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070023bus_match_LDADD = $(gtest_ldadd)
Patrick Williamsfaa89f22017-04-29 15:50:13 -050024
William A. Kennington III874e82e2018-06-22 19:23:54 -070025check_PROGRAMS += exception_sdbus_error
26exception_sdbus_error_SOURCES = exception/sdbus_error.cpp
27exception_sdbus_error_LDADD = $(gtest_ldadd)
28
Patrick Williams83a9d0b2016-11-04 17:06:13 -050029check_PROGRAMS += message_append
Patrick Williams83a9d0b2016-11-04 17:06:13 -050030message_append_SOURCES = message/append.cpp
William A. Kennington IIIa1e9e2a2018-06-23 13:33:25 -070031message_append_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050032
33check_PROGRAMS += message_read
Patrick Williams83a9d0b2016-11-04 17:06:13 -050034message_read_SOURCES = message/read.cpp
William A. Kennington IIIb4b4fa12018-06-25 17:20:06 -070035message_read_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050036
Patrick Williams9db28642017-01-06 15:55:05 -060037check_PROGRAMS += message_native_types
38message_native_types_SOURCES = message/native_types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050039message_native_types_LDADD = $(gtest_ldadd)
Patrick Williams9db28642017-01-06 15:55:05 -060040
Patrick Williams83a9d0b2016-11-04 17:06:13 -050041check_PROGRAMS += message_types
42message_types_SOURCES = message/types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050043message_types_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050044
45check_PROGRAMS += utility_tuple_to_array
46utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050047utility_tuple_to_array_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050048
49check_PROGRAMS += utility_type_traits
50utility_type_traits_SOURCES = utility/type_traits.cpp
William A. Kennington III977d4d42018-06-23 00:33:08 -070051utility_type_traits_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050052
53check_PROGRAMS += vtable_vtable
54vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c
Patrick Williams43b283a2017-05-01 14:15:54 -050055vtable_vtable_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050056
Vernon Mauery7efcdae2018-09-06 06:34:39 -070057check_PROGRAMS += timer
58timer_SOURCES = timer.cpp
59timer_LDADD = $(gtest_ldadd)
60
Brad Bishop14275cf2016-11-10 16:24:48 -050061endif