about summary refs log tree commit diff
path: root/src/supplicant-manager/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/supplicant-manager/tests/Makefile.am')
-rw-r--r--src/supplicant-manager/tests/Makefile.am19
1 files changed, 7 insertions, 12 deletions
diff --git a/src/supplicant-manager/tests/Makefile.am b/src/supplicant-manager/tests/Makefile.am
index 58132a60..9defe66b 100644
--- a/src/supplicant-manager/tests/Makefile.am
+++ b/src/supplicant-manager/tests/Makefile.am
@@ -1,26 +1,21 @@
-if ENABLE_TESTS
-
-noinst_PROGRAMS = test-supplicant-config
-
-test_supplicant_config_CPPFLAGS = \
+AM_CPPFLAGS = \
 	-I$(top_srcdir)/include \
 	-I$(top_builddir)/include \
 	-I$(top_srcdir)/libnm-util \
 	-I$(top_builddir)/libnm-util \
 	-I$(top_srcdir)/src \
 	-I$(top_srcdir)/src/supplicant-manager \
+	-DG_LOG_DOMAIN=\""NetworkManager"\" \
+	-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
 	$(GLIB_CFLAGS) \
 	$(DBUS_CFLAGS)
 
+noinst_PROGRAMS = test-supplicant-config
+
 test_supplicant_config_SOURCES = \
 	test-supplicant-config.c
 
 test_supplicant_config_LDADD = \
-	$(top_builddir)/libnm-util/libnm-util.la \
-	$(top_builddir)/src/supplicant-manager/libsupplicant-manager.la \
-	$(DBUS_LIBS)
-
-check-local: test-supplicant-config
-	$(abs_builddir)/test-supplicant-config
+	$(top_builddir)/src/libNetworkManager.la
 
-endif
+TESTS = test-supplicant-config