mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
66577ad12d
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org>
39 lines
783 B
Bash
Executable File
39 lines
783 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Copyright (c) 2022 Pavel Filipenský <pfilipen@redhat.com>
|
|
#
|
|
# Blackbox tests for the rpcclient DFS commands
|
|
|
|
if [ $# -lt 4 ]; then
|
|
cat <<EOF
|
|
Usage: test_rpcclient_dfs.sh USERNAME PASSWORD SERVER RPCCLIENT
|
|
EOF
|
|
exit 1
|
|
fi
|
|
|
|
USERNAME="$1"
|
|
PASSWORD="$2"
|
|
SERVER="$3"
|
|
RPCCLIENT="$4"
|
|
|
|
RPCCLIENTCMD="${VALGRIND} ${RPCCLIENT} ${SERVER} -U${USERNAME}%${PASSWORD}"
|
|
|
|
incdir=$(dirname "$0")/../../../testprogs/blackbox
|
|
. "${incdir}"/subunit.sh
|
|
|
|
failed=0
|
|
|
|
${RPCCLIENTCMD} -c "dfsversion"
|
|
RC=$?
|
|
testit "dfsversion" test ${RC} -eq 0 || failed=$((failed + 1))
|
|
|
|
${RPCCLIENTCMD} -c "dfsenum 5"
|
|
RC=$?
|
|
testit "dfsenum" test ${RC} -eq 0 || failed=$((failed + 1))
|
|
|
|
${RPCCLIENTCMD} -c "dfsenumex 5"
|
|
RC=$?
|
|
testit "dfsenumex" test ${RC} -eq 0 || failed=$((failed + 1))
|
|
|
|
testok "$0" "${failed}"
|