xref: /freebsd/tools/regression/netinet/rawconnect/rawconnect.t (revision a64729f5077d77e13b9497cb33ecb3c82e606ee8)
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