~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to tests/run.in

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Steve Langasek, Mathias Gug
  • Date: 2009-02-18 18:44:00 UTC
  • mfrom: (1.1.2 upstream) (0.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20090218184400-zw4mjse9eywt5566
Tags: 2.4.14-0ubuntu1
[ Steve Langasek ]
* New upstream version
  - Fixes a bug with the pcache overlay not returning cached entries
    (closes: #497697)
  - Update evolution-ntlm patch to apply to current Makefiles.
  - (tentatively) drop gnutls-ciphers, since this bug was reported to be
    fixed upstream in 2.4.8.  The fix applied in 2.4.8 didn't match the
    patch from the bug report, so this should be watched for regressions.
* Build against db4.7 instead of db4.2 at last!  Closes: #421946.
* Build with --disable-ndb, to avoid a misbuild when libmysqlclient is
  installed in the build environment.
* New patch, no-crlcheck-for-gnutls, to fix a build failure when using
  --with-tls=gnutls.

[ Mathias Gug ]
* Merge from debian unstable, remaining changes:
  - debian/apparmor-profile: add AppArmor profile
  - debian/slapd.postinst: Reload AA profile on configuration
  - updated debian/slapd.README.Debian for note on AppArmor
  - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6
  - debian/control: Conflicts with apparmor-profiles << 2.1+1075-0ubuntu4
    to make sure that if earlier version of apparmour-profiles gets
    installed it won't overwrite our profile.
  - Modify Maintainer value to match the DebianMaintainerField
    speficication.
  - follow ApparmorProfileMigration and force apparmor compalin mode on 
    some upgrades (LP: #203529)
  - debian/slapd.dirs: add etc/apparmor.d/force-complain
  - debian/slapd.preinst: create symlink for force-complain on pre-feisty
    upgrades, upgrades where apparmor-profiles profile is unchanged (ie
    non-enforcing) and upgrades where apparmor profile does not exist.
  - debian/slapd.postrm: remove symlink in force-complain/ on purge
  - debian/patches/fix-ucred-libc due to changes how newer glibc handle
    the ucred struct now.
  - debian/control:
    - Build-depend on libltdl7-dev rather then libltdl3-dev.
  - debian/patches/autogen.sh:
    - Call libtoolize with the --install option to install config.{guess,sub}
      files.
  - Don't use local statement in config script as it fails if /bin/sh
    points to bash (LP: #286063).
  - Disable the testsuite on hppa. Allows building of packages on this
    architecture again, once this package is in the archive.
    LP: #288908.
  - debian/slapd.postinst, debian/slapd.script-common: set correct ownership
    and permissions on /var/lib/ldap, /etc/ldap/slapd.d (group readable) and
    /var/run/slapd (world readable). (LP: #257667).
  - debian/patches/nssov-build, debian/rules: 
    Build and package the nss overlay.
    debian/schema/misc.ldif: add ldif file for the misc schema, which defines
    rfc822MailMember (required by the nss overlay).
  - debian/{control,rules}: enable PIE hardening
  - Use cn=config as the default configuration backend instead of 
    slapd.conf. Migrate slapd.conf  file to /etc/ldap/slapd.d/ on upgrade
    asking the end user to enter a new password to control the access to the
    cn=config tree.
* debian/patches/corrupt-contextCSN: The contextCSN can get corrupted at
  times. (ITS: #5947)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/bin/sh
2
 
# $OpenLDAP: pkg/ldap/tests/run.in,v 1.47.2.6 2008/02/11 23:26:50 kurt Exp $
 
2
# $OpenLDAP: pkg/ldap/tests/run.in,v 1.47.2.13 2009/01/30 18:48:14 quanah Exp $
3
3
## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
##
5
 
## Copyright 1998-2008 The OpenLDAP Foundation.
 
5
## Copyright 1998-2009 The OpenLDAP Foundation.
6
6
## All rights reserved.
7
7
##
8
8
## Redistribution and use in source and binary forms, with or without
13
13
## top-level directory of the distribution or, alternatively, at
14
14
## <http://www.OpenLDAP.org/license.html>.
15
15
 
16
 
USAGE="$0 [-b <backend>] [-c] [-k] [-p] [-u] [-w] <script>"
 
16
USAGE="$0 [-b <backend>] [-c] [-k] [-l #] [-p] [-s {ro|rp}] [-u] [-w] <script>"
17
17
 
18
18
# configure generated
19
19
SRCDIR="@srcdir@"
80
80
WAIT=0
81
81
KILLSERVERS=yes
82
82
PRESERVE=${PRESERVE-no}
 
83
SYNCMODE=${SYNCMODE-rp}
83
84
USERDATA=no
 
85
LOOP=1
 
86
COUNTER=1
84
87
 
85
88
while test $# -gt 0 ; do
86
89
        case "$1" in
95
98
                -k | -kill)
96
99
                        KILLSERVERS=no
97
100
                        shift ;;
 
101
                -l | -loop)
 
102
                        NUM="`echo $2 | sed 's/[0-9]//g'`"
 
103
                        if [ -z "$NUM" ]; then
 
104
                                LOOP=$2
 
105
                        else
 
106
                                echo "Loop variable not an int: $2"
 
107
                                echo "$USAGE"; exit 1
 
108
                        fi
 
109
                        shift ;
 
110
                        shift ;;
98
111
 
99
112
                -p | -preserve)
100
113
                        PRESERVE=yes
101
114
                        shift ;;
102
115
 
 
116
                -s | -syncmode)
 
117
                        case "$2" in
 
118
                                ro | rp)
 
119
                                        SYNCMODE="$2"
 
120
                                        ;;
 
121
                                *)
 
122
                                        echo "unknown sync mode $2"
 
123
                                        echo "$USAGE"; exit 1
 
124
                                        ;;
 
125
                        esac
 
126
                        shift; shift ;;
 
127
 
103
128
                -u | -userdata)
104
129
                        USERDATA=yes
105
130
                        shift ;;
137
162
if test "x$BACKENDTYPE" = "x" ; then
138
163
        BACKENDTYPE="unknown"
139
164
fi
140
 
export BACKEND BACKENDTYPE WAIT KILLSERVERS PRESERVE USERDATA
 
165
export BACKEND BACKENDTYPE WAIT KILLSERVERS PRESERVE SYNCMODE USERDATA
141
166
 
142
167
if test $# = 0 ; then
143
168
        echo "$USAGE"; exit 1
177
202
                /bin/rm -rf ${TESTDIR}/db.*
178
203
        fi
179
204
fi
 
205
if test $BACKEND = ndb ; then
 
206
        mysql --user root <<EOF
 
207
        drop database if exists db_1;
 
208
        drop database if exists db_2;
 
209
        drop database if exists db_3;
 
210
        drop database if exists db_4;
 
211
        drop database if exists db_5;
 
212
        drop database if exists db_6;
 
213
EOF
 
214
fi
180
215
mkdir -p ${TESTDIR}
181
216
 
182
217
if test $USERDATA = yes ; then
191
226
LDAPNOINIT=true; export LDAPNOINIT
192
227
 
193
228
echo "Running ${SCRIPT}..."
194
 
$SCRIPT $*
195
 
RC=$?
196
 
 
197
 
if test $CLEAN = yes ; then
198
 
        echo "Cleaning up test run directory from this run."
199
 
        /bin/rm -rf ${TESTDIR}
200
 
        echo "Cleaning up symlinks."
201
 
        /bin/rm -f ${DATADIR} ${SCHEMADIR}
202
 
fi
203
 
 
 
229
while [ $COUNTER -le $LOOP ]; do
 
230
        if [ $LOOP -gt 1 ]; then
 
231
                echo "Running $COUNTER of $LOOP iterations"
 
232
        fi
 
233
        $SCRIPT $*
 
234
        RC=$?
 
235
 
 
236
        if test $CLEAN = yes ; then
 
237
                echo "Cleaning up test run directory from this run."
 
238
                /bin/rm -rf ${TESTDIR}
 
239
                echo "Cleaning up symlinks."
 
240
                /bin/rm -f ${DATADIR} ${SCHEMADIR}
 
241
        fi
 
242
 
 
243
        if [ $RC -ne 0 ]; then
 
244
                exit $RC
 
245
        else
 
246
                COUNTER=`expr $COUNTER + 1`
 
247
                if [ $COUNTER -le $LOOP ]; then
 
248
                        echo "Cleaning up test run directory from this run."
 
249
                        /bin/rm -rf ${TESTDIR}
 
250
                fi
 
251
        fi
 
252
done
204
253
exit $RC