blob: 5848c671833f73affe45452817a680b55735702d [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@CODE_COVERAGE_RULES@
3
Brad Bishop14275cf2016-11-10 16:24:48 -05004if WANT_LIBSDBUSPLUS
5
William A. Kennington III809e3732018-06-19 18:41:07 -07006AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
William A. Kennington IIIc20acf62018-06-22 18:38:03 -07007 $(GTEST_CFLAGS) $(GMOCK_CFLAGS) $(SYSTEMD_CFLAGS) \
8 $(CODE_COVERAGE_CPPFLAGS)
William A. Kennington III592128c2018-06-19 18:34:17 -07009AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
10AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
William A. Kennington III809e3732018-06-19 18:41:07 -070011test_ldadd = $(top_builddir)/libsdbusplus.la $(SYSTEMD_LIBS) \
William A. Kennington III592128c2018-06-19 18:34:17 -070012 $(OESDK_TESTCASE_FLAGS) $(CODE_COVERAGE_LIBS)
William A. Kennington IIIc20acf62018-06-22 18:38:03 -070013gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) $(GMOCK_LIBS) -lgmock_main
Patrick Williams83a9d0b2016-11-04 17:06:13 -050014
William A. Kennington III809e3732018-06-19 18:41:07 -070015check_PROGRAMS =
Patrick Williams83a9d0b2016-11-04 17:06:13 -050016TESTS = $(check_PROGRAMS)
17
Patrick Williamsb4041d42017-04-27 21:49:00 -050018check_PROGRAMS += bus_list_names
19bus_list_names_SOURCES = bus/list_names.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070020bus_list_names_LDADD = $(gtest_ldadd)
Patrick Williamsb4041d42017-04-27 21:49:00 -050021
Patrick Williamsfaa89f22017-04-29 15:50:13 -050022check_PROGRAMS += bus_match
23bus_match_SOURCES = bus/match.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070024bus_match_LDADD = $(gtest_ldadd)
Patrick Williamsfaa89f22017-04-29 15:50:13 -050025
William A. Kennington III874e82e2018-06-22 19:23:54 -070026check_PROGRAMS += exception_sdbus_error
27exception_sdbus_error_SOURCES = exception/sdbus_error.cpp
28exception_sdbus_error_LDADD = $(gtest_ldadd)
29
Patrick Williams83a9d0b2016-11-04 17:06:13 -050030check_PROGRAMS += message_append
Patrick Williams83a9d0b2016-11-04 17:06:13 -050031message_append_SOURCES = message/append.cpp
William A. Kennington IIIa1e9e2a2018-06-23 13:33:25 -070032message_append_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050033
34check_PROGRAMS += message_read
Patrick Williams83a9d0b2016-11-04 17:06:13 -050035message_read_SOURCES = message/read.cpp
William A. Kennington IIIb4b4fa12018-06-25 17:20:06 -070036message_read_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050037
Patrick Williams9db28642017-01-06 15:55:05 -060038check_PROGRAMS += message_native_types
39message_native_types_SOURCES = message/native_types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050040message_native_types_LDADD = $(gtest_ldadd)
Patrick Williams9db28642017-01-06 15:55:05 -060041
Patrick Williams83a9d0b2016-11-04 17:06:13 -050042check_PROGRAMS += message_types
43message_types_SOURCES = message/types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050044message_types_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050045
46check_PROGRAMS += utility_tuple_to_array
47utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050048utility_tuple_to_array_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050049
50check_PROGRAMS += utility_type_traits
51utility_type_traits_SOURCES = utility/type_traits.cpp
William A. Kennington III977d4d42018-06-23 00:33:08 -070052utility_type_traits_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050053
54check_PROGRAMS += vtable_vtable
55vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c
Patrick Williams43b283a2017-05-01 14:15:54 -050056vtable_vtable_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050057
Brad Bishop14275cf2016-11-10 16:24:48 -050058endif