]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - tools/regression/netinet/rawconnect/rawconnect.t
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / tools / regression / netinet / rawconnect / rawconnect.t
1 #!/bin/sh
2 # $FreeBSD$
3
4 cd `dirname $0`
5
6 executable=`basename $0 .t`
7
8 make $executable 2>&1 > /dev/null
9
10 echo 1..1
11
12 comment="rawconnect # open raw ip socket, connect it and then close"
13
14 uid=`id -u`
15
16 if [ $uid -ne 0 ]; then
17         echo "ok 1 - rawconnect # skipped: you need to be root to run this test"
18 elif ./$executable; then
19         echo "ok 1 - $comment"
20 else
21         echo "not ok 1 - $comment"
22 fi