summaryrefslogtreecommitdiff
path: root/src/settings/plugins/ifcfg-rh/tests/Makefile.am
blob: e3eae4660967c81219386f66734703b37378716c (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
if ENABLE_TESTS

SUBDIRS=network-scripts

@GNOME_CODE_COVERAGE_RULES@

AM_CPPFLAGS = \
	$(GLIB_CFLAGS) \
	$(CODE_COVERAGE_CFLAGS) \
	-I$(top_srcdir)/include \
	-I$(top_srcdir)/libnm-core \
	-I$(top_builddir)/libnm-core \
	-I$(top_srcdir)/src/ \
	-I$(top_srcdir)/src/platform \
	-I$(top_srcdir)/src/settings \
	-I$(srcdir)/../ \
	-DG_LOG_DOMAIN=\""NetworkManager-ifcfg-rh"\" \
	-DNETWORKMANAGER_COMPILATION \
	-DNM_VERSION_MAX_ALLOWED=NM_VERSION_NEXT_STABLE \
	-DTEST_IFCFG_DIR=\"$(abs_srcdir)\" \
	-DTEST_SCRATCH_DIR=\"$(abs_builddir)/\" \
	-DSYSCONFDIR=\"nonexistent\" \
	-DSBINDIR=\"nonexistent\"

AM_LDFLAGS = \
	$(GLIB_LIBS) \
	$(DBUS_LIBS) \
	$(CODE_COVERAGE_LDFLAGS)

noinst_PROGRAMS = test-ifcfg-rh test-ifcfg-rh-utils

test_ifcfg_rh_SOURCES = \
	test-ifcfg-rh.c \
	../errors.c \
	../reader.c \
	../shvar.c \
	../utils.c \
	../writer.c

test_ifcfg_rh_LDADD = \
	$(top_builddir)/src/libNetworkManager.la

test_ifcfg_rh_utils_SOURCES = \
	test-ifcfg-rh-utils.c \
	../utils.c \
	../shvar.c

test_ifcfg_rh_utils_LDADD = \
	$(top_builddir)/src/libNetworkManager.la

TESTS = test-ifcfg-rh-utils test-ifcfg-rh

endif