aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/netinet/rawconnect/rawconnect.t
blob: 2c4f9de40dd11fd95079f0efde63cfe00cf93268 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

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