]> git.sur5r.net Git - openldap/blob - tests/scripts/monitor_data.sh
ITS#8153 - olcTimeLimit should be Single Value
[openldap] / tests / scripts / monitor_data.sh
1 #! /bin/sh
2 # $OpenLDAP$
3 ## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4 ##
5 ## Copyright 1998-2017 The OpenLDAP Foundation.
6 ## All rights reserved.
7 ##
8 ## Redistribution and use in source and binary forms, with or without
9 ## modification, are permitted only as authorized by the OpenLDAP
10 ## Public License.
11 ##
12 ## A copy of this license is available in the file LICENSE in the
13 ## top-level directory of the distribution or, alternatively, at
14 ## <http://www.OpenLDAP.org/license.html>.
15
16 MONITORDB="$1"
17 SRCDIR="$2"
18 DSTDIR="$3"
19
20 echo "MONITORDB $MONITORDB"
21 echo "SRCDIR $SRCDIR"
22 echo "DSTDIR $DSTDIR"
23 echo "pwd `pwd`"
24
25 # copy test data
26 cp "$SRCDIR"/do_* "$DSTDIR"
27 if test $MONITORDB != no ; then
28
29         # add back-monitor testing data
30         cat >> "$DSTDIR/do_search.0" << EOF
31 cn=Monitor
32 (objectClass=*)
33 cn=Monitor
34 (objectClass=*)
35 cn=Monitor
36 (objectClass=*)
37 cn=Monitor
38 (objectClass=*)
39 EOF
40
41         cat >> "$DSTDIR/do_read.0" << EOF
42 cn=Backend 1,cn=Backends,cn=Monitor
43 cn=Entries,cn=Statistics,cn=Monitor
44 cn=Database 1,cn=Databases,cn=Monitor
45 EOF
46
47 fi
48