Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
openldap
OpenLDAP
Commits
570204c9
Commit
570204c9
authored
May 27, 2000
by
Kurt Zeilenga
Browse files
s/cmp/$CMP/ define CMP to cmp (to allow cmp replacements)
Add -n option to slapd
parent
47333bf7
Changes
10
Hide whitespace changes
Inline
Side-by-side
tests/scripts/defines.sh
View file @
570204c9
...
...
@@ -32,6 +32,8 @@ CLIENTDIR=../clients/tools
LDIF2LDBM
=
"../servers/slapd/tools/slapadd
$LDAP_VERBOSE
"
CMP
=
cmp
#CMP=diff -i -q
SLAPD
=
../servers/slapd/slapd
SLURPD
=
../servers/slurpd/slurpd
LDAPPASSWD
=
"
$CLIENTDIR
/ldappasswd"
...
...
tests/scripts/test001-slapadd
View file @
570204c9
...
...
@@ -55,7 +55,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - database was not created correctly"
...
...
tests/scripts/test002-populate
View file @
570204c9
...
...
@@ -58,7 +58,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - database was not created correctly"
...
...
tests/scripts/test003-search
View file @
570204c9
...
...
@@ -93,7 +93,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"Comparison failed"
...
...
tests/scripts/test004-modify
View file @
570204c9
...
...
@@ -135,7 +135,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - modify operations did not complete correctly"
...
...
tests/scripts/test005-modrdn
View file @
570204c9
...
...
@@ -91,7 +91,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - modrdn operations did not complete correctly"
...
...
tests/scripts/test006-acls
View file @
570204c9
...
...
@@ -131,7 +131,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - modify operations did not complete correctly"
...
...
tests/scripts/test007-replication
View file @
570204c9
...
...
@@ -174,7 +174,7 @@ echo "Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing retrieved entries from master and slave..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"test failed - master and slave databases differ"
...
...
tests/scripts/test008-concurrency
View file @
570204c9
...
...
@@ -72,7 +72,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"comparison failed - database was not created correctly"
...
...
tests/scripts/test009-referral
View file @
570204c9
...
...
@@ -31,11 +31,11 @@ if test $RC != 0 ; then
fi
echo
"Starting master slapd on TCP/IP port
$PORT
..."
$SLAPD
-f
$CONF
-h
$MASTERURI
-d
$LVL
$TIMING
>
$MASTERLOG
2>&1 &
$SLAPD
-n
master
-f
$CONF
-h
$MASTERURI
-d
$LVL
$TIMING
>
$MASTERLOG
2>&1 &
PID
=
$!
echo
"Starting slave slapd on TCP/IP port
$SLAVEPORT
..."
$SLAPD
-f
$REFSLAVECONF
-h
$SLAVEURI
-d
$LVL
$TIMING
>
$SLAVELOG
2>&1 &
$SLAPD
-n
slave
-f
$REFSLAVECONF
-h
$SLAVEURI
-d
$LVL
$TIMING
>
$SLAVELOG
2>&1 &
SLAVEPID
=
$!
echo
"Testing for master slapd..."
...
...
@@ -113,7 +113,7 @@ echo "Filtering ldapsearch results..."
echo
"Filtering original ldif used to create database..."
.
$SRCDIR
/scripts/acfilter.sh <
$LDIF
>
$LDIFFLT
echo
"Comparing filter output..."
cmp
$SEARCHFLT
$LDIFFLT
$CMP
$SEARCHFLT
$LDIFFLT
if
test
$?
!=
0
;
then
echo
"Comparison failed"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment