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
Shawn McKinney
OpenLDAP
Commits
6cb792fe
Commit
6cb792fe
authored
Apr 24, 2021
by
Howard Chu
Browse files
ITS#9535 avoid non-portable wc format
Use awk to count lines instead
parent
2cda679e
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/scripts/test078-persistent-sessionlog
View file @
6cb792fe
...
...
@@ -610,9 +610,9 @@ $LDIFFILTER -s a < $TESTDIR/server$n.out > $TESTDIR/server$n.flt
echo
"Checking server
$n
can remember which entries have been deleted even after it's been restarted..."
$LDAPRSEARCH
-b
"
$BASEDN
"
-D
"
$MANAGERDN
"
-H
$URI
-w
$PASSWD
\
-E
"sync=ro/
$cookie
"
'objectclass=*'
1.1 |
grep
syncUUIDs
|
wc
-l
>
$TESTDIR
/repl.out
-E
"sync=ro/
$cookie
"
'objectclass=*'
1.1 |
awk
'/
syncUUIDs
/ {count++} END {print count}'
>
$TESTDIR
/repl.out
$LDAPRSEARCH
-b
"
$BASEDN
"
-D
"
$MANAGERDN
"
-H
$URI
-w
$PASSWD
\
-E
"sync=ro/
$cookie
"
'objectclass=*'
1.1 |
grep
SyncDone |
grep
"
refreshDeletes=1
"
|
wc
-l
>>
$TESTDIR
/repl.out
-E
"sync=ro/
$cookie
"
'objectclass=*'
1.1 |
grep
SyncDone |
awk
'/
refreshDeletes=1
/ {count++} END {print count}'
>>
$TESTDIR
/repl.out
$CMP
$TESTDIR
/repl.out
$TESTDIR
/repl.test
>
$CMPOUT
...
...
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