Start integrating tools/regression/sockets into tests/sys/sockets

This commit is contained in:
ngie 2015-04-11 08:57:31 +00:00
55 changed files with 57 additions and 235 deletions

View File

@ -392,6 +392,8 @@
unlink
..
..
socket
..
..
usr.bin
apply

View File

@ -0,0 +1,54 @@
# $FreeBSD$
#
# Some of these tests fail on 11.0-CURRENT @ r280355 with DEBUG bits on
TESTSDIR= ${TESTSBASE}/sys/socket
BINDIR= ${TESTSDIR}
PROGS+= unix_cmsg
TAP_TESTS_C+= accept_fd_leak_test
# accf_data_attach: not ok 9 - setsockopt() after listen() failed with 2 (No such file or directory)
TAP_TESTS_C+= accf_data_attach_test
PLAIN_TESTS_C+= fstat_test
PLAIN_TESTS_C+= kqueue_test
PLAIN_TESTS_C+= listen_backlog_test
PLAIN_TESTS_C+= listenclose_test
PLAIN_TESTS_C+= pr_atomic_test
PLAIN_TESTS_C+= reconnect_test
# rtsocket: socket(PF_ROUTE, SOCK_STREAM, 0): Protocol wrong type for socket
PLAIN_TESTS_C+= rtsocket_test
PLAIN_TESTS_C+= sblock_test
TAP_TESTS_C+= sendfile_test
PLAIN_TESTS_C+= shutdown_test
PLAIN_TESTS_C+= sigpipe_test
TAP_TESTS_C+= so_setfib_test
PLAIN_TESTS_C+= socketpair_test
PLAIN_TESTS_C+= unix_bindconnect_test
PLAIN_TESTS_C+= unix_close_race_test
# Lots of failures
TAP_TESTS_SH+= unix_cmsg_test
# unix_gc: twosome_drop1: sendfd: before 0 after 0
PLAIN_TESTS_C+= unix_gc_test
# unix_passfd: test8-rights+creds+payload: recvmsg: 24 bytes received
PLAIN_TESTS_C+= unix_passfd_test
PLAIN_TESTS_C+= unix_sendtorace_test
# unix_socket: socket(PF_LOCAL, SOCK_RAW, 0): Protocol wrong type for socket
PLAIN_TESTS_C+= unix_socket_test
PLAIN_TESTS_C+= unix_sorflush_test
# zerosend: tcp_0write: bind(127.0.0.1, 10001): Address already in use
PLAIN_TESTS_C+= zerosend_test
DPADD.sendfile_test+= ${LIBMD}
LDADD.sendfile_test+= -lmd
# XXX: this doesn't work..?
#WARNS.unix_cmsg= 3
#WARNS.unix_gc= 3
#WARNS.unix_passfd= 3
#WARNS.zerosend= 2
WARNS= 2
.include <bsd.test.mk>

View File

@ -1,10 +1,7 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
cmd="./`basename $0 .t`"
make ${cmd} >/dev/null 2>&1
cmd=`echo $0 | sed -e 's,_test$,,'`
IFS=
n=0

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= accept_fd_leak
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,10 +0,0 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
executable=`basename $0 .t`
make $executable 2>&1 > /dev/null
exec ./$executable

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= accf_data_attach
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,10 +0,0 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
executable=`basename $0 .t`
make $executable 2>&1 > /dev/null
exec ./$executable

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= fstat
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= kqueue
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,10 +0,0 @@
#!/bin/sh
# $FreeBSD$
cd `dirname $0`
executable=`basename $0 .t`
make $executable 2>&1 > /dev/null
exec ./$executable

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= listen_backlog
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= listenclose
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= pr_atomic
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= reconnect
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= rtsocket
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= sblock
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,11 +0,0 @@
#
# $FreeBSD$
#
PROG= sendfile
MAN=
WARNS?= 6
DPADD= ${LIBMD}
LDADD= -lmd
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= shutdown
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= sigpipe
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,16 +0,0 @@
# $FreeBSD$
.include <src.opts.mk>
PROG= so_setfib
MAN=
WARNS?= 6
.if ${MK_INET} != "no"
CFLAGS+= -DINET
.endif
.if ${MK_INET6} != "no"
CFLAGS+= -DINET6
.endif
.include <bsd.prog.mk>

View File

@ -1,9 +0,0 @@
#
# $FreeBSD$
#
PROG= socketpair
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_bindconnect
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_close_race
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_cmsg
MAN=
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_gc
MAN=
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_passfd
MAN=
WARNS?= 3
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_sendtorace
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_socket
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= unix_sorflush
MAN=
WARNS?= 6
.include <bsd.prog.mk>

View File

@ -1,7 +0,0 @@
# $FreeBSD$
PROG= zerosend
MAN=
WARNS?= 2
.include <bsd.prog.mk>