Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
211820b8
Commit
211820b8
authored
19 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
cleanup
parent
f5e36e1b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/scripts/test036-meta-concurrency
+21
-8
21 additions, 8 deletions
tests/scripts/test036-meta-concurrency
with
21 additions
and
8 deletions
tests/scripts/test036-meta-concurrency
+
21
−
8
View file @
211820b8
...
...
@@ -23,25 +23,35 @@ if test $BACKMETA = metano ; then
exit
0
fi
# to be removed some time...
if
test
"x
$TEST_META
"
!=
"xyes"
;
then
echo
"### this test is currently disabled;"
echo
"### set
\"
TEST_META=yes
\"
to enable (at own risk)."
echo
""
exit
0
else
echo
"### this test is __very__ experimental; enable at own risk"
echo
""
fi
rm
-rf
$TESTDIR
mkdir
-p
$TESTDIR
$DBDIR1
$DBDIR2
if
test
"x
$DB_CONFIG
"
!=
"x"
-a
-f
$DB_CONFIG
;
then
echo
"==> using DB_CONFIG
$DB_CONFIG
"
cp
$DB_CONFIG
$DBDIR1
cp
$DB_CONFIG
$DBDIR2
else
echo
"==> set
\"
DB_CONFIG
\"
to the location of the DB_CONFIG file"
echo
"==> you want to use for the test."
# NOTE: this could be added to all tests...
if
test
"
$BACKEND
"
=
"bdb"
-o
"
$BACKEND
"
=
"hdb"
;
then
if
test
"x
$DB_CONFIG
"
!=
"x"
;
then
\
if
test
-f
$DB_CONFIG
;
then
echo
"==> using DB_CONFIG
\"
$DB_CONFIG
\"
"
cp
$DB_CONFIG
$DBDIR1
cp
$DB_CONFIG
$DBDIR2
else
echo
"==> DB_CONFIG must point to a valid file (ignored)"
fi
else
echo
"==> set
\"
DB_CONFIG
\"
to the DB_CONFIG file you want to use for the test."
fi
echo
""
fi
echo
"Starting slapd on TCP/IP port
$PORT1
..."
...
...
@@ -126,12 +136,15 @@ for f in $DATADIR/do_* ; do
sed
-e
"s;
$BASEDN
;
$METABASEDN
;"
$f
>
$TESTDIR
/
$f
done
# add a read that matches only the local database, but selects
# also the remote as candidate; this should be removed to compare
# execution times with test008...
for
f
in
$TESTDIR
/
$DATADIR
/do_read.
*
;
do
echo
"ou=Meta,
$METABASEDN
"
>>
$f
done
echo
"Using tester for concurrent server access..."
$SLAPDTESTER
-P
"
$PROGDIR
"
-d
"
$TESTDIR
/
$DATADIR
"
-h
$LOCALHOST
-p
$PORT2
-D
"cn=Manager,
$METABASEDN
"
-w
$PASSWD
-l
100
-r
20
$SLAPDTESTER
-P
"
$PROGDIR
"
-d
"
$TESTDIR
/
$DATADIR
"
-h
$LOCALHOST
-p
$PORT2
-D
"cn=Manager,
$METABASEDN
"
-w
$PASSWD
-l
50
#
-r 20
RC
=
$?
if
test
$RC
!=
0
;
then
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment