summaryrefslogtreecommitdiff
path: root/src/devices/tests/Makefile.am
blob: 5914b13108caff13b1068a4e32d89e07cc040248 (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
AM_CPPFLAGS = \
	-I$(top_srcdir)/shared \
	-I$(top_builddir)/shared \
	-I$(top_srcdir)/libnm-core \
	-I$(top_builddir)/libnm-core \
	-I$(top_srcdir)/src/platform \
	-I$(top_srcdir)/src/devices \
	-I$(top_srcdir)/src \
	-I$(top_builddir)/src \
	-DG_LOG_DOMAIN=\""NetworkManager"\" \
	-DNETWORKMANAGER_COMPILATION=NM_NETWORKMANAGER_COMPILATION_INSIDE_DAEMON \
	$(GLIB_CFLAGS)

AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
AM_LDFLAGS = $(GLIB_LIBS) $(CODE_COVERAGE_LDFLAGS)
DEVICES_LDADD = \
	$(top_builddir)/src/libNetworkManager.la

@GNOME_CODE_COVERAGE_RULES@

noinst_PROGRAMS = \
	test-lldp \
	test-arping

test_lldp_SOURCES = \
	test-lldp.c \
	../nm-lldp-listener.c \
	$(top_srcdir)/src/platform/tests/test-common.c

test_lldp_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-I$(top_srcdir)/src/platform/tests \
	-DSETUP=nm_linux_platform_setup

test_lldp_LDADD = $(DEVICES_LDADD)

test_arping_SOURCES = \
	test-arping.c \
	../nm-arping-manager.c \
	$(top_srcdir)/src/platform/tests/test-common.c

test_arping_CPPFLAGS = \
	$(AM_CPPFLAGS) \
	-I$(top_srcdir)/src/platform/tests \
	-DSETUP=nm_linux_platform_setup

test_arping_LDADD = $(DEVICES_LDADD)

@VALGRIND_RULES@
TESTS = \
	test-lldp \
	test-arping