2014-07-04 13:26:57 -04:00
|
|
|
if ENABLE_TESTS
|
|
|
|
|
|
|
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-I$(top_srcdir)/include \
|
|
|
|
|
-I$(top_srcdir)/libnm \
|
|
|
|
|
-I$(top_builddir)/libnm \
|
|
|
|
|
-I$(top_srcdir)/libnm-core \
|
|
|
|
|
-I$(top_builddir)/libnm-core \
|
2014-07-06 16:53:02 -04:00
|
|
|
-DNETWORKMANAGER_COMPILATION \
|
2014-07-04 13:26:57 -04:00
|
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
|
|
|
|
-DTEST_NM_SERVICE=\"$(abs_top_srcdir)/tools/test-networkmanager-service.py\" \
|
2014-09-10 13:51:53 -04:00
|
|
|
$(GLIB_CFLAGS)
|
2014-07-04 13:26:57 -04:00
|
|
|
|
|
|
|
|
LDADD = \
|
|
|
|
|
$(top_builddir)/libnm/libnm.la \
|
2014-09-10 13:51:53 -04:00
|
|
|
$(GLIB_LIBS)
|
2014-07-04 13:26:57 -04:00
|
|
|
|
|
|
|
|
noinst_PROGRAMS = $(TESTS)
|
|
|
|
|
|
2015-02-08 11:52:22 +01:00
|
|
|
if WITH_VALGRIND
|
|
|
|
|
@VALGRIND_RULES@ --launch-dbus
|
|
|
|
|
else
|
|
|
|
|
TESTS_ENVIRONMENT = $(srcdir)/libnm-test-launch.sh
|
|
|
|
|
endif
|
2014-08-29 12:27:47 -04:00
|
|
|
TESTS = test-nm-client test-remote-settings-client test-secret-agent
|
2014-07-04 13:26:57 -04:00
|
|
|
|
|
|
|
|
test_nm_client_SOURCES = \
|
|
|
|
|
common.c \
|
|
|
|
|
common.h \
|
|
|
|
|
test-nm-client.c
|
|
|
|
|
|
|
|
|
|
test_remote_settings_client_SOURCES = \
|
|
|
|
|
common.c \
|
|
|
|
|
common.h \
|
|
|
|
|
test-remote-settings-client.c
|
|
|
|
|
|
2014-08-29 12:27:47 -04:00
|
|
|
test_secret_agent_SOURCES = \
|
|
|
|
|
common.c \
|
|
|
|
|
common.h \
|
|
|
|
|
test-secret-agent.c
|
2014-07-04 13:26:57 -04:00
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
EXTRA_DIST = libnm-test-launch.sh
|