xref: /openbsd/regress/sys/kern/sosplice/tcp/Makefile (revision 09467b48)
1#	$OpenBSD: Makefile,v 1.3 2019/07/12 19:31:29 bluhm Exp $
2
3.include <bsd.regress.mk>
4
5# The arg tests take a perl hash with arguments controlling the
6# test parameters.  Generally they consist of client, relay, server.
7# The relay.pl test fork these three processes locally.  The remote.pl
8# test has local client and server but the relay process is running
9# on a remote machine reachable with ssh.  For echo.pl test the
10# relay is an echo process and the client and server process share
11# the same tcp connection.  All tests can run with a regular userland
12# copy relay or with a kernel socket splicing relay.
13
14.for a in ${ARGS}
15run-$a: $a
16	@echo '\n======== $@ ========'
17.if empty (REMOTE_SSH)
18	time perl ${PERLINC} ${PERLPATH}relay.pl copy ${PERLPATH}$a
19	time perl ${PERLINC} ${PERLPATH}relay.pl splice ${PERLPATH}$a
20	time perl ${PERLINC} ${PERLPATH}echo.pl copy ${PERLPATH}$a
21	time perl ${PERLINC} ${PERLPATH}echo.pl splice ${PERLPATH}$a
22.else
23	time perl ${PERLINC} ${PERLPATH}remote.pl copy ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
24	time perl ${PERLINC} ${PERLPATH}remote.pl splice ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
25.endif
26.endfor
27