r4643: RPC-ALTERCONTEXT now passes
[samba.git] / source4 / script / tests / test_rpc.sh
index bfce65bbb606746d6aef19470e34d69daa898d17..b1f24d8b29a79f598ff1c7f8fb5f12a92dee1f00 100755 (executable)
@@ -2,11 +2,13 @@
 
 # add tests to this list as they start passing, so we test
 # that they stay passing
-tests="RPC-SCHANNEL RPC-ECHO"
+ncacn_np_tests="RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON RPC-ALTERCONTEXT"
+ncalrpc_tests="RPC-SCHANNEL RPC-ECHO RPC-DSSETUP RPC-SAMLOGON RPC-ALTERCONTEXT"
+ncacn_ip_tcp_tests="RPC-SCHANNEL RPC-ECHO RPC-SAMLOGON RPC-ALTERCONTEXT"
 
 if [ $# -lt 4 ]; then
 cat <<EOF
-Usage: test_echo.sh SERVER USERNAME PASSWORD DOMAIN
+Usage: test_rpc.sh SERVER USERNAME PASSWORD DOMAIN
 EOF
 exit 1;
 fi
@@ -31,6 +33,11 @@ testit() {
 
 for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
  for bindoptions in connect sign seal sign,seal validate padcheck bigendian bigendian,seal; do
+     case $transport in
+        ncalrpc) tests=$ncalrpc_tests ;;
+        ncacn_np) tests=$ncacn_np_tests ;;
+        ncacn_ip_tcp) tests=$ncacn_ip_tcp_tests ;;
+     esac
    for t in $tests; do
     echo Testing $t on $transport with $bindoptions
     testit bin/smbtorture $transport:"$server[$bindoptions]" -U"$username"%"$password" -W $domain $t "$*"