From dca74a4f08c77cde1eb5dbbd01372d399017ce7c Mon Sep 17 00:00:00 2001 From: maxim Date: Sat, 20 May 2006 19:18:24 +0000 Subject: o Convert to Test::Harness testing infratructure. --- tools/regression/netinet/rawconnect/rawconnect.t | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 tools/regression/netinet/rawconnect/rawconnect.t (limited to 'tools/regression/netinet') diff --git a/tools/regression/netinet/rawconnect/rawconnect.t b/tools/regression/netinet/rawconnect/rawconnect.t new file mode 100644 index 0000000..03f249d --- /dev/null +++ b/tools/regression/netinet/rawconnect/rawconnect.t @@ -0,0 +1,22 @@ +#!/bin/sh +# $FreeBSD$ + +cd `dirname $0` + +executable=`basename $0 .t` + +make $executable 2>&1 > /dev/null + +echo 1..1 + +comment="rawconnect # open raw ip socket, connect it and then close" + +uid=`id -u` + +if [ $uid -ne 0 ]; then + echo "ok 1 - rawconnect # skipped: you need to be root to run this test" +elif ./$executable; then + echo "ok 1 - $comment" +else + echo "not ok 1 - $comment" +fi -- cgit v1.1