mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 11:40:32 +01:00
Move libnm-glib's test-fake-nm.py and test-remote-settings-service.py to tools/, merge them together into a single program, and fix a few bugs (notably some missing signal emissions in the Settings service). Although they are currently only used by libnm-glib's tests, they are generic enough that they could be used by other code in the future (and in particular, they will be used by libnm's tests as well).
49 lines
1.4 KiB
Makefile
49 lines
1.4 KiB
Makefile
if ENABLE_TESTS
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/libnm-util \
|
|
-I$(top_builddir)/libnm-util \
|
|
-I$(top_srcdir)/libnm-glib \
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
|
$(GLIB_CFLAGS) \
|
|
$(DBUS_CFLAGS)
|
|
|
|
noinst_PROGRAMS = test-nm-client test-remote-settings-client
|
|
|
|
####### NMClient and non-settings tests #######
|
|
|
|
test_nm_client_SOURCES = \
|
|
test-nm-client.c
|
|
|
|
test_nm_client_LDADD = \
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
|
$(top_builddir)/libnm-glib/libnm-glib.la \
|
|
$(GLIB_LIBS) \
|
|
$(DBUS_LIBS)
|
|
|
|
####### remote settings client test #######
|
|
|
|
test_remote_settings_client_SOURCES = \
|
|
test-remote-settings-client.c
|
|
|
|
test_remote_settings_client_LDADD = \
|
|
$(top_builddir)/libnm-util/libnm-util.la \
|
|
$(top_builddir)/libnm-glib/libnm-glib.la \
|
|
$(GLIB_LIBS) \
|
|
$(DBUS_LIBS)
|
|
|
|
###########################################
|
|
|
|
TEST_NM_SERVICE = $(top_srcdir)/tools/test-networkmanager-service.py
|
|
|
|
check-local: test-nm-client test-remote-settings-client
|
|
if test -z "$$DBUS_SESSION_BUS_ADDRESS" ; then \
|
|
dbus-launch --exit-with-session $(abs_builddir)/test-nm-client $(abs_srcdir) $(TEST_NM_SERVICE); \
|
|
dbus-launch --exit-with-session $(abs_builddir)/test-remote-settings-client $(abs_srcdir) $(TEST_NM_SERVICE); \
|
|
else \
|
|
$(abs_builddir)/test-nm-client $(abs_srcdir) $(TEST_NM_SERVICE); \
|
|
$(abs_builddir)/test-remote-settings-client $(abs_srcdir) $(TEST_NM_SERVICE); \
|
|
fi;
|
|
|
|
endif
|