~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to tests/scripts/test056-monitor

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#! /bin/sh
2
 
# $OpenLDAP: pkg/ldap/tests/scripts/test056-monitor,v 1.2.2.3 2009/07/02 20:11:10 quanah Exp $
 
2
# $OpenLDAP: pkg/ldap/tests/scripts/test056-monitor,v 1.2.2.5 2009/08/17 17:43:01 quanah Exp $
3
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
##
5
5
## Copyright 1998-2008 The OpenLDAP Foundation.
16
16
echo "running defines.sh"
17
17
. $SRCDIR/scripts/defines.sh
18
18
 
 
19
if test $MONITORDB = "no" ; then 
 
20
        echo "Monitor backend not available, test skipped"
 
21
        exit 0
 
22
fi 
 
23
 
19
24
mkdir -p $TESTDIR $DBDIR1
20
25
 
21
26
echo "Starting slapd on TCP/IP port $PORT..."
66
71
echo "Filtering ldapsearch results..."
67
72
sed -e "$localrewrite" < $SEARCHOUT   | . $LDIFFILTER > $SEARCHFLT
68
73
echo "Filtering expected data..."
69
 
sed -e "$localrewrite" < $MONITOROUT1 | . $LDIFFILTER > $LDIFFLT
 
74
. $CONFFILTER < $MONITOROUT1 | sed -e "$localrewrite" | . $LDIFFILTER > $LDIFFLT
70
75
echo "Comparing filter output..."
71
76
$CMP $SEARCHFLT $LDIFFLT > $CMPOUT
72
77