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
37 if [ "$env" = "none" ]; then
40 echo "samba4.$name ($env)"
50 # FIXME: Report this using subunit, but re-adjust the testsuite count somehow
51 echo "skipping $name ($reason)"
54 normalize_testname
() {
57 echo $name |
tr "A-Z-" "a-z."
65 if $PERL -e 'eval require Test::More;' > /dev
/null
2>&1; then
66 plantest
"$name" "$env" $PERL $cmdline "|" $TAP2SUBUNIT
68 skiptestsuite
"$name" "Test::More not available"
72 plansmbtorturetest
() {
77 modname
=`normalize_testname $name`
78 cmdline
="$VALGRIND $smb4torture $other_args $name"
79 plantest
"$modname" "$env" $cmdline
82 samba4srcdir
="`dirname $0`/.."
83 samba4bindir
="$BUILDDIR/bin"
84 smb4torture
="$samba4bindir/smbtorture${EXEEXT}"
85 if which tap2subunit
2>/dev
/null
; then
86 TAP2SUBUNIT
=tap2subunit
88 TAP2SUBUNIT
="$PERL $samba4srcdir/../lib/subunit/tap2subunit"
92 bbdir
=..
/testprogs
/blackbox
94 prefix_abs
="$SELFTEST_PREFIX/s4client"
95 CONFIGURATION
="--configfile=\$SMB_CONF_PATH"
97 test -d "$prefix_abs" || mkdir
"$prefix_abs"
100 TORTURE_OPTIONS
="$TORTURE_OPTIONS $CONFIGURATION"
101 TORTURE_OPTIONS
="$TORTURE_OPTIONS --maximum-runtime=$SELFTEST_MAXTIME"
102 TORTURE_OPTIONS
="$TORTURE_OPTIONS --target=$SELFTEST_TARGET"
103 TORTURE_OPTIONS
="$TORTURE_OPTIONS --basedir=$prefix_abs"
104 if [ -n "$SELFTEST_VERBOSE" ]; then
105 TORTURE_OPTIONS
="$TORTURE_OPTIONS --option=torture:progress=no"
107 TORTURE_OPTIONS
="$TORTURE_OPTIONS --format=subunit"
108 if [ -n "$SELFTEST_QUICK" ]; then
109 TORTURE_OPTIONS
="$TORTURE_OPTIONS --option=torture:quick=yes"
111 smb4torture
="$smb4torture $TORTURE_OPTIONS"
113 echo "OPTIONS $TORTURE_OPTIONS"
115 # Simple tests for LDAP and CLDAP
117 for options
in "" "--option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD --option=socket:testnonblock=true" "-U\$USERNAME%\$PASSWORD"; do
118 plantest
"ldb.ldap with options $options" dc $bbdir/test_ldb.sh ldap \
$SERVER_IP $options
120 # see if we support ldaps
121 if grep ENABLE_GNUTLS
.1 include
/config.h
> /dev
/null
; then
122 for options
in "" "-U\$USERNAME%\$PASSWORD"; do
123 plantest
"ldb.ldaps with options $options" dc $bbdir/test_ldb.sh ldaps \
$SERVER_IP $options
126 plantest
"ldb.ldapi with options $options" dc $bbdir/test_ldb.sh ldapi \
$PREFIX_ABS/dc
/private
/ldapi
$options
127 for t
in `$smb4torture --list | grep "^LDAP-"`
129 plansmbtorturetest
"$t" dc "-U\$USERNAME%\$PASSWORD" //\
$SERVER_IP/_none_
132 # only do the ldb tests when not in quick mode - they are quite slow, and ldb
133 # is now pretty well tested by the rest of the quick tests anyway
134 LDBDIR
=$samba4srcdir/lib
/ldb
136 # Don't run LDB tests when using system ldb, as we won't have ldbtest installed
137 if [ -f $samba4bindir/ldbtest
]; then
138 plantest
"ldb" none TEST_DATA_PREFIX
=\
$PREFIX $LDBDIR/tests
/test-tdb.sh
140 skiptestsuite
"ldb" "Using system LDB, ldbtest not available"
145 # add tests to this list as they start passing, so we test
146 # that they stay passing
147 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"
148 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"
149 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"
150 slow_ncacn_np_tests
="RPC-SAMLOGON RPC-SAMR RPC-SAMR-USERS RPC-SAMR-LARGE-DC RPC-SAMR-USERS-PRIVILEGES RPC-SAMR-PASSWORDS RPC-SAMR-PASSWORDS-PWDLASTSET"
151 slow_ncalrpc_tests
="RPC-SAMR RPC-SAMR-PASSWORDS"
152 slow_ncacn_ip_tcp_tests
="RPC-SAMR RPC-SAMR-PASSWORDS RPC-CRACKNAMES"
154 all_tests
="$ncalrpc_tests $ncacn_np_tests $ncacn_ip_tcp_tests $slow_ncalrpc_tests $slow_ncacn_np_tests $slow_ncacn_ip_tcp_tests RPC-LSA-SECRETS RPC-SAMBA3-SHARESEC RPC-COUNTCALLS"
156 # Make sure all tests get run
157 for t
in `$smb4torture --list | grep "^RPC-"`
159 echo $all_tests |
grep "$t" > /dev
/null
162 auto_rpc_tests
="$auto_rpc_tests $t"
166 for bindoptions
in seal
,padcheck
$VALIDATE bigendian
; do
167 for transport
in ncalrpc ncacn_np ncacn_ip_tcp
; do
170 ncalrpc
) tests
=$ncalrpc_tests;env
="dc:local" ;;
171 ncacn_np
) tests
=$ncacn_np_tests ;;
172 ncacn_ip_tcp
) tests
=$ncacn_ip_tcp_tests ;;
175 plantest
"`normalize_testname $t` on $transport with $bindoptions" $env $VALGRIND $smb4torture $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN $t "$*"
177 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
"$*"
181 for bindoptions
in "" $VALIDATE bigendian
; do
182 for t
in $auto_rpc_tests; do
183 plantest
"`normalize_testname $t` with $bindoptions" dc $VALGRIND $smb4torture "\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN $t "$*"
188 plantest
"`normalize_testname $t`" dc:local $VALGRIND $smb4torture "\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN $t "$*"
190 for bindoptions
in connect
$VALIDATE ; do
191 for transport
in ncalrpc ncacn_np ncacn_ip_tcp
; do
194 ncalrpc
) tests
=$slow_ncalrpc_tests; env
="dc:local" ;;
195 ncacn_np
) tests
=$slow_ncacn_np_tests ;;
196 ncacn_ip_tcp
) tests
=$slow_ncacn_ip_tcp_tests ;;
199 plantest
"`normalize_testname $t` on $transport with $bindoptions" $env $VALGRIND $smb4torture $transport:"\$SERVER[$bindoptions]" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN $t "$*"
205 # Tests for the NET API
207 net
=`$smb4torture --list | grep "^NET-"`
210 plansmbtorturetest
"$t" dc "\$SERVER[$VALIDATE]" -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" "$*"
213 # Tests for session keys
214 # FIXME: Integrate these into a single smbtorture test
219 "-k no --option=usespnego=yes" \
220 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no" \
221 "-k no --option=usespnego=yes --option=ntlmssp_client:56bit=yes" \
222 "-k no --option=usespnego=yes --option=ntlmssp_client:56bit=no" \
223 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes" \
224 "-k no --option=usespnego=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=no" \
225 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes" \
226 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no" \
227 "-k no --option=usespnego=yes --option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:56bit=yes" \
228 "-k no --option=usespnego=no --option=clientntlmv2auth=yes" \
229 "-k no --option=gensec:spnego=no --option=clientntlmv2auth=yes" \
230 "-k no --option=usespnego=no"; do
231 name
="rpc.lsa.secrets on $transport with $bindoptions with $ntlmoptions"
232 plantest
"$name" dc $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN --option=gensec
:target_hostname
=\
$NETBIOSNAME RPC-LSA-SECRETS
"$*"
234 plantest
"rpc.lsa.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-LSA-SECRETS
"$*"
235 plantest
"rpc.lsa.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-LSA-SECRETS
"$*"
236 plantest
"rpc.lsa.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-LSA-SECRETS-none*" "$*"
237 plantest
"rpc.lsa.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-LSA-SECRETS-none*" "$*"
240 transports
="ncacn_np ncacn_ip_tcp ncalrpc"
242 for transport
in $transports; do
243 for bindoptions
in connect spnego spnego
,sign spnego
,seal
$VALIDATE padcheck bigendian bigendian
,seal
; do
245 "--option=socket:testnonblock=True --option=torture:quick=yes"; do
247 if test x
"$transport" = x
"ncalrpc"; then
250 plantest
"rpc.echo on $transport with $bindoptions and $ntlmoptions" $env $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W "\$DOMAIN" RPC-ECHO
"$*"
255 for transport
in $transports; do
256 for bindoptions
in sign seal
; do
258 "--option=ntlmssp_client:ntlm2=yes --option=torture:quick=yes" \
259 "--option=ntlmssp_client:ntlm2=no --option=torture:quick=yes" \
260 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:128bit=no --option=torture:quick=yes" \
261 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:128bit=no --option=torture:quick=yes" \
262 "--option=ntlmssp_client:ntlm2=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
263 "--option=ntlmssp_client:ntlm2=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
264 "--option=clientntlmv2auth=yes --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
265 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=yes --option=torture:quick=yes" \
266 "--option=clientntlmv2auth=yes --option=ntlmssp_client:128bit=no --option=ntlmssp_client:keyexchange=no --option=torture:quick=yes" \
269 if test x
"$transport" = x
"ncalrpc"; then
272 plantest
"rpc.echo on $transport with $bindoptions and $ntlmoptions" $env $smb4torture $transport:"\$SERVER[$bindoptions]" $ntlmoptions -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN RPC-ECHO
"$*"
277 plantest
"rpc.echo on ncacn_np over smb2" dc $smb4torture ncacn_np
:"\$SERVER[smb2]" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN RPC-ECHO
"$*"
279 plantest
"ntp.signd" dc $smb4torture ncacn_np
:"\$SERVER" -U"\$USERNAME"%"\$PASSWORD" -W \
$DOMAIN NTP-SIGND
"$*" --configfile=st
/dc
/etc
/smb.conf
281 # Tests against the NTVFS POSIX backend
283 NTVFSARGS
="${NTVFSARGS} --option=torture:sharedelay=100000"
284 NTVFSARGS
="${NTVFSARGS} --option=torture:oplocktimeout=3"
285 NTVFSARGS
="${NTVFSARGS} --option=torture:writetimeupdatedelay=500000"
287 smb2
=`$smb4torture --list | grep "^SMB2-" | xargs`
288 #The QFILEINFO-IPC test needs to be on ipc$
289 raw
=`$smb4torture --list | grep "^RAW-" | grep -v "RAW-QFILEINFO-IPC"| xargs`
290 base
=`$smb4torture --list | grep "^BASE-" | xargs`
292 for t
in $base $raw $smb2; do
293 plansmbtorturetest
"$t" dc $ADDARGS //\
$SERVER/tmp
-U"\$USERNAME"%"\$PASSWORD" $NTVFSARGS
296 plansmbtorturetest
"RAW-QFILEINFO-IPC" dc $ADDARGS //\
$SERVER/ipc$
-U"\$USERNAME"%"\$PASSWORD"
298 rap
=`$smb4torture --list | grep "^RAP-" | xargs`
300 plansmbtorturetest
"$t" dc $ADDARGS //\
$SERVER/IPC
\\\$
-U"\$USERNAME"%"\$PASSWORD"
303 # Tests against the NTVFS CIFS backend
304 for t
in $base $raw; do
305 plantest
"ntvfs.cifs.`normalize_testname $t`" dc $VALGRIND $smb4torture //\
$NETBIOSNAME/cifs
-U"\$USERNAME"%"\$PASSWORD" $NTVFSARGS $t
310 for t
in `$smb4torture --list | grep "^LOCAL-" | xargs`; do
311 plansmbtorturetest
"$t" none ncalrpc
: "$*"
314 tdbtorture4
="$samba4bindir/tdbtorture${EXEEXT}"
315 if test -f $tdbtorture4
317 plantest
"tdb.stress" none
$VALGRIND $tdbtorture4
319 skiptestsuite
"tdb.stress" "Using system TDB, tdbtorture not available"
324 for f
in $samba4srcdir/..
/pidl
/tests
/*.pl
; do
325 planperltest
"pidl.`basename $f .pl`" none
$f
327 planperltest
"selftest.samba4.pl" none
$samba4srcdir/..
/selftest
/test_samba4.pl
330 # tests that interact directly with the command-line tools rather than using
331 # the API. These mainly test that the various command-line options of commands
334 plantest
"blackbox.ndrdump" none
$samba4srcdir/librpc
/tests
/test_ndrdump.sh
335 plantest
"blackbox.net" dc $samba4srcdir/utils
/tests
/test_net.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"
336 plantest
"blackbox.kinit" dc $bbdir/test_kinit.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" $CONFIGURATION
337 plantest
"blackbox.passwords" dc $bbdir/test_passwords.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$REALM" "\$DOMAIN" "$PREFIX" --configfile=st
/dc
/etc
/smb.conf
338 plantest
"blackbox.export.keytab" dc $bbdir/test_export_keytab.sh
"\$SERVER" "\$USERNAME" "\$REALM" "\$DOMAIN" "$PREFIX" --configfile=st
/dc
/etc
/smb.conf
339 plantest
"blackbox.cifsdd" dc $samba4srcdir/client
/tests
/test_cifsdd.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN"
340 plantest
"blackbox.nmblookup" dc $samba4srcdir/utils
/tests
/test_nmblookup.sh
"\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP"
341 plantest
"blackbox.nmblookup" member
$samba4srcdir/utils
/tests
/test_nmblookup.sh
"\$NETBIOSNAME" "\$NETBIOSALIAS" "\$SERVER" "\$SERVER_IP"
342 plantest
"blackbox.locktest" dc $samba4srcdir/torture
/tests
/test_locktest.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
343 plantest
"blackbox.masktest" dc $samba4srcdir/torture
/tests
/test_masktest.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
344 plantest
"blackbox.gentest" dc $samba4srcdir/torture
/tests
/test_gentest.sh
"\$SERVER" "\$USERNAME" "\$PASSWORD" "\$DOMAIN" "$PREFIX"
345 plantest
"blackbox.wbinfo" dc:local $samba4srcdir/..
/nsswitch
/tests
/test_wbinfo.sh
"\$DOMAIN" "\$USERNAME" "\$PASSWORD" "dc"
346 plantest
"blackbox.wbinfo" member
:local $samba4srcdir/..
/nsswitch
/tests
/test_wbinfo.sh
"\$DOMAIN" "\$DC_USERNAME" "\$DC_PASSWORD" "member"
348 # Tests using the "Simple" NTVFS backend
350 for t
in "BASE-RW1"; do
351 plantest
"ntvfs.simple.`normalize_testname $t`" dc $VALGRIND $smb4torture $ADDARGS //\
$SERVER/simple
-U"\$USERNAME"%"\$PASSWORD" $t
354 # Domain Member Tests
356 plantest
"rpc.echo against member server with local creds" member
$VALGRIND $smb4torture ncacn_np
:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" RPC-ECHO
"$*"
357 plantest
"rpc.echo against member server with domain creds" member
$VALGRIND $smb4torture ncacn_np
:"\$NETBIOSNAME" -U"\$DOMAIN/\$DC_USERNAME"%"\$DC_PASSWORD" RPC-ECHO
"$*"
358 plantest
"rpc.samr against member server with local creds" member
$VALGRIND $smb4torture ncacn_np
:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR" "$*"
359 plantest
"rpc.samr.users against member server with local creds" member
$VALGRIND $smb4torture ncacn_np
:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-USERS" "$*"
360 plantest
"rpc.samr.passwords against member server with local creds" member
$VALGRIND $smb4torture ncacn_np
:"\$NETBIOSNAME" -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" "RPC-SAMR-PASSWORDS" "$*"
361 plantest
"blackbox.smbclient against member server with local creds" member
$samba4srcdir/client
/tests
/test_smbclient.sh
"\$NETBIOSNAME" "\$USERNAME" "\$PASSWORD" "\$NETBIOSNAME" "$PREFIX"
367 "-k no --option=usespnego=no" \
368 "-k no --option=gensec:spengo=no" \
370 "-k yes --option=gensec:fake_gssapi_krb5=yes --option=gensec:gssapi_krb5=no"; do
373 "--signing=required"; do
375 signoptions
="$mech $signing"
376 name
="smb.signing on with $signoptions"
377 plantest
"$name" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
$signoptions -U"\$USERNAME"%"\$PASSWORD" BASE-XCOPY
"$*"
383 "-k no --option=usespnego=no" \
384 "-k no --option=gensec:spengo=no" \
386 "-k yes --option=gensec:fake_gssapi_krb5=yes --option=gensec:gssapi_krb5=no"; do
387 signoptions
="$mech --signing=off"
388 name
="smb.signing on with $signoptions"
389 plantest
"$name domain-creds" member
$VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
$signoptions -U"\$DC_USERNAME"%"\$DC_PASSWORD" BASE-XCOPY
"$*"
393 "-k no --option=usespnego=no" \
394 "-k no --option=gensec:spengo=no"; do
395 signoptions
="$mech --signing=off"
396 name
="smb.signing on with $signoptions"
397 plantest
"$name local-creds" member
$VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
$signoptions -U"\$NETBIOSNAME/\$USERNAME"%"\$PASSWORD" BASE-XCOPY
"$*"
399 plantest
"smb.signing --signing=yes anon" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
-k no
--signing=yes -U% BASE-XCOPY
"$*"
400 plantest
"smb.signing --signing=required anon" dc $VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
-k no
--signing=required
-U% BASE-XCOPY
"$*"
401 plantest
"smb.signing --signing=no anon" member
$VALGRIND $smb4torture //"\$NETBIOSNAME"/tmp
-k no
--signing=no
-U% BASE-XCOPY
"$*"
403 NBT_TESTS
=`$smb4torture --list | grep "^NBT-" | xargs`
405 for t
in $NBT_TESTS; do
406 plansmbtorturetest
"$t" dc //\
$SERVER/_none_
-U\
$USERNAME%\
$PASSWORD
409 WB_OPTS
="--option=\"torture:strict mode=no\""
410 WB_OPTS
="${WB_OPTS} --option=\"torture:timelimit=1\""
411 WB_OPTS
="${WB_OPTS} --option=\"torture:winbindd separator=/\""
412 WB_OPTS
="${WB_OPTS} --option=\"torture:winbindd netbios name=\$SERVER\""
413 WB_OPTS
="${WB_OPTS} --option=\"torture:winbindd netbios domain=\$DOMAIN\""
415 WINBIND_STRUCT_TESTS
=`$smb4torture --list | grep "^WINBIND-STRUCT" | xargs`
416 WINBIND_NDR_TESTS
=`$smb4torture --list | grep "^WINBIND-NDR" | xargs`
417 for env
in dc member
; do
418 for t
in $WINBIND_STRUCT_TESTS; do
419 plansmbtorturetest
$t $env $WB_OPTS //_none_
/_none_
422 for t
in $WINBIND_NDR_TESTS; do
423 plansmbtorturetest
$t $env $WB_OPTS //_none_
/_none_
427 nsstest4
="$samba4bindir/nsstest${EXEEXT}"
430 plantest
"nss.test using winbind" member
$VALGRIND $nsstest4 $samba4bindir/shared
/libnss_winbind.so
433 SUBUNITRUN
="$VALGRIND $PYTHON $samba4srcdir/scripting/bin/subunitrun"
434 plantest
"ldb.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/lib/ldb/tests/python/" $SUBUNITRUN api
435 plantest
"credentials.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/auth/credentials/tests" $SUBUNITRUN bindings
436 plantest
"gensec.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/auth/gensec/tests" $SUBUNITRUN bindings
437 plantest
"registry.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/lib/registry/tests/" $SUBUNITRUN bindings
438 plantest
"tdb.python" none PYTHONPATH
="$PYTHONPATH:../lib/tdb/python/tests" $SUBUNITRUN simple
439 plantest
"auth.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/auth/tests/" $SUBUNITRUN bindings
440 plantest
"security.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/libcli/security/tests" $SUBUNITRUN bindings
441 plantest
"misc.python" none
$SUBUNITRUN samba.tests.dcerpc.misc
442 plantest
"param.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/param/tests" $SUBUNITRUN bindings
443 plantest
"upgrade.python" none
$SUBUNITRUN samba.tests.upgrade
444 plantest
"samba.python" none
$SUBUNITRUN samba.tests
445 plantest
"provision.python" none
$SUBUNITRUN samba.tests.provision
446 plantest
"samba3.python" none
$SUBUNITRUN samba.tests.samba3
447 plantest
"samr.python" dc:local $SUBUNITRUN samba.tests.dcerpc.sam
448 plantest
"dcerpc.bare.python" dc:local $SUBUNITRUN samba.tests.dcerpc.bare
449 plantest
"unixinfo.python" dc:local $SUBUNITRUN samba.tests.dcerpc.unix
450 plantest
"samdb.python" none
$SUBUNITRUN samba.tests.samdb
451 plantest
"shares.python" none
$SUBUNITRUN samba.tests.shares
452 plantest
"messaging.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/lib/messaging/tests" $SUBUNITRUN bindings
453 plantest
"samba3sam.python" none PYTHONPATH
="$PYTHONPATH:$samba4srcdir/dsdb/samdb/ldb_modules/tests" $SUBUNITRUN samba3sam
454 plantest
"subunit.python" none
$SUBUNITRUN subunit
455 plantest
"rpcecho.python" dc:local $SUBUNITRUN samba.tests.dcerpc.rpcecho
456 plantest
"winreg.python" dc:local $SUBUNITRUN -U\
$USERNAME%\
$PASSWORD samba.tests.dcerpc.registry
457 plantest
"ldap.python" dc PYTHONPATH
="$PYTHONPATH:../lib/subunit/python" $PYTHON $samba4srcdir/lib
/ldb
/tests
/python
/ldap.py
$CONFIGURATION \
$SERVER -U\
$USERNAME%\
$PASSWORD -W \
$DOMAIN
458 plantest
"ldap.possibleInferiors.python" dc $PYTHON $samba4srcdir/dsdb
/samdb
/ldb_modules
/tests
/possibleinferiors.py
$CONFIGURATION ldap
://\
$SERVER -U\
$USERNAME%\
$PASSWORD -W \
$DOMAIN
459 plantest
"ldap.secdesc.python" dc PYTHONPATH
="$PYTHONPATH:../lib/subunit/python" $PYTHON $samba4srcdir/lib
/ldb
/tests
/python
/sec_descriptor.py
$CONFIGURATION \
$SERVER -U\
$USERNAME%\
$PASSWORD -W \
$DOMAIN
460 plantest
"blackbox.samba3dump" none
$PYTHON $samba4srcdir/scripting
/bin
/samba3dump
$samba4srcdir/..
/testdata
/samba3
461 rm -rf $PREFIX/upgrade
462 plantest
"blackbox.upgrade" none
$PYTHON $samba4srcdir/setup
/upgrade
$CONFIGURATION --targetdir=$PREFIX/upgrade
$samba4srcdir/..
/testdata
/samba3 ..
/testdata
/samba
3/smb.conf
463 rm -rf $PREFIX/provision
464 mkdir
$PREFIX/provision
465 plantest
"blackbox.provision.py" none PYTHON
="$PYTHON" $samba4srcdir/setup
/tests
/blackbox_provision.sh
"$PREFIX/provision"
466 plantest
"blackbox.provision-backend.py" none PYTHON
="$PYTHON" $samba4srcdir/setup
/tests
/blackbox_provision-backend.sh
"$PREFIX/provision"
467 plantest
"blackbox.setpassword.py" none PYTHON
="$PYTHON" $samba4srcdir/setup
/tests
/blackbox_setpassword.sh
"$PREFIX/provision"
468 plantest
"blackbox.newuser.py" none PYTHON
="$PYTHON" $samba4srcdir/setup
/tests
/blackbox_newuser.sh
"$PREFIX/provision"