summaryrefslogtreecommitdiffstats
path: root/contrib/ipfilter/test/ipflib.sh
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2013-09-21 14:23:20 +0000
committercy <cy@FreeBSD.org>2013-09-21 14:23:20 +0000
commit1f79bda80fc99a9bea37dc83f80019be39c33c5a (patch)
tree3915c70585141494037a8c4fd909db7ea85a2aac /contrib/ipfilter/test/ipflib.sh
parentb3f0452e3485d31d295010234a8951b1129a6f0b (diff)
downloadFreeBSD-src-1f79bda80fc99a9bea37dc83f80019be39c33c5a.zip
FreeBSD-src-1f79bda80fc99a9bea37dc83f80019be39c33c5a.tar.gz
Remove redundant files.
Approved by: glebius (mentor) Approved by: re (blanket)
Diffstat (limited to 'contrib/ipfilter/test/ipflib.sh')
-rw-r--r--contrib/ipfilter/test/ipflib.sh59
1 files changed, 0 insertions, 59 deletions
diff --git a/contrib/ipfilter/test/ipflib.sh b/contrib/ipfilter/test/ipflib.sh
deleted file mode 100644
index 82d473d..0000000
--- a/contrib/ipfilter/test/ipflib.sh
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/bin/sh
-#
-# (C)opyright 2012 by Darren Reed.
-#
-# See the IPFILTER.LICENCE file for details on licencing.
-#
-test_init() {
- mkdir -p results
- find_touch
- set_core $name 1
-}
-
-set_core() {
- if [ -n "${FINDLEAKS}" -a -x /bin/mdb ] ; then
- _findleaks=1
- else
- _findleaks=0
- fi
- if [ -x /bin/coreadm ] ; then
- _cn="$1.$2.core"
- coreadm -p "${PWD}/$_cn"
- else
- _cn=
- fi
-}
-
-test_end_leak() {
- if [ $1 -ne 0 ] ; then
- if [ ${_findleaks} = 1 -a -f $_cn ] ; then
- echo "==== ${name}:${n} ====" >> leaktest
- echo '::findleaks' | mdb ../i86/ipftest $_cn >> leaktest
- rm $_cn
- else
- exit 2;
- fi
- fi
-}
-
-check_results() {
- cmp expected/$1 results/$1
- status=$?
- if [ $status = 0 ] ; then
- $TOUCH $1
- fi
-}
-
-find_touch() {
- if [ -f /bin/touch ] ; then
- TOUCH=/bin/touch
- else
- if [ -f /usr/bin/touch ] ; then
- TOUCH=/usr/bin/touch
- else
- if [ -f /usr/ucb/touch ] ; then
- TOUCH=/usr/ucb/touch
- fi
- fi
- fi
-}
OpenPOWER on IntegriCloud