summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifcfg-rh/tests/Makefile.am
blob: 5b34ffe3d36839d4a503cc6c016051035197e6f2 (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
54
55
56
SUBDIRS=network-scripts

INCLUDES = \
	-I$(top_srcdir)/include \
	-I$(top_builddir)/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 \
	$(top_builddir)/src/wifi/libwifi-utils.la \
	$(builddir)/../libifcfg-rh-io.la \
	$(LIBM)
	$(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