summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifupdown/tests/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'src/settings/plugins/ifupdown/tests/Makefile.am')
-rw-r--r--src/settings/plugins/ifupdown/tests/Makefile.am22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/settings/plugins/ifupdown/tests/Makefile.am b/src/settings/plugins/ifupdown/tests/Makefile.am
index d82868679..160b33272 100644
--- a/src/settings/plugins/ifupdown/tests/Makefile.am
+++ b/src/settings/plugins/ifupdown/tests/Makefile.am
@@ -1,33 +1,41 @@
if ENABLE_TESTS
-noinst_PROGRAMS = test-ifupdown
-
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_builddir)/include \
-I$(top_srcdir)/libnm-util \
-I$(top_builddir)/libnm-util \
-I$(top_srcdir)/libnm-glib \
+ -I$(top_srcdir)/src \
+ -I$(top_srcdir)/src/logging \
+ -I$(top_srcdir)/src/settings \
-I$(srcdir)/../ \
+ -DG_LOG_DOMAIN=\""NetworkManager-ifupdown"\" \
+ -DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
$(GLIB_CFLAGS) \
$(DBUS_CFLAGS) \
+ $(POLKIT_CFLAGS) \
-DTEST_ENI_DIR=\"$(abs_srcdir)\"
+noinst_PROGRAMS = test-ifupdown
+
test_ifupdown_SOURCES = \
- test-ifupdown.c
+ test-ifupdown.c \
+ ../interface_parser.c \
+ ../parser.c
test_ifupdown_LDADD = \
+ $(top_builddir)/src/libNetworkManager.la \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(top_builddir)/libnm-util/libnm-util.la \
- $(builddir)/../libifupdown-io.la \
$(DBUS_LIBS)
-check-local: test-ifupdown
- $(abs_builddir)/test-ifupdown
+TESTS = test-ifupdown
EXTRA_DIST = \
test1 test2 test3 test4 test5 test6 test7 test8 test9 test11 test12 \
test13 test14 test15 test16 test17-wired-static-verify-ip4 \
- test18-wired-static-verify-ip6 test19-wired-static-verify-ip4-plen
+ test18-wired-static-verify-ip6 test19-wired-static-verify-ip4-plen \
+ test20-source-stanza test20-source-stanza.eth0 test20-source-stanza.eth1
endif