From: Kurt Zeilenga Date: Wed, 19 Aug 1998 01:29:52 +0000 (+0000) Subject: Added filter to populate test X-Git-Tag: OPENLDAP_REL_ENG_1_0_0~24 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ad8929fb47e7121d849ae3f238983b93b81d155b;p=openldap Added filter to populate test --- diff --git a/tests/scripts/acfilter.sh b/tests/scripts/acfilter.sh new file mode 100755 index 0000000000..11d116d790 --- /dev/null +++ b/tests/scripts/acfilter.sh @@ -0,0 +1,5 @@ +#!/bin/sh +grep -v "modifiersname" | \ +grep -v "modifytimestamp" | \ +grep -v "creatorsname" | \ +grep -v "createtimestamp" diff --git a/tests/scripts/defines.sh b/tests/scripts/defines.sh index 3e7e65f12a..cacc155837 100755 --- a/tests/scripts/defines.sh +++ b/tests/scripts/defines.sh @@ -24,6 +24,8 @@ MASTERLOG=$DBDIR/master.log SLAVELOG=$DBDIR/slave.log SLURPLOG=$DBDIR/slurp.log SEARCHOUT=$DBDIR/ldapsearch.out +SEARCHFLT=$DBDIR/ldapsearch.flt +LDIFFLT=$DBDIR/ldif.flt MASTEROUT=$DBDIR/master.out SLAVEOUT=$DBDIR/slave.out TESTOUT=$DBDIR/ldapsearch.out diff --git a/tests/scripts/test002-populate b/tests/scripts/test002-populate index 62d6923bbc..e3db47ca25 100755 --- a/tests/scripts/test002-populate +++ b/tests/scripts/test002-populate @@ -44,8 +44,12 @@ if [ $RC != 0 ]; then exit $RC fi -echo "Comparing retrieved entries to LDIF file used to create database" -cmp $SEARCHOUT $LDIF +echo "Filtering ldapsearch results..." +. scripts/acfilter.sh < $SEARCHOUT > $SEARCHFLT +echo "Filtering original ldif used to create database..." +. scripts/acfilter.sh < $LDIF > $LDIFFLT +echo "Comparing filter output..." +cmp $SEARCHFLT $LDIFFLT if [ $? != 0 ]; then echo "comparison failed - database was not created correctly" exit 1