Integrate tools/regression/kqueue into the FreeBSD test suite as
tests/sys/kqueue MFC after: 1 week
This commit is contained in:
commit
ba163e588e
@ -358,6 +358,8 @@
|
|||||||
execve
|
execve
|
||||||
..
|
..
|
||||||
..
|
..
|
||||||
|
kqueue
|
||||||
|
..
|
||||||
netinet
|
netinet
|
||||||
..
|
..
|
||||||
opencrypto
|
opencrypto
|
||||||
|
@ -5,6 +5,7 @@
|
|||||||
TESTSDIR= ${TESTSBASE}/sys
|
TESTSDIR= ${TESTSBASE}/sys
|
||||||
|
|
||||||
TESTS_SUBDIRS+= kern
|
TESTS_SUBDIRS+= kern
|
||||||
|
TESTS_SUBDIRS+= kqueue
|
||||||
TESTS_SUBDIRS+= netinet
|
TESTS_SUBDIRS+= netinet
|
||||||
TESTS_SUBDIRS+= opencrypto
|
TESTS_SUBDIRS+= opencrypto
|
||||||
|
|
||||||
|
@ -6,8 +6,14 @@
|
|||||||
# libkqueue and test suite by Mark Heily <mark@heily.com>
|
# libkqueue and test suite by Mark Heily <mark@heily.com>
|
||||||
#
|
#
|
||||||
|
|
||||||
PROG=kqtest
|
TAP_TESTS_SH= kqueue_test
|
||||||
SRCS= \
|
|
||||||
|
TESTSDIR= ${TESTSBASE}/sys/kqueue
|
||||||
|
BINDIR= ${TESTSDIR}
|
||||||
|
|
||||||
|
PROGS= kqtest
|
||||||
|
|
||||||
|
SRCS.kqtest= \
|
||||||
main.c \
|
main.c \
|
||||||
read.c \
|
read.c \
|
||||||
timer.c \
|
timer.c \
|
||||||
@ -15,7 +21,6 @@ SRCS= \
|
|||||||
proc.c \
|
proc.c \
|
||||||
signal.c \
|
signal.c \
|
||||||
user.c
|
user.c
|
||||||
MAN=
|
|
||||||
WARNS?= 2
|
WARNS?= 2
|
||||||
|
|
||||||
.include "bsd.prog.mk"
|
.include <bsd.test.mk>
|
17
tests/sys/kqueue/kqueue_test.sh
Executable file
17
tests/sys/kqueue/kqueue_test.sh
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd $(dirname $0)
|
||||||
|
i=1
|
||||||
|
./kqtest | while read line; do
|
||||||
|
echo $line | grep -q passed
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo "ok - $i $line"
|
||||||
|
: $(( i += 1 ))
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo $line | grep -q 'tests completed'
|
||||||
|
if [ $? -eq 0 ]; then
|
||||||
|
echo -n "1.."
|
||||||
|
echo $line | cut -d' ' -f3
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user