Skip to content
Snippets Groups Projects
Commit ad8929fb authored by Kurt Zeilenga's avatar Kurt Zeilenga
Browse files

Added filter to populate test

parent 70c5050d
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
grep -v "modifiersname" | \
grep -v "modifytimestamp" | \
grep -v "creatorsname" | \
grep -v "createtimestamp"
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment