1#! /bin/sh
2# $OpenLDAP$
3## This work is part of OpenLDAP Software <http://www.openldap.org/>.
4##
5## Copyright 1998-2021 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
16SRCDIR="$1"
17DSTDIR="$2"
18
19echo "SRCDIR $SRCDIR"
20echo "DSTDIR $DSTDIR"
21echo "pwd `pwd`"
22
23# copy test data
24cp "$SRCDIR"/do_* "$DSTDIR"
25
26# add back-monitor testing data
27cat >> "$DSTDIR/do_search.0" << EOF
28cn=Monitor
29(objectClass=*)
30cn=Monitor
31(objectClass=*)
32cn=Monitor
33(objectClass=*)
34cn=Monitor
35(objectClass=*)
36EOF
37
38cat >> "$DSTDIR/do_read.0" << EOF
39cn=Backend 1,cn=Backends,cn=Monitor
40cn=Entries,cn=Statistics,cn=Monitor
41cn=Database 1,cn=Databases,cn=Monitor
42EOF
43