1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-08 21:18:16 +03:00
samba-mirror/source3/script/tests/test_net_machine_account.sh
Andreas Schneider a0802f556f s3:tests: Reformat test_net_machine_account.sh
shfmt -f source3/script/| xargs shfmt -w -p -i 0 -fn

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2022-06-08 06:38:30 +00:00

26 lines
456 B
Bash
Executable File

#!/bin/sh
# Reproducer for https://bugzilla.samba.org/show_bug.cgi?id=14908
if [ $# -lt 2 ]; then
echo "Usage: $0 NET CONFFILE SERVER_IP"
exit 1
fi
NET="$1"
shift
CONFFILE="$1"
shift
SERVER_IP="$1"
shift
export UID_WRAPPER_ROOT=1
incdir=$(dirname $0)/../../../testprogs/blackbox
. $incdir/subunit.sh
failed=0
testit "net_ads_user" $VALGRIND $NET rpc user --configfile="$CONFFILE" -S "$SERVER_IP" -P || failed=$(expr $failed + 1)
testok $0 $failed