summaryrefslogtreecommitdiffstats
path: root/tests/sys/kqueue/kqueue_test.sh
blob: 62a7e230570214c6e26f053a301aad5517f1f0b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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
OpenPOWER on IntegriCloud