NetworkManager/system-settings/plugins/ifcfg-rh/tests/Makefile.am
Dan Williams 8b4095cb23 ifcfg-rh: ensure keys/route files are monitored for changes too
keys- and route- files weren't passing the should_ignore_file()
check in dir_changed() because should_ignore_file() was only
taking ifcfg- files into account.  Generalize most of the ifcfg name
handling functions so that should_ignore_file() will now handle
all three variants.

Add testcases to ensure that the name handling does what we want
it to, and optimize memory usage of utils_get_ifcfg_name() a bit.
2009-12-30 16:33:12 -06:00

50 lines
1.1 KiB
Makefile

SUBDIRS=network-scripts
INCLUDES = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/libnm-util \
-I$(top_srcdir)/libnm-glib \
-I$(top_srcdir)/system-settings/plugins/ifcfg-rh
noinst_PROGRAMS = test-ifcfg-rh test-ifcfg-rh-utils
test_ifcfg_rh_SOURCES = \
test-ifcfg-rh.c
test_ifcfg_rh_CPPFLAGS = \
$(GLIB_CFLAGS) \
$(DBUS_CFLAGS) \
-DTEST_IFCFG_DIR=\"$(abs_srcdir)\" \
-DTEST_SCRATCH_DIR=\"$(abs_builddir)/\"
test_ifcfg_rh_LDADD = \
$(top_builddir)/libnm-glib/libnm-glib.la \
$(top_builddir)/libnm-util/libnm-util.la \
$(top_builddir)/system-settings/plugins/ifcfg-rh/libifcfg-rh-io.la \
$(DBUS_LIBS)
test_ifcfg_rh_utils_SOURCES = \
test-ifcfg-rh-utils.c
test_ifcfg_rh_utils_CPPFLAGS = \
$(GLIB_CFLAGS)
test_ifcfg_rh_utils_LDADD = \
$(top_builddir)/system-settings/plugins/ifcfg-rh/libifcfg-rh-io.la
if WITH_TESTS
check-local: test-ifcfg-rh
$(abs_builddir)/test-ifcfg-rh-utils
$(abs_builddir)/test-ifcfg-rh
endif
EXTRA_DIST = \
iscsiadm-test-dhcp \
iscsiadm-test-static \
iscsiadm-test-bad-ipaddr \
iscsiadm-test-bad-gateway \
iscsiadm-test-bad-dns1 \
iscsiadm-test-bad-dns2