forked from Kistler-Group/sdbus-cpp
* Add preliminary changes for async server methods * Refactor the Message concept and break it into distinctive types * Continue working on async server methods (high-level API mainly) * Continue developing support for async server * Finishing async server methods * Finishing async server methods (fixing tests & cleaning up) * A little code cleaning * Add unit tests for type traits of free functions * Support for generating async server methods in stub headers * Update ChangeLog for v0.3.0 * Update the tutorial with how to use async server-side methods * Update the TOC in sdbus-c++ tutorial * Update numbering in TOC * Remove unnecessary code * Final cleanups
69 lines
2.1 KiB
Makefile
69 lines
2.1 KiB
Makefile
# Defines how to build and install libsdbus-c++ tests
|
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
# Target dirs for test binaries, scripts and files
|
|
testbindir = /opt/test/bin
|
|
dbusconfdir = $(sysconfdir)/dbus-1/system.d
|
|
|
|
# ENABLE_TESTS is defined by configure when user enables tests during configuration
|
|
if ENABLE_TESTS
|
|
testbin_PROGRAMS = libsdbus-c++_unittests libsdbus-c++_integrationtests
|
|
dbusconf_DATA = integrationtests/files/libsdbus-cpp-test.conf
|
|
endif
|
|
|
|
# Setting per-file flags
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_srcdir)/src
|
|
AM_CXXFLAGS = @libsdbus_cpp_CFLAGS@ @SYSTEMD_CFLAGS@ -W -Wall -Werror -pedantic -pipe -std=c++17
|
|
AM_LDFLAGS = @libsdbus_cpp_LIBS@ @SYSTEMD_LIBS@
|
|
|
|
CLEANFILES = *~ *.lo *.la
|
|
MOSTLYCLEANFILES = *.o
|
|
|
|
TESTS =
|
|
|
|
# Configuration for libsdbus-c++_unittests
|
|
libsdbus_c___unittests_SOURCES = \
|
|
unittests/libsdbus-c++_unittests.cpp \
|
|
unittests/TypeTraits_test.cpp \
|
|
unittests/Types_test.cpp \
|
|
unittests/Message_test.cpp
|
|
|
|
libsdbus_c___unittests_LDFLAGS = -L$(top_builddir)/src
|
|
|
|
libsdbus_c___unittests_LDADD = \
|
|
-lsdbus-c++ \
|
|
@libsdbus_cpp_LIBS@ \
|
|
@SYSTEMD_LIBS@ \
|
|
-lgmock
|
|
|
|
TESTS += libsdbus-c++_unittests
|
|
|
|
# Configuration for libsdbus-c++_integrationtests
|
|
libsdbus_c___integrationtests_SOURCES = \
|
|
integrationtests/libsdbus-c++_integrationtests.cpp \
|
|
integrationtests/Connection_test.cpp \
|
|
integrationtests/AdaptorAndProxy_test.cpp
|
|
|
|
libsdbus_c___integrationtests_LDFLAGS = -L$(top_builddir)/src
|
|
|
|
libsdbus_c___integrationtests_LDADD = \
|
|
-lsdbus-c++ \
|
|
@libsdbus_cpp_LIBS@ \
|
|
@SYSTEMD_LIBS@ \
|
|
-lgmock \
|
|
-lpthread
|
|
|
|
TESTS += libsdbus-c++_integrationtests
|
|
|
|
check_PROGRAMS = libsdbus-c++_unittests libsdbus-c++_integrationtests
|
|
|
|
DISTCLEANFILES = Makefile Makefile.in
|
|
|
|
# Post-build action: executing tests from the IDE
|
|
if ENABLE_TESTS
|
|
all-local: libsdbus-c++_unittests libsdbus-c++_integrationtests
|
|
if [ "${UNIT_TESTS_RUNNER}" ]; then "${UNIT_TESTS_RUNNER}" --deviceip="${TEST_DEVICE_IP}" --testbin=.libs/libsdbus-c++_unittests; fi; exit 0
|
|
if [ "${UNIT_TESTS_RUNNER}" ]; then "${UNIT_TESTS_RUNNER}" --deviceip="${TEST_DEVICE_IP}" --testbin=.libs/libsdbus-c++_integrationtests; fi; exit 0
|
|
endif
|