mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-06 05:50:28 +01:00
Up to now, the "include" directory contained (only) header files that were used project-wide by libs, core, clients, et al. Since the directory now also contains a non-header file, the "include" name is misleading. Instead of adding yet another directory that is project-wide, with non-header-only content, rename the "include" directory to "shared".
54 lines
1.4 KiB
Makefile
54 lines
1.4 KiB
Makefile
if ENABLE_TESTS
|
|
|
|
AM_CPPFLAGS = \
|
|
-I$(top_srcdir)/shared \
|
|
-I$(top_builddir)/shared \
|
|
-I$(top_srcdir)/libnm-util \
|
|
-I$(top_builddir)/libnm-util \
|
|
-I$(top_srcdir)/libnm-glib \
|
|
-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_LIB_LEGACY \
|
|
-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
|
|
-DTEST_NM_SERVICE=\"$(abs_top_srcdir)/tools/test-networkmanager-service.py\" \
|
|
$(GLIB_CFLAGS) \
|
|
$(DBUS_CFLAGS)
|
|
|
|
noinst_PROGRAMS = $(TESTS)
|
|
|
|
if WITH_VALGRIND
|
|
@VALGRIND_RULES@ --launch-dbus
|
|
else
|
|
LOG_COMPILER = $(srcdir)/libnm-glib-test-launch.sh
|
|
endif
|
|
TESTS = test-nm-client test-remote-settings-client
|
|
|
|
####### NMClient and non-settings tests #######
|
|
|
|
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_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 = \
|
|
$(top_builddir)/shared/nm-test-utils-impl.c \
|
|
$(top_builddir)/shared/nm-test-libnm-utils.h \
|
|
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)
|
|
|
|
###########################################
|
|
|
|
endif
|
|
|
|
EXTRA_DIST = libnm-glib-test-launch.sh
|