1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00
samba-mirror/source3/script/tests/test_net_cred_change.sh
Garming Sam 48820b9528 selftest: add new credential change test
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
2013-12-23 09:18:15 +01:00

17 lines
441 B
Bash
Executable File

#!/bin/sh
if [ $# -lt 1 ]; then
cat <<EOF
Usage: test_net_cred_change.sh CONFIGURATION
EOF
exit 1;
fi
incdir=`dirname $0`/../../../testprogs/blackbox
. $incdir/subunit.sh
testit "first change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
testit "first join" $VALGRIND $BINDIR/net rpc testjoin $@ || failed =`expr $failed + 1`
testit "second change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
testok $0 $failed