1158772Smaxim#!/bin/sh 2158772Smaxim# $FreeBSD: releng/10.2/tools/regression/netinet/rawconnect/rawconnect.t 158772 2006-05-20 19:18:24Z maxim $ 3158772Smaxim 4158772Smaximcd `dirname $0` 5158772Smaxim 6158772Smaximexecutable=`basename $0 .t` 7158772Smaxim 8158772Smaximmake $executable 2>&1 > /dev/null 9158772Smaxim 10158772Smaximecho 1..1 11158772Smaxim 12158772Smaximcomment="rawconnect # open raw ip socket, connect it and then close" 13158772Smaxim 14158772Smaximuid=`id -u` 15158772Smaxim 16158772Smaximif [ $uid -ne 0 ]; then 17158772Smaxim echo "ok 1 - rawconnect # skipped: you need to be root to run this test" 18158772Smaximelif ./$executable; then 19158772Smaxim echo "ok 1 - $comment" 20158772Smaximelse 21158772Smaxim echo "not ok 1 - $comment" 22158772Smaximfi 23