From aa97ed3f671ff1229d26993194afa85468aa77b7 Mon Sep 17 00:00:00 2001 From: Nalin Dahyabhai Date: Tue, 10 Jan 2012 15:00:26 -0500 Subject: - add config snippet for managed-entries and load it by default --- tests/config/dse.ldif.mep.in | 12 ++++++++++++ tests/run-tests.sh | 6 ++++++ tests/slapd.sh.in | 3 +++ 3 files changed, 21 insertions(+) create mode 100644 tests/config/dse.ldif.mep.in (limited to 'tests') diff --git a/tests/config/dse.ldif.mep.in b/tests/config/dse.ldif.mep.in new file mode 100644 index 0000000..5cc5ebf --- /dev/null +++ b/tests/config/dse.ldif.mep.in @@ -0,0 +1,12 @@ +dn: cn=Managed Entries,cn=plugins,cn=config +objectclass: top +objectclass: nsSlapdPlugin +objectclass: extensibleObject +objectclass: nsContainer +cn: Managed Entries +nsslapd-pluginpath: libmanagedentries-plugin +nsslapd-plugininitfunc: mep_init +nsslapd-plugintype: preoperation +nsslapd-pluginenabled: on +nsslapd-plugin-depends-on-type: database + diff --git a/tests/run-tests.sh b/tests/run-tests.sh index 0961496..904613a 100755 --- a/tests/run-tests.sh +++ b/tests/run-tests.sh @@ -23,6 +23,12 @@ for subdir in "$@" ; do continue fi fi + if ! $TESTS_USE_MANAGED_ENTRIES ; then + if test -s $TESTDIR/$TEST/plugin-need-mep.txt ; then + echo Skipping "$TEST", needs the managed entries plugin. + continue + fi + fi if test -x edit-dse-config.sh ; then precmd="$TESTDIR/$subdir/edit-dse-config.sh $BTESTDIR/config/dse.ldif" fi diff --git a/tests/slapd.sh.in b/tests/slapd.sh.in index cbe9ef1..ea17561 100644 --- a/tests/slapd.sh.in +++ b/tests/slapd.sh.in @@ -69,6 +69,9 @@ startslapd() { if ! test -s $TESTDIR/$TEST/plugin-skip-memberof.txt ; then cat $BTESTDIR/config/dse.ldif.memberof >> $BTESTDIR/config/dse.ldif fi + if ! test -s $TESTDIR/$TEST/plugin-skip-mep.txt ; then + cat $BTESTDIR/config/dse.ldif.mep >> $BTESTDIR/config/dse.ldif + fi process_all=0 if test -s $TESTDIR/$TEST/plugin-process-all.txt ; then process_all=1 -- cgit