summaryrefslogtreecommitdiffstats
path: root/tests/run-tests.sh
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin.dahyabhai@pobox.com>2009-05-06 15:11:26 -0400
committerNalin Dahyabhai <nalin.dahyabhai@pobox.com>2009-05-06 15:11:26 -0400
commit1821bd22b287c7ce6da2614e6f601c3597eb988a (patch)
treee63e0eea8167ef40f4e247ef5e5419d3aa59f1d3 /tests/run-tests.sh
parentd3a7ea635f7f03ea20669aaa788e01c724149e6b (diff)
downloadslapi-nis-1821bd22b287c7ce6da2614e6f601c3597eb988a.tar.gz
slapi-nis-1821bd22b287c7ce6da2614e6f601c3597eb988a.tar.xz
slapi-nis-1821bd22b287c7ce6da2614e6f601c3597eb988a.zip
- if there's a script to edit the default dse.ldif in the test
directory, run it before starting the server
Diffstat (limited to 'tests/run-tests.sh')
-rwxr-xr-xtests/run-tests.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
index 0199a19..903530a 100755
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -9,7 +9,11 @@ showdiff()
}
for subdir in "$@" ; do
pushd $subdir > /dev/null
- startslapd $TESTDIR/$subdir/dse.ldif $TESTDIR/$subdir/userRoot.ldif
+ precmd=
+ if test -x edit-dse-config.sh ; then
+ precmd="$TESTDIR/$subdir/edit-dse-config.sh $BTESTDIR/config/dse.ldif"
+ fi
+ startslapd $TESTDIR/$subdir/dse.ldif $TESTDIR/$subdir/userRoot.ldif "$precmd"
if test -x $TESTDIR/$subdir/before.sh ; then
$TESTDIR/$subdir/before.sh > before.out 2>&1
if test -r $TESTDIR/$subdir/before.txt ; then