summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNalin Dahyabhai <nalin@dahyabhai.net>2014-04-22 14:06:04 -0400
committerNalin Dahyabhai <nalin@dahyabhai.net>2014-04-22 14:59:31 -0400
commitda7ca2d0334977603b0ac237ac1ab7c5ab71cd10 (patch)
tree15b7f362da30dc51aeea48b6dad40116667e62d1
parent6262fd4ebc514b8c6ba80f25a21b8837e6a47ce2 (diff)
downloadslapi-nis-da7ca2d0334977603b0ac237ac1ab7c5ab71cd10.tar.gz
slapi-nis-da7ca2d0334977603b0ac237ac1ab7c5ab71cd10.tar.xz
slapi-nis-da7ca2d0334977603b0ac237ac1ab7c5ab71cd10.zip
Tweak the self-tests just a bit
-rw-r--r--tests/Makefile.am7
-rw-r--r--tests/slapd.sh.in15
2 files changed, 17 insertions, 5 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am
index d848bf7..cd2220a 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -10,8 +10,13 @@ wrappers_so_LINK = $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(wrappers_so_LDFLAGS) $(LDFLA
EXTRA_DIST = run-tests.sh test*/*.ldif test*/*.sh test*/*.txt *.supp \
config/slapd-collations.conf config/userRoot.ldif config/schema \
test36-schema-nsswitch/wrap_passwd.in
+
+CLEANFILES = test36-schema-nsswitch/wrap_passwd
+test36-schema-nsswitch/wrap_passwd: $(top_builddir)/config.status test36-schema-nsswitch/wrap_passwd.in
+ cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@
+
if CAN_TEST
-check:
+check: test36-schema-nsswitch/wrap_passwd
@true
if NIS
builddir=$(abs_builddir) \
diff --git a/tests/slapd.sh.in b/tests/slapd.sh.in
index edb8a22..28c1431 100644
--- a/tests/slapd.sh.in
+++ b/tests/slapd.sh.in
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
SLAPD=@SLAPD@
TESTDIR=@abs_srcdir@
BTESTDIR=@abs_builddir@
@@ -99,16 +99,23 @@ startslapd() {
export LD_PRELOAD
else
ENVCMD=
+ LD_PRELOAD="$old_ld_preload"
+ if test -n "$LD_PRELOAD" ; then
+ export LD_PRELOAD
+ else
+ export -n LD_PRELOAD
+ fi
fi
@NIS_PLUGIN_CONTINUE_WITHOUT_PORTMAP_ENV@=1 \
@NIS_PLUGIN_PROCESS_UNINTERESTING_UPDATES_ENV@=$process_all \
@SCHEMA_COMPAT_PLUGIN_PROCESS_UNINTERESTING_UPDATES_ENV@=$process_all \
$ENVCMD @TRACE_CMD@ \
$SLAPD -D $BTESTDIR/config -i $STATEDIR/pid -w $STATEDIR/pid
- if test -n "$old_ld_preload" ; then
- LD_PRELOAD="$old_ld_preload"
+ LD_PRELOAD="$old_ld_preload"
+ if test -n "$LD_PRELOAD" ; then
+ export LD_PRELOAD
else
- unset LD_PRELOAD
+ export -n LD_PRELOAD
fi
if ! add -f $BTESTDIR/config/userRoot.ldif > /dev/null 2> /dev/null ; then
local i