File: Makefile.am

package info (click to toggle)
kronosnet 1.32-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,080 kB
  • sloc: ansic: 25,419; sh: 5,295; makefile: 664
file content (130 lines) | stat: -rw-r--r-- 3,239 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#
# Copyright (C) 2017-2025 Red Hat, Inc.  All rights reserved.
#
# Author: Fabio M. Di Nitto <fabbione@kronosnet.org>
#
# This software licensed under GPL-2.0+
#

MAINTAINERCLEANFILES	= Makefile.in

include $(top_srcdir)/build-aux/check.mk

EXTRA_DIST		= \
			  nozzle_run_updown_exit_true \
			  nozzle_run_updown_exit_false \
			  api-test-coverage

noinst_HEADERS		= \
			  test-common.h

if BUILD_LIBNOZZLE

api_checks		= \
			  api_nozzle_open_test \
			  api_nozzle_close_test \
			  api_nozzle_set_up_test \
			  api_nozzle_set_down_test \
			  api_nozzle_get_mtu_test \
			  api_nozzle_set_mtu_test \
			  api_nozzle_get_mac_test \
			  api_nozzle_set_mac_test \
			  api_nozzle_get_handle_by_name_test \
			  api_nozzle_get_name_by_handle_test \
			  api_nozzle_get_fd_test \
			  api_nozzle_run_updown_test \
			  api_nozzle_add_ip_test \
			  api_nozzle_del_ip_test \
			  api_nozzle_get_ips_test

int_checks		= \
			  int_execute_bin_sh_command_test

fun_checks		=

benchmarks		=

check_PROGRAMS		= \
			  $(api_checks) \
			  $(int_checks) \
			  $(fun_checks)

noinst_PROGRAMS		= \
			  $(benchmarks) \
			  $(check_PROGRAMS)

noinst_SCRIPTS		= \
			  api-test-coverage

TESTS			= $(check_PROGRAMS)

if INSTALL_TESTS
testsuitedir		= $(TESTDIR)
testsuite_PROGRAMS	= $(noinst_PROGRAMS)
endif

check-local: check-api-test-coverage check-annocheck-bins

check-api-test-coverage:
	chmod u+x $(top_srcdir)/libnozzle/tests/api-test-coverage
	$(top_srcdir)/libnozzle/tests/api-test-coverage $(top_srcdir) $(top_builddir)

AM_CPPFLAGS		= -I$(top_srcdir)/libnozzle -DABSBUILDDIR=\"$(abs_builddir)\" -DABSSRCDIR=\"$(abs_srcdir)\"
AM_CFLAGS		+= $(PTHREAD_CFLAGS) $(libnl_CFLAGS)
LIBS			+= $(top_builddir)/libnozzle/libnozzle.la $(PTHREAD_LIBS) $(libnl_LIBS)

api_nozzle_open_test_SOURCES = api_nozzle_open.c \
			       test-common.c

api_nozzle_close_test_SOURCES = api_nozzle_close.c \
				test-common.c

api_nozzle_set_up_test_SOURCES = api_nozzle_set_up.c \
				 test-common.c \
				 ../internals.c

api_nozzle_set_down_test_SOURCES = api_nozzle_set_down.c \
				   test-common.c \
				   ../internals.c

api_nozzle_get_mtu_test_SOURCES = api_nozzle_get_mtu.c \
				  test-common.c

api_nozzle_set_mtu_test_SOURCES = api_nozzle_set_mtu.c \
				  test-common.c \
				  ../internals.c

api_nozzle_get_mac_test_SOURCES = api_nozzle_get_mac.c \
				  test-common.c

api_nozzle_set_mac_test_SOURCES = api_nozzle_set_mac.c \
				  test-common.c

api_nozzle_get_handle_by_name_test_SOURCES = api_nozzle_get_handle_by_name.c \
					     test-common.c

api_nozzle_get_name_by_handle_test_SOURCES = api_nozzle_get_name_by_handle.c \
					     test-common.c

api_nozzle_get_fd_test_SOURCES = api_nozzle_get_fd.c \
				 test-common.c

api_nozzle_run_updown_test_SOURCES = api_nozzle_run_updown.c \
				     test-common.c \
				     ../internals.c

api_nozzle_add_ip_test_SOURCES = api_nozzle_add_ip.c \
				 test-common.c \
				 ../internals.c

api_nozzle_del_ip_test_SOURCES = api_nozzle_del_ip.c \
				 test-common.c \
				 ../internals.c

api_nozzle_get_ips_test_SOURCES = api_nozzle_get_ips.c \
				  test-common.c

int_execute_bin_sh_command_test_SOURCES = int_execute_bin_sh_command.c \
					  test-common.c \
					  ../internals.c
endif