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