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
94c95c67
Commit
94c95c67
authored
18 years ago
by
Pierangelo Masarati
Browse files
Options
Downloads
Patches
Plain Diff
cleanup test
parent
810a8f0d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/data/sql-concurrency/do_bind.0
+2
-0
2 additions, 0 deletions
tests/data/sql-concurrency/do_bind.0
tests/scripts/sql-test001-concurrency
+14
-3
14 additions, 3 deletions
tests/scripts/sql-test001-concurrency
with
16 additions
and
3 deletions
tests/data/sql-concurrency/do_bind.0
0 → 100644
+
2
−
0
View file @
94c95c67
cn=Mitya Kovalev,dc=example,dc=com
mit
This diff is collapsed.
Click to expand it.
tests/scripts/sql-test001-concurrency
+
14
−
3
View file @
94c95c67
...
...
@@ -26,6 +26,16 @@ if test $RDBMS = "rdbmsno" ; then
exit
0
fi
if
test
"x
$LOOPS
"
=
"x"
;
then
LOOPS
=
5
fi
if
test
"x
$CHILDREN
"
=
"x"
;
then
CHILDREN
=
"-j 4"
else
CHILDREN
=
"-j
$CHILDREN
"
fi
SQLDATADIR
=
$TESTDIR
/sql-concurrency
mkdir
-p
$TESTDIR
$SQLDATADIR
...
...
@@ -74,7 +84,7 @@ echo "Filtering original ldif used to create database..."
if
test
"
${
RDBMSWRITE
}
"
!=
"yes"
;
then
echo
"write test disabled for
${
RDBMS
}
; set SLAPD_USE_SQLWRITE=yes to enable"
cp
$SQLCONCURRENCYDIR
/do_read
*
$SQLCONCURRENCYDIR
/do_search
*
\
$SQLDATADIR
$SQLCONCURRENCYDIR
/do_bind
*
$SQLDATADIR
else
case
${
RDBMS
}
in
# list here the RDBMSes whose mapping allows writes
...
...
@@ -84,14 +94,15 @@ else
*
)
echo
"write is not supported for
${
RDBMS
}
; performing read-only concurrency test"
cp
$SQLCONCURRENCYDIR
/do_read
*
$SQLCONCURRENCYDIR
/do_search
*
\
$SQLDATADIR
$SQLCONCURRENCYDIR
/do_bind
*
$SQLDATADIR
;;
esac
fi
echo
"Using tester for concurrent server access..."
$SLAPDTESTER
-P
"
$PROGDIR
"
-d
"
$SQLDATADIR
"
\
-h
$LOCALHOST
-p
$PORT1
-D
"
$MANAGERDN
"
-w
$PASSWD
-l
5
-j
4
-h
$LOCALHOST
-p
$PORT1
-D
"
$MANAGERDN
"
-w
$PASSWD
\
-l
$LOOPS
$CHILDREN
-FF
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