summaryrefslogtreecommitdiffstats
path: root/lib/libc/tests/net/Makefile
blob: eb199f09b8d75304766f0b1a553f7a88ca80db3c (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
# $FreeBSD$

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/lib/libc/net

BINDIR=		${TESTSDIR}

NETBSD_ATF_TESTS_C=	getprotoent_test
NETBSD_ATF_TESTS_C+=	ether_aton_test

SRCS.t_ether_aton=	aton_ether_subr.c t_ether_aton.c

aton_ether_subr.c: gen_ether_subr ${.CURDIR:H:H:H:H}/sys/net/if_ethersubr.c
	${HOST_SH} ${.ALLSRC} ${.TARGET}

# TODO: hostent_test
NETBSD_ATF_TESTS_SH=	nsdispatch_test
NETBSD_ATF_TESTS_SH+=	protoent_test
NETBSD_ATF_TESTS_SH+=	servent_test

PROGS=		h_nsd_recurse
PROGS+=		h_protoent
PROGS+=		h_servent
PROGS+=		h_dns_server

DPADD.h_nsd_recurse+=	${LIBPTHREAD}
LDADD.h_nsd_recurse+=	-lpthread

CLEANFILES+=	aton_ether_subr.c

.include "../Makefile.netbsd-tests"

# TODO: the testcases needs to be ported to FreeBSD
#TESTS_SUBDIRS=	getaddrinfo
FILES=	hosts
FILES+=	resolv.conf

.include <bsd.test.mk>
OpenPOWER on IntegriCloud