freebsd-skq/tests/sys/kqueue/kqueue_test.sh
Enji Cooper 70598e5094 Integrate tools/regression/kqueue into the FreeBSD test suite as
tests/sys/kqueue

MFC after: 1 week
2015-04-27 07:37:48 +00:00

18 lines
278 B
Bash
Executable File

#!/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