Revert "Revert "s3-printing: update parent smbd pcap cache""
[Samba.git] / source4 / selftest / tests.sh
blob92ac1041253b8976ca7594f07c365dd2f4a89ca8
1 #!/bin/sh
2 # This script generates a list of testsuites that should be run as part of
3 # the Samba 4 test suite.
5 # The output of this script is parsed by selftest.pl, which then decides
6 # which of the tests to actually run. It will, for example, skip all tests
7 # listed in selftest/skip or only run a subset during "make quicktest".
9 # The idea is that this script outputs all of the tests of Samba 4, not
10 # just those that are known to pass, and list those that should be skipped
11 # or are known to fail in selftest/skip or selftest/knownfail. This makes it
12 # very easy to see what functionality is still missing in Samba 4 and makes
13 # it possible to run the testsuite against other servers, such as Samba 3 or
14 # Windows that have a different set of features.
16 # The syntax for a testsuite is "-- TEST --" on a single line, followed
17 # by the name of the test, the environment it needs and the command to run, all
18 # three separated by newlines. All other lines in the output are considered
19 # comments.
21 if [ ! -n "$PERL" ]
22 then
23 PERL=perl
26 if [ ! -n "$PYTHON" ]
27 then
28 PYTHON=python
31 plantest() {
32 name=$1
33 env=$2
34 shift 2
35 cmdline="$*"
36 echo "-- TEST --"
37 if [ "$env" = "none" ]; then
38 echo "samba4.$name"
39 else
40 echo "samba4.$name ($env)"
42 echo $env
43 echo $cmdline
46 normalize_testname() {
47 name=$1
48 shift 1
49 echo $name | tr "A-Z-" "a-z."
52 plansmbtorturetest() {
53 name=$1
54 env=$2
55 shift 2
56 other_args="$*"
57 modname=`normalize_testname $name`
58 cmdline="$VALGRIND $smb4torture $other_args $name"
59 plantest "$modname" "$env" $cmdline
62 samba4srcdir="`dirname $0`/.."
63 samba4bindir="$BUILDDIR/bin"
64 smb4torture="$samba4bindir/smbtorture${EXEEXT}"
65 $smb4torture -V
67 bbdir=../testprogs/blackbox
69 prefix_abs="$SELFTEST_PREFIX/s4client"
70 CONFIGURATION="--configfile=\$SMB_CONF_PATH"
72 test -d "$prefix_abs" || mkdir "$prefix_abs"
74 TORTURE_OPTIONS=""
75 TORTURE_OPTIONS="$TORTURE_OPTIONS $CONFIGURATION"
76 TORTURE_OPTIONS="$TORTURE_OPTIONS --maximum-runtime=$SELFTEST_MAXTIME"
77 TORTURE_OPTIONS="$TORTURE_OPTIONS --target=$SELFTEST_TARGET"
78 TORTURE_OPTIONS="$TORTURE_OPTIONS --basedir=$prefix_abs"
79 if [ -n "$SELFTEST_VERBOSE" ]; then
80 TORTURE_OPTIONS="$TORTURE_OPTIONS --option=torture:progress=no"
82 TORTURE_OPTIONS="$TORTURE_OPTIONS --format=subunit"
83 if [ -n "$SELFTEST_QUICK" ]; then
84 TORTURE_OPTIONS="$TORTURE_OPTIONS --option=torture:quick=yes"
86 smb4torture="$smb4torture $TORTURE_OPTIONS"
88 echo "OPTIONS $TORTURE_OPTIONS"
90 # Simple tests for LDAP and CLDAP
92 for options in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD --option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD"; do
93 plantest "ldb.ldap with options $options" dc $bbdir/test_ldb.sh ldap \$SERVER_IP $options
94 done
95 # see if we support ldaps
96 if grep ENABLE_GNUTLS.1 include/config.h > /dev/null; then
97 for options in "" "-U\$USERNAME%\$PASSWORD"; do
98 plantest "ldb.ldaps with options $options" dc $bbdir/test_ldb.sh ldaps \$SERVER_IP $options
99 done
101 plantest "ldb.ldapi with options $options" dc $bbdir/test_ldb.sh ldapi \$PREFIX_ABS/dc/private/ldapi $options
102 for t in LDAP-CLDAP LDAP-BASIC LDAP-SCHEMA LDAP-UPTODATEVECTOR
104 plansmbtorturetest "$t" dc "-U\$USERNAME%\$PASSWORD" //\$SERVER_IP/_none_
105 done
107 # only do the ldb tests when not in quick mode - they are quite slow, and ldb
108 # is now pretty well tested by the rest of the quick tests anyway
109 LDBDIR=$samba4srcdir/lib/ldb
110 export LDBDIR
111 plantest "ldb" none TEST_DATA_PREFIX=\$PREFIX $LDBDIR/tests/test-tdb.sh
113 # Tests for RPC
115 # add tests to this list as they start passing, so we test
116 # that they stay passing
117 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"
118 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"
119 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 RPC-OBJECTUUID"
120 slow_ncacn_np_tests="RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-PASSWORDS"
121 slow_ncalrpc_tests="RPC-SAMR RPC-SAMR-PASSWORDS"
122 slow_ncacn_ip_tcp_tests="RPC-SAMR RPC-SAMR-PASSWORDS RPC-CRACKNAMES"
124 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 RPC-COUNTCALLS"
126 # Make sure all tests get run
127 for t in `$smb4torture --list | grep "^RPC-"`
129 echo $all_tests | grep "$t" > /dev/null
130 if [ $? -ne 0 ]
131 then
132 auto_rpc_tests="$auto_rpc_tests $t"
134 done
136 for bindoptions in seal,padcheck $VALIDATE bigendian; do
137 for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
138 env="dc"
139 case $transport in
140 ncalrpc) tests=$ncalrpc_tests;env="dc:local" ;;
141 ncacn_np) tests=$ncacn_np_tests ;;
142 ncacn_ip_tcp) tests=$ncacn_ip_tcp_tests ;;
143 esac
144 for t in $tests; do
145 plantest "`normalize_testname $t` on $transport with $bindoptions" $env $VALGRIND $smb4torture $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
146 done
147 plantest "rpc.samba3.sharesec on $transport with $bindoptions" $env $VALGRIND $smb4torture $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN --option=torture:share=tmp RPC-SAMBA3-SHARESEC "$*"
148 done
149 done
151 for bindoptions in "" $VALIDATE bigendian; do
152 for t in $auto_rpc_tests; do
153 plantest "`normalize_testname $t` with $bindoptions" dc $VALGRIND $smb4torture "\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
154 done
155 done
157 t="RPC-COUNTCALLS"
158 plantest "`normalize_testname $t`" dc:local $VALGRIND $smb4torture "\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
160 for bindoptions in connect $VALIDATE ; do
161 for transport in ncalrpc ncacn_np ncacn_ip_tcp; do
162 env="dc"
163 case $transport in
164 ncalrpc) tests=$slow_ncalrpc_tests; env="dc:local" ;;
165 ncacn_np) tests=$slow_ncacn_np_tests ;;
166 ncacn_ip_tcp) tests=$slow_ncacn_ip_tcp_tests ;;
167 esac
168 for t in $tests; do
169 plantest "`normalize_testname $t` on $transport with $bindoptions" $env $VALGRIND $smb4torture $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN $t "$*"
170 done
171 done
172 done
175 # Tests for the NET API
177 net=`$smb4torture --list | grep "^NET-"`
179 for t in $net; do
180 plansmbtorturetest "$t" dc "\$SERVER[$VALIDATE]" -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" "$*"
181 done
183 # Tests for session keys
184 # FIXME: Integrate these into a single smbtorture test
186 bindoptions=""
187 transport="ncacn_np"
188 for ntlmoptions in \
189 "-k no --option=usespnego=yes" \
190 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no" \
191 "-k no --option=usespnego=yes --option=ntlmssp_client:56bit=yes" \
192 "-k no --option=usespnego=yes --option=ntlmssp_client:56bit=no" \
193 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes" \
194 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=no" \
195 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes" \
196 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no" \
197 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes" \
198 "-k no --option=usespnego=no --option=clientntlmv2auth=yes" \
199 "-k no --option=gensec:spnego=no --option=clientntlmv2auth=yes" \
200 "-k no --option=usespnego=no"; do
201 name="rpc.secrets on $transport with $bindoptions with $ntlmoptions"
202 plantest "$name" dc $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN --option=gensec:target_hostname=\$NETBIOSNAME RPC-SECRETS "$*"
203 done
204 plantest "rpc.secrets on $transport with $bindoptions with Kerberos" dc $smb4torture $transport:"\$SERVER[$bindoptions]" -k yes -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN "--option=gensec:target_hostname=\$NETBIOSNAME" RPC-SECRETS "$*"
205 plantest "rpc.secrets on $transport with $bindoptions with Kerberos - use target principal" dc $smb4torture $transport:"\$SERVER[$bindoptions]" -k yes -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN "--option=clientusespnegoprincipal=yes" "--option=gensec:target_hostname=\$NETBIOSNAME" RPC-SECRETS "$*"
206 plantest "rpc.secrets on $transport with Kerberos - use Samba3 style login" dc $smb4torture $transport:"\$SERVER" -k yes -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=\$NETBIOSNAME" "RPC-SECRETS-none*" "$*"
207 plantest "rpc.secrets on $transport with Kerberos - use Samba3 style login, use target principal" dc $smb4torture $transport:"\$SERVER" -k yes -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" "--option=clientusespnegoprincipal=yes" "--option=gensec:fake_gssapi_krb5=yes" "--option=gensec:gssapi_krb5=no" "--option=gensec:target_hostname=\$NETBIOSNAME" "RPC-SECRETS-none*" "$*"
209 # Echo tests
210 transports="ncacn_np ncacn_ip_tcp ncalrpc"
212 for transport in $transports; do
213 for bindoptions in connect spnego spnego,sign spnego,seal $VALIDATE padcheck bigendian bigendian,seal; do
214 for ntlmoptions in \
215 "--option=socket:testnonblock=True --option=torture:quick=yes"; do
216 env="dc"
217 if test x"$transport" = x"ncalrpc"; then
218 env="dc:local"
220 plantest "rpc.echo on $transport with $bindoptions and $ntlmoptions" $env $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" RPC-ECHO "$*"
221 done
222 done
223 done
225 for transport in $transports; do
226 for bindoptions in sign seal; do
227 for ntlmoptions in \
228 "--option=ntlmssp_client:ntlm2=yes --option=torture:quick=yes" \
229 "--option=ntlmssp_client:ntlm2=no --option=torture:quick=yes" \
230 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:128bit=no --option=torture:quick=yes" \
231 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:128bit=no --option=torture:quick=yes" \
232 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
233 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
234 "--option=clientntlmv2auth=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
235 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=yes --option=torture:quick=yes" \
236 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
237 ; do
238 env="dc"
239 if test x"$transport" = x"ncalrpc"; then
240 env="dc:local"
242 plantest "rpc.echo on $transport with $bindoptions and $ntlmoptions" $env $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN RPC-ECHO "$*"
243 done
244 done
245 done
247 plantest "rpc.echo on ncacn_np over smb2" dc $smb4torture ncacn_np:"\$SERVER[smb2]" -U"\$USERNAME"%"\$PASSWORD" -W \$DOMAIN RPC-ECHO "$*"
249 # Tests against the NTVFS POSIX backend
250 NTVFSARGS=""
251 NTVFSARGS="${NTVFSARGS} --option=torture:sharedelay=100000"
252 NTVFSARGS="${NTVFSARGS} --option=torture:oplocktimeout=3"
253 NTVFSARGS="${NTVFSARGS} --option=torture:writetimeupdatedelay=500000"
255 smb2=`$smb4torture --list | grep "^SMB2-" | xargs`
256 #The QFILEINFO-IPC test needs to be on ipc$
257 raw=`$smb4torture --list | grep "^RAW-" | grep -v "RAW-QFILEINFO-IPC"| xargs`
258 base=`$smb4torture --list | grep "^BASE-" | xargs`
260 for t in $base $raw $smb2; do
261 plansmbtorturetest "$t" dc $ADDARGS //\$SERVER/tmp -U"\$USERNAME"%"\$PASSWORD" $NTVFSARGS
262 done
264 plansmbtorturetest "RAW-QFILEINFO-IPC" dc $ADDARGS //\$SERVER/ipc$ -U"\$USERNAME"%"\$PASSWORD"
266 rap=`$smb4torture --list | grep "^RAP-" | xargs`
267 for t in $rap; do
268 plansmbtorturetest "$t" dc $ADDARGS //\$SERVER/IPC\\\$ -U"\$USERNAME"%"\$PASSWORD"
269 done
271 # Tests against the NTVFS CIFS backend
272 for t in $base $raw; do
273 plantest "ntvfs.cifs.`normalize_testname $t`" dc $VALGRIND $smb4torture //\$NETBIOSNAME/cifs -U"\$USERNAME"%"\$PASSWORD" $NTVFSARGS $t
274 done
276 # Local tests
278 for t in `$smb4torture --list | grep "^LOCAL-" | xargs`; do
279 plansmbtorturetest "$t" none ncalrpc: "$*"
280 done
282 tdbtorture4="$samba4bindir/tdbtorture${EXEEXT}"
283 if test -f $tdbtorture4
284 then
285 plantest "tdb.stress" none $VALGRIND $tdbtorture4
288 # Pidl tests
290 if test x"${PIDL_TESTS_SKIP}" = x"yes"; then
291 echo "Skipping pidl tests - PIDL_TESTS_SKIP=yes"
292 elif $PERL -e 'eval require Test::More;' > /dev/null 2>&1; then
293 for f in $samba4srcdir/../pidl/tests/*.pl; do
294 plantest "pidl.`basename $f .pl`" none $PERL $f "|" $PERL $samba4srcdir/../lib/subunit/harness2subunit.pl
295 done
296 else
297 echo "Skipping pidl tests - Test::More not installed"
300 # Blackbox Tests:
301 # tests that interact directly with the command-line tools rather than using
302 # the API. These mainly test that the various command-line options of commands
303 # work correctly.
305 plantest "blackbox.ndrdump" none $samba4srcdir/librpc/tests/test_ndrdump.sh
306 plantest "blackbox.net" dc $samba4srcdir/utils/tests/test_net.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"
307 plantest "blackbox.kinit" dc $bbdir/test_kinit.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" $CONFIGURATION
308 plantest "blackbox.cifsdd" dc $samba4srcdir/client/tests/test_cifsdd.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"
309 plantest "blackbox.nmblookup" dc $samba4srcdir/utils/tests/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP"
310 plantest "blackbox.nmblookup" member $samba4srcdir/utils/tests/test_nmblookup.sh "\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP"
311 plantest "blackbox.locktest" dc $samba4srcdir/torture/tests/test_locktest.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
312 plantest "blackbox.masktest" dc $samba4srcdir/torture/tests/test_masktest.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
313 plantest "blackbox.gentest" dc $samba4srcdir/torture/tests/test_gentest.sh "\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
314 plantest "blackbox.wbinfo" dc:local $samba4srcdir/../nsswitch/tests/test_wbinfo.sh "\$DOMAIN" "\$USERNAME" "\$PASSWORD" "dc"
315 plantest "blackbox.wbinfo" member:local $samba4srcdir/../nsswitch/tests/test_wbinfo.sh "\$DOMAIN" "\$DC_USERNAME" "\$DC_PASSWORD" "member"
317 # Tests using the "Simple" NTVFS backend
319 for t in "BASE-RW1"; do
320 plantest "ntvfs.simple.`normalize_testname $t`" dc $VALGRIND $smb4torture $ADDARGS //\$SERVER/simple -U"\$USERNAME"%"\$PASSWORD" $t
321 done
323 # Domain Member Tests
325 plantest "rpc.echo against member server with local creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" RPC-ECHO "$*"
326 plantest "rpc.echo against member server with domain creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD" RPC-ECHO "$*"
327 plantest "rpc.samr against member server with local creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR" "$*"
328 plantest "rpc.samr.users against member server with local creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-USERS" "$*"
329 plantest "rpc.samr.passwords against member server with local creds" member $VALGRIND $smb4torture ncacn_np:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-PASSWORDS" "$*"
330 plantest "blackbox.smbclient against member server with local creds" member $samba4srcdir/client/tests/test_smbclient.sh "\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$NETBIOSNAME" "$PREFIX"
332 # Tests SMB signing
334 for mech in \
335 "-k no" \
336 "-k no --option=usespnego=no" \
337 "-k no --option=gensec:spengo=no" \
338 "-k yes" \
339 "-k yes --option=gensec:fake_gssapi_krb5=yes --option=gensec:gssapi_krb5=no"; do
340 for signing in \
341 "--signing=on" \
342 "--signing=required"; do
344 signoptions="$mech $signing"
345 name="smb.signing on with $signoptions"
346 plantest "$name" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp $signoptions -U"\$USERNAME"%"\$PASSWORD" BASE-XCOPY "$*"
347 done
348 done
350 for mech in \
351 "-k no" \
352 "-k no --option=usespnego=no" \
353 "-k no --option=gensec:spengo=no" \
354 "-k yes" \
355 "-k yes --option=gensec:fake_gssapi_krb5=yes --option=gensec:gssapi_krb5=no"; do
356 signoptions="$mech --signing=off"
357 name="smb.signing on with $signoptions"
358 plantest "$name domain-creds" member $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp $signoptions -U"\$DC_USERNAME"%"\$DC_PASSWORD" BASE-XCOPY "$*"
359 done
360 for mech in \
361 "-k no" \
362 "-k no --option=usespnego=no" \
363 "-k no --option=gensec:spengo=no"; do
364 signoptions="$mech --signing=off"
365 name="smb.signing on with $signoptions"
366 plantest "$name local-creds" member $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp $signoptions -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" BASE-XCOPY "$*"
367 done
368 plantest "smb.signing --signing=yes anon" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp -k no --signing=yes -U% BASE-XCOPY "$*"
369 plantest "smb.signing --signing=required anon" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp -k no --signing=required -U% BASE-XCOPY "$*"
370 plantest "smb.signing --signing=no anon" member $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp -k no --signing=no -U% BASE-XCOPY "$*"
372 NBT_TESTS=`$smb4torture --list | grep "^NBT-" | xargs`
374 for t in $NBT_TESTS; do
375 plansmbtorturetest "$t" dc //\$SERVER/_none_ -U\$USERNAME%\$PASSWORD
376 done
378 WB_OPTS="--option=\"torture:strict mode=no\""
379 WB_OPTS="${WB_OPTS} --option=\"torture:timelimit=1\""
380 WB_OPTS="${WB_OPTS} --option=\"torture:winbindd separator=/\""
381 WB_OPTS="${WB_OPTS} --option=\"torture:winbindd netbios name=\$SERVER\""
382 WB_OPTS="${WB_OPTS} --option=\"torture:winbindd netbios domain=\$DOMAIN\""
384 WINBIND_STRUCT_TESTS=`$smb4torture --list | grep "^WINBIND-STRUCT" | xargs`
385 WINBIND_NDR_TESTS=`$smb4torture --list | grep "^WINBIND-NDR" | xargs`
386 for env in dc member; do
387 for t in $WINBIND_STRUCT_TESTS; do
388 plansmbtorturetest $t $env $WB_OPTS //_none_/_none_
389 done
391 for t in $WINBIND_NDR_TESTS; do
392 plansmbtorturetest $t $env $WB_OPTS //_none_/_none_
393 done
394 done
396 nsstest4="$samba4bindir/nsstest${EXEEXT}"
397 if test -f $nsstest4
398 then
399 plantest "nss.test using winbind" member $VALGRIND $nsstest4 $samba4bindir/shared/libnss_winbind.so
402 SUBUNITRUN="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
403 plantest "ldb.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $SUBUNITRUN api
404 plantest "credentials.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings
405 plantest "registry.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/registry/tests/" $SUBUNITRUN bindings
406 plantest "tdb.python" none PYTHONPATH="$PYTHONPATH:../lib/tdb/python/tests" $SUBUNITRUN simple
407 plantest "auth.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/auth/tests/" $SUBUNITRUN bindings
408 plantest "security.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/libcli/security/tests" $SUBUNITRUN bindings
409 plantest "param.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/param/tests" $SUBUNITRUN bindings
410 plantest "upgrade.python" none $SUBUNITRUN samba.tests.upgrade
411 plantest "samba.python" none $SUBUNITRUN samba.tests
412 plantest "provision.python" none $SUBUNITRUN samba.tests.provision
413 plantest "samba3.python" none $SUBUNITRUN samba.tests.samba3
414 plantest "samr.python" dc:local $SUBUNITRUN samba.tests.dcerpc.sam
415 plantest "dcerpc.bare.python" dc:local $SUBUNITRUN samba.tests.dcerpc.bare
416 plantest "unixinfo.python" dc:local $SUBUNITRUN samba.tests.dcerpc.unix
417 plantest "samdb.python" none $SUBUNITRUN samba.tests.samdb
418 plantest "messaging.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/lib/messaging/tests" $SUBUNITRUN bindings
419 plantest "samba3sam.python" none PYTHONPATH="$PYTHONPATH:$samba4srcdir/dsdb/samdb/ldb_modules/tests" $SUBUNITRUN samba3sam
420 plantest "subunit.python" none $SUBUNITRUN subunit
421 plantest "rpcecho.python" dc:local $SUBUNITRUN samba.tests.dcerpc.rpcecho
422 plantest "winreg.python" dc:local $SUBUNITRUN -U\$USERNAME%\$PASSWORD samba.tests.dcerpc.registry
423 plantest "ldap.python" dc $PYTHON $samba4srcdir/lib/ldb/tests/python/ldap.py $CONFIGURATION \$SERVER -U\$USERNAME%\$PASSWORD -W \$DOMAIN
424 plantest "blackbox.samba3dump" none $PYTHON $samba4srcdir/scripting/bin/samba3dump $samba4srcdir/../testdata/samba3
425 rm -rf $PREFIX/upgrade
426 plantest "blackbox.upgrade" none $PYTHON $samba4srcdir/setup/upgrade $CONFIGURATION --targetdir=$PREFIX/upgrade $samba4srcdir/../testdata/samba3 ../testdata/samba3/smb.conf
427 rm -rf $PREFIX/provision
428 mkdir $PREFIX/provision
429 plantest "blackbox.provision.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_provision.sh "$PREFIX/provision"
430 plantest "blackbox.provision-backend.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_provision-backend.sh "$PREFIX/provision"
431 plantest "blackbox.setpassword.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_setpassword.sh "$PREFIX/provision"
432 plantest "blackbox.newuser.py" none PYTHON="$PYTHON" $samba4srcdir/setup/tests/blackbox_newuser.sh "$PREFIX/provision"