diff options
author | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-05-06 15:11:26 -0400 |
---|---|---|
committer | Nalin Dahyabhai <nalin.dahyabhai@pobox.com> | 2009-05-06 15:11:26 -0400 |
commit | 1821bd22b287c7ce6da2614e6f601c3597eb988a (patch) | |
tree | e63e0eea8167ef40f4e247ef5e5419d3aa59f1d3 /tests/run-tests.sh | |
parent | d3a7ea635f7f03ea20669aaa788e01c724149e6b (diff) | |
download | slapi-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-x | tests/run-tests.sh | 6 |
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 |