r22637: Install tdbbackup and tdbdump again.
[Samba.git] / source / selftest / test_rpc.sh
blob724196bbfa3b432a2960bcfa01917c4bfa0889a4
1 #!/bin/sh
3 # add tests to this list as they start passing, so we test
4 # that they stay passing
5 ncacn_np_tests="RPC-SPOOLSS RPC-SRVSVC RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT RPC-HANDLES RPC-WINREG RPC-WKSSVC RPC-SVCCTL RPC-EPMAPPER RPC-INITSHUTDOWN RPC-EVENTLOG RPC-ATSVC RPC-SAMSYNC"
6 ncalrpc_tests="RPC-MGMT RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-WINREG RPC-WKSSVC RPC-SVCCTL RPC-EPMAPPER RPC-EVENTLOG RPC-ATSVC RPC-INITSHUTDOWN"
7 ncacn_ip_tcp_tests="RPC-UNIXINFO RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-ECHO RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-MGMT RPC-HANDLES RPC-WINREG RPC-WKSSVC RPC-SVCCTL RPC-EPMAPPER RPC-ATSVC RPC-EVENTLOG RPC-DSSYNC"
8 slow_ncacn_np_tests="RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS RPC-COUNTCALLS"
9 slow_ncalrpc_tests="RPC-SAMR RPC-SAMR-PASSWORDS RPC-COUNTCALLS RPC-CRACKNAMES"
10 slow_ncacn_ip_tcp_tests="RPC-SAMR RPC-SAMR-PASSWORDS RPC-COUNTCALLS RPC-CRACKNAMES"
12 incdir=`dirname $0`
13 . $incdir/test_functions.sh
15 for bindoptions in seal,padcheck $VALIDATE bigendian; do
16 for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
17 case $transport in
18 ncalrpc) tests=$ncalrpc_tests ;;
19 ncacn_np) tests=$ncacn_np_tests ;;
20 ncacn_ip_tcp) tests=$ncacn_ip_tcp_tests ;;
21 esac
22 for t in $tests; do
23 name="$t on $transport with $bindoptions"
24 plantest "$name" dc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
25 done
26 done
27 done
29 for bindoptions in connect $VALIDATE ; do
30 for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
31 case $transport in
32 ncalrpc) tests=$slow_ncalrpc_tests ;;
33 ncacn_np) tests=$slow_ncacn_np_tests ;;
34 ncacn_ip_tcp) tests=$slow_ncacn_ip_tcp_tests ;;
35 esac
36 for t in $tests; do
37 name="$t on $transport with $bindoptions"
38 plantest "$name" dc $VALGRIND bin/smbtorture $TORTURE_OPTIONS $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
39 done
40 done
41 done