NetworkManager/libnm/tests/Makefile.am
Thomas Haller cd98705d21 tests: combine "run-test-valgrind.sh" and "run-test-dbus-session.sh" in "run-nm-test.sh"
No need to have two test-runners. Combine them, and call tests always
via "tools/run-nm-test.sh".

Yes, this brings an overhead, that we now always invoke the test with
a test wrapper script, also --without-vagrind. Previously, that was only
necessary for libnm tests that require their own D-Bus session.

Later we will do non-recursive Makefiles, thus all tests should have the
same LOG_COMPILER.
2016-10-19 15:26:30 +02:00

61 lines
1.6 KiB
Makefile

if ENABLE_TESTS
AM_CPPFLAGS = \
-I$(top_srcdir)/shared \
-I$(top_builddir)/shared \
-I$(top_srcdir)/libnm \
-I$(top_builddir)/libnm \
-I$(top_srcdir)/libnm-core \
-I$(top_builddir)/libnm-core \
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB \
-DTEST_NM_SERVICE=\"$(abs_top_srcdir)/tools/test-networkmanager-service.py\" \
$(GLIB_CFLAGS)
LDADD = \
$(top_builddir)/libnm/libnm.la \
$(GLIB_LIBS)
noinst_PROGRAMS = $(TESTS)
@NM_LOG_COMPILER@ --launch-dbus
TESTS = test-nm-client test-remote-settings-client test-secret-agent
test_nm_client_SOURCES = \
$(top_builddir)/shared/nm-test-utils-impl.c \
$(top_builddir)/shared/nm-test-libnm-utils.h \
test-nm-client.c
test_remote_settings_client_SOURCES = \
$(top_builddir)/shared/nm-test-utils-impl.c \
$(top_builddir)/shared/nm-test-libnm-utils.h \
test-remote-settings-client.c
test_secret_agent_SOURCES = \
$(top_builddir)/shared/nm-test-utils-impl.c \
$(top_builddir)/shared/nm-test-libnm-utils.h \
test-secret-agent.c
endif
###############################################################################
noinst_LTLIBRARIES = \
libnm-vpn-plugin-utils-test.la
libnm_vpn_plugin_utils_test_la_SOURCES = \
$(top_srcdir)/shared/nm-utils/nm-vpn-plugin-utils.c \
$(top_srcdir)/shared/nm-utils/nm-vpn-plugin-utils.h \
$(NULL)
libnm_vpn_plugin_utils_test_la_CFLAGS = \
$(GLIB_CFLAGS) \
-I$(top_srcdir)/shared \
-I$(top_srcdir)/libnm-core \
-I$(top_srcdir)/libnm \
$(NULL)
libnm_vpn_plugin_utils_test_la_LIBADD = \
$(GLIB_LIBS) \
$(NULL)
###############################################################################