mirror of
https://github.com/samba-team/samba.git
synced 2025-01-10 01:18:15 +03:00
testprogs: Reformat test_ldb_simple.sh
shfmt -w -p -i 0 -fn testprogs/blackbox/test_ldb_simple.sh Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Pavel Filipenský <pfilipensky@samba.org>
This commit is contained in:
parent
19f73f19f4
commit
c44289ce1c
@ -1,22 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ $# -lt 2 ]; then
|
||||
cat <<EOF
|
||||
cat <<EOF
|
||||
Usage: test_ldb_simple.sh PROTOCOL SERVER [OPTIONS]
|
||||
EOF
|
||||
exit 1;
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
p=$1
|
||||
SERVER=$2
|
||||
PREFIX=$3
|
||||
shift 2
|
||||
options="$*"
|
||||
|
||||
. `dirname $0`/subunit.sh
|
||||
. $(dirname $0)/subunit.sh
|
||||
|
||||
check() {
|
||||
check()
|
||||
{
|
||||
name="$1"
|
||||
shift
|
||||
cmdline="$*"
|
||||
@ -27,7 +27,7 @@ check() {
|
||||
echo "success: $name"
|
||||
else
|
||||
echo "failure: $name"
|
||||
failed=`expr $failed + 1`
|
||||
failed=$(expr $failed + 1)
|
||||
fi
|
||||
return $status
|
||||
}
|
||||
@ -36,6 +36,6 @@ export PATH="$BINDIR:$PATH"
|
||||
|
||||
ldbsearch="$VALGRIND ldbsearch"
|
||||
|
||||
check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base currentTime || failed=`expr $failed + 1`
|
||||
check "currentTime" $ldbsearch $CONFIGURATION $options --basedn='' -H $p://$SERVER --scope=base currentTime || failed=$(expr $failed + 1)
|
||||
|
||||
exit $failed
|
||||
|
Loading…
Reference in New Issue
Block a user