o Convert to Test::Harness testing infratructure.
This commit is contained in:
parent
711385c9d0
commit
90967a95ce
22
tools/regression/netinet/rawconnect/rawconnect.t
Normal file
22
tools/regression/netinet/rawconnect/rawconnect.t
Normal file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
# $FreeBSD$
|
||||
|
||||
cd `dirname $0`
|
||||
|
||||
executable=`basename $0 .t`
|
||||
|
||||
make $executable 2>&1 > /dev/null
|
||||
|
||||
echo 1..1
|
||||
|
||||
comment="rawconnect # open raw ip socket, connect it and then close"
|
||||
|
||||
uid=`id -u`
|
||||
|
||||
if [ $uid -ne 0 ]; then
|
||||
echo "ok 1 - rawconnect # skipped: you need to be root to run this test"
|
||||
elif ./$executable; then
|
||||
echo "ok 1 - $comment"
|
||||
else
|
||||
echo "not ok 1 - $comment"
|
||||
fi
|
Loading…
Reference in New Issue
Block a user