xref: /openbsd/regress/sys/kern/sosplice/udp/Makefile (revision b5d99089)
1#	$OpenBSD: Makefile,v 1.4 2020/12/17 00:51:12 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.  All tests can run with
10# a regular userland copy relay or with a kernel socket splicing
11# relay.
12
13.for a in ${ARGS}
14run-$a: $a
15.if empty (REMOTE_SSH)
16	time perl ${PERLINC} ${PERLPATH}relay.pl copy ${PERLPATH}$a
17	time perl ${PERLINC} ${PERLPATH}relay.pl splice ${PERLPATH}$a
18.else
19	time perl ${PERLINC} ${PERLPATH}remote.pl copy ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
20	time perl ${PERLINC} ${PERLPATH}remote.pl splice ${LOCAL_ADDR} ${REMOTE_ADDR} ${REMOTE_SSH} ${PERLPATH}$a
21.endif
22.endfor
23