opnsense-src/tests/sys/kqueue/libkqueue/kqueue_test.sh
Mark Johnston 42ccdf4493 kqueue tests: Re-enable kqueue proc tests
- Some EVFILT_PROC bugs were fixed around the time that the tests were
  disabled.
- I can't reproduce any failures locally.
- Jenkins logs referenced from the PR are gone, so let's re-enable the
  tests and see whether a problem persists.

PR:		233586
Sponsored by:	The FreeBSD Foundation

(cherry picked from commit bc7512cc58)
2022-06-07 20:42:15 -04:00

17 lines
287 B
Bash

#!/bin/sh
# $FreeBSD$
i=1
"$(dirname $0)/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