summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifcfg-rh/tests/Makefile.am
blob: 1b76a4742f9c2279e0473e3f08d9344adc96bb9b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SUBDIRS=network-scripts

INCLUDES = \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/libnm-util \
	-I$(top_srcdir)/libnm-glib \
	-I$(srcdir)/../

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 \
	$(builddir)/../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 = \
	$(builddir)/../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 \
	iscsiadm-test-bad-entry \
	iscsiadm-test-bad-record