2004-10-30 11:53:36 +00:00
#!/bin/sh
# add tests to this list as they start passing, so we test
# that they stay passing
2007-09-26 19:28:40 +00:00
ncacn_np_tests = "RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-HANDLES RPC-SAMSYNC RPC-SAMBA3SESSIONKEY RPC-SAMBA3-GETUSERNAME RPC-SAMBA3-LSA RPC-BINDSAMBA3 RPC-NETLOGSAMBA3 RPC-ASYNCBIND RPC-LSALOOKUP RPC-LSA-GETUSER RPC-SCHANNEL2 RPC-AUTHCONTEXT"
2007-09-02 15:05:58 +00:00
ncalrpc_tests = "RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-DRSUAPI RPC-ASYNCBIND RPC-LSALOOKUP RPC-LSA-GETUSER RPC-SCHANNEL2 RPC-AUTHCONTEXT"
ncacn_ip_tcp_tests = "RPC-SCHANNEL RPC-JOIN RPC-LSA RPC-DSSETUP RPC-ALTERCONTEXT RPC-MULTIBIND RPC-NETLOGON RPC-HANDLES RPC-DSSYNC RPC-ASYNCBIND RPC-LSALOOKUP RPC-LSA-GETUSER RPC-SCHANNEL2 RPC-AUTHCONTEXT"
slow_ncacn_np_tests = "RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS"
slow_ncalrpc_tests = "RPC-SAMR RPC-SAMR-PASSWORDS"
slow_ncacn_ip_tcp_tests = "RPC-SAMR RPC-SAMR-PASSWORDS RPC-CRACKNAMES"
2004-10-30 11:53:36 +00:00
2005-06-09 07:14:39 +00:00
incdir = ` dirname $0 `
. $incdir /test_functions.sh
2005-06-08 18:01:25 +00:00
2007-09-26 19:28:40 +00:00
all_tests = " $ncalrpc_tests $ncacn_np_tests $ncacn_ip_tcp_tests $slow_ncalrpc_tests $slow_ncacn_np_tests $slow_ncacn_ip_tcp_tests RPC-SECRETS RPC-SAMBA3-SHARESEC "
2007-08-31 13:30:47 +00:00
# Make sure all tests get run
2007-09-01 02:33:00 +00:00
for t in ` $samba4bindir /smbtorture --list | grep "^RPC-" `
2007-08-31 13:30:47 +00:00
do
2007-10-02 10:50:42 +00:00
echo $all_tests | grep $t > /dev/null
if [ $? -ne 0 ]
2007-08-31 13:30:47 +00:00
then
2007-09-02 15:05:58 +00:00
auto_rpc_tests = " $auto_rpc_tests $t "
2007-08-31 13:30:47 +00:00
fi
done
2006-09-11 00:43:48 +00:00
for bindoptions in seal,padcheck $VALIDATE bigendian; do
2005-03-23 22:15:48 +00:00
for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
2005-01-01 01:40:45 +00:00
case $transport in
ncalrpc) tests = $ncalrpc_tests ; ;
ncacn_np) tests = $ncacn_np_tests ; ;
ncacn_ip_tcp) tests = $ncacn_ip_tcp_tests ; ;
esac
2004-10-30 11:53:36 +00:00
for t in $tests ; do
2005-06-09 07:14:39 +00:00
name = " $t on $transport with $bindoptions "
2007-09-01 02:33:00 +00:00
plantest " $name " dc $VALGRIND $samba4bindir /smbtorture $TORTURE_OPTIONS $transport :" \$SERVER[ $bindoptions ] " -U"\$USERNAME" %"\$PASSWORD" -W \$ DOMAIN $t " $* "
2004-10-30 11:53:36 +00:00
done
2007-09-26 19:28:40 +00:00
plantest " RPC-SAMBA3-SHARESEC on $transport with $bindoptions " dc $VALGRIND $samba4bindir /smbtorture $TORTURE_OPTIONS $transport :" \$SERVER[ $bindoptions ] " -U"\$USERNAME" %"\$PASSWORD" -W \$ DOMAIN --option= torture:share= tmp $t " $* "
2004-10-30 11:53:36 +00:00
done
done
2007-09-02 15:05:58 +00:00
for bindoptions in "" $VALIDATE bigendian; do
2007-09-02 18:25:59 +00:00
for t in $auto_rpc_tests ; do
2007-09-02 15:05:58 +00:00
plantest " $t with $bindoptions " dc $VALGRIND $samba4bindir /smbtorture $TORTURE_OPTIONS " \$SERVER[ $bindoptions ] " -U"\$USERNAME" %"\$PASSWORD" -W \$ DOMAIN $t " $* "
done
done
2006-09-11 00:43:48 +00:00
for bindoptions in connect $VALIDATE ; do
2007-04-11 11:17:09 +00:00
for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
2005-10-28 12:08:03 +00:00
case $transport in
ncalrpc) tests = $slow_ncalrpc_tests ; ;
ncacn_np) tests = $slow_ncacn_np_tests ; ;
ncacn_ip_tcp) tests = $slow_ncacn_ip_tcp_tests ; ;
esac
for t in $tests ; do
name = " $t on $transport with $bindoptions "
2007-09-01 02:33:00 +00:00
plantest " $name " dc $VALGRIND $samba4bindir /smbtorture $TORTURE_OPTIONS $transport :" \$SERVER[ $bindoptions ] " -U"\$USERNAME" %"\$PASSWORD" -W \$ DOMAIN $t " $* "
2005-10-28 12:08:03 +00:00
done
done
done
2007-09-26 19:28:40 +00:00