diff options
author | maxim <maxim@FreeBSD.org> | 2006-05-20 19:18:24 +0000 |
---|---|---|
committer | maxim <maxim@FreeBSD.org> | 2006-05-20 19:18:24 +0000 |
commit | dca74a4f08c77cde1eb5dbbd01372d399017ce7c (patch) | |
tree | 46ea20f832a61b9d25079770967a159180afb3b7 /tools | |
parent | f767e585afd0496ffffe56580b887b1dc55eb0fe (diff) | |
download | FreeBSD-src-dca74a4f08c77cde1eb5dbbd01372d399017ce7c.zip FreeBSD-src-dca74a4f08c77cde1eb5dbbd01372d399017ce7c.tar.gz |
o Convert to Test::Harness testing infratructure.
Diffstat (limited to 'tools')
-rw-r--r-- | tools/regression/netinet/rawconnect/rawconnect.t | 22 |
1 files changed, 22 insertions, 0 deletions
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 |