1#!/bin/sh
2
3if [ $# -lt 1 ]; then
4cat <<EOF
5Usage: test_net_cred_change.sh CONFIGURATION
6EOF
7exit 1;
8fi
9
10incdir=`dirname $0`/../../../testprogs/blackbox
11. $incdir/subunit.sh
12testit "1: change machine secret" $VALGRIND $BINDIR/wbinfo --change-secret || failed=`expr $failed + 1`
13testit "1: validate secret" $VALGRIND $BINDIR/net rpc testjoin $@ || failed=`expr $failed + 1`
14testit "2: change machine secret" $VALGRIND $BINDIR/wbinfo --change-secret || failed=`expr $failed + 1`
15testit "2: validate secret" $VALGRIND $BINDIR/net rpc testjoin $@ || failed=`expr $failed + 1`
16
17testok $0 $failed
18