rawconnect.t revision 256281
1105756Srwatson#!/bin/sh
2105756Srwatson# $FreeBSD: stable/10/tools/regression/netinet/rawconnect/rawconnect.t 158772 2006-05-20 19:18:24Z maxim $
3105756Srwatson
4113091Sobriencd `dirname $0`
5112208Schris
6107473Srwatsonexecutable=`basename $0 .t`
7105756Srwatson
8make $executable 2>&1 > /dev/null
9
10echo 1..1
11
12comment="rawconnect # open raw ip socket, connect it and then close"
13
14uid=`id -u`
15
16if [ $uid -ne 0 ]; then
17	echo "ok 1 - rawconnect # skipped: you need to be root to run this test"
18elif ./$executable; then
19	echo "ok 1 - $comment"
20else
21	echo "not ok 1 - $comment"
22fi
23