summaryrefslogtreecommitdiff
path: root/net/tcptestsuite/Makefile
blob: 5b52430f37355ee65f5ebb26b488644f83d0e17a (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

PORTNAME=	tcptestsuite
DISTVERSION=	g20210322
PORTEPOCH=	1
CATEGORIES=	net

MAINTAINER=	gnn@FreeBSD.org
COMMENT=	Network stack test suite

LICENSE=	BSD2CLAUSE

RUN_DEPENDS=	packetdrill:net/packetdrill

USE_GITHUB=	yes
GH_ACCOUNT=	freebsd-net
GH_PROJECT=	tcp-testsuite
GH_TAGNAME=	30b7eb8

NO_ARCH=	yes
NO_BUILD=	yes

_TEST_DIR=	${STAGEDIR}${PREFIX}/tests/${PORTNAME}

do-install:
	${INSTALL_SCRIPT} ${WRKSRC}/run-all-tests ${STAGEDIR}${PREFIX}/bin
	(cd ${WRKSRC} && \
		${COPYTREE_SHARE} "fast-open snd-syn socket-api rcv-data-segments rcv-icmp snippets state-event-engine" ${STAGEDIR}${DATADIR})
	${MKDIR} ${_TEST_DIR}
	${INSTALL_SCRIPT} ${FILESDIR}/tcptestsuite_atf_test ${_TEST_DIR}
	${INSTALL_DATA} ${FILESDIR}/Kyuafile ${_TEST_DIR}

.include <bsd.port.mk>