selftest: add new credential change test
[amitay/samba.git] / source3 / script / tests / test_net_cred_change.sh
1 #!/bin/sh
2
3 if [ $# -lt 1 ]; then
4 cat <<EOF
5 Usage: test_net_cred_change.sh CONFIGURATION
6 EOF
7 exit 1;
8 fi
9
10 incdir=`dirname $0`/../../../testprogs/blackbox
11 . $incdir/subunit.sh
12 testit "first change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
13 testit "first join" $VALGRIND $BINDIR/net rpc testjoin $@ || failed =`expr $failed + 1`
14 testit "second change" $VALGRIND $BINDIR/wbinfo -c || failed =`expr $failed + 1`
15
16 testok $0 $failed