]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/blob - tests/sys/kqueue/kqueue_test.sh
MFC r282063:
[FreeBSD/stable/10.git] / tests / sys / kqueue / kqueue_test.sh
1 #!/bin/sh
2
3 cd $(dirname $0)
4 i=1
5 ./kqtest | while read line; do
6         echo $line | grep -q passed
7         if [ $? -eq 0 ]; then
8                 echo "ok - $i $line"
9                 : $(( i += 1 ))
10         fi
11
12         echo $line | grep -q 'tests completed'
13         if [ $? -eq 0 ]; then
14                 echo -n "1.."
15                 echo $line | cut -d' ' -f3
16         fi
17 done