1#!/bin/sh 2# $FreeBSD$ 3 4cd `dirname $0` 5 6executable=`basename $0 .t` 7 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