xref: /openbsd/regress/sys/kern/sosplice/tcp/Makefile (revision 898184e3)
1#	$OpenBSD: Makefile,v 1.1.1.1 2013/01/03 17:36:39 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-regress-$a: $a
16.if empty (REMOTE_SSH)
17	time perl ${PERLINC} ${PERLPATH}relay.pl copy ${PERLPATH}$a
18	time perl ${PERLINC} ${PERLPATH}relay.pl splice ${PERLPATH}$a
19	time perl ${PERLINC} ${PERLPATH}echo.pl copy ${PERLPATH}$a
20	time perl ${PERLINC} ${PERLPATH}echo.pl splice ${PERLPATH}$a
21.else
22	time perl ${PERLINC} ${PERLPATH}remote.pl copy ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
23	time perl ${PERLINC} ${PERLPATH}remote.pl splice ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
24.endif
25.endfor
26