2012-09-27 20:41:32 +04:00
#!/usr/bin/python
# This script generates a list of testsuites that should be run as part of
2012-10-05 13:39:34 +04:00
# the Samba test suite.
2012-09-27 20:41:32 +04:00
# The output of this script is parsed by selftest.pl, which then decides
# which of the tests to actually run. It will, for example, skip all tests
# listed in selftest/skip or only run a subset during "make quicktest".
2012-10-05 13:39:34 +04:00
# The idea is that this script outputs all of the tests of Samba, not
2012-09-27 20:41:32 +04:00
# just those that are known to pass, and list those that should be skipped
# or are known to fail in selftest/skip or selftest/knownfail. This makes it
2012-10-05 13:39:34 +04:00
# very easy to see what functionality is still missing in Samba and makes
# it possible to run the testsuite against other servers, such as
2012-09-27 20:41:32 +04:00
# Windows that have a different set of features.
# The syntax for a testsuite is "-- TEST --" on a single line, followed
# by the name of the test, the environment it needs and the command to run, all
# three separated by newlines. All other lines in the output are considered
# comments.
from selftesthelpers import *
2013-05-06 02:37:58 +04:00
try :
config_h = os . environ [ " CONFIG_H " ]
except KeyError :
config_h = os . path . join ( samba4bindir , " default/include/config.h " )
# define here var to check what we support
f = open ( config_h , ' r ' )
try :
have_man_pages_support = ( " XSLTPROC_MANPAGES 1 " in f . read ( ) )
finally :
f . close ( )
2012-09-27 20:41:32 +04:00
planpythontestsuite ( " none " , " samba.tests.source " )
2013-05-06 02:37:58 +04:00
if have_man_pages_support :
planpythontestsuite ( " none " , " samba.tests.docs " )
2012-10-05 13:46:25 +04:00
planpythontestsuite ( " none " , " selftest.tests.test_suite " , extra_path = [ srcdir ( ) ] )
2014-11-02 01:57:35 +03:00
try :
import testscenarios
except ImportError :
skiptestsuite ( " subunit " , " testscenarios not available " )
else :
planpythontestsuite ( " none " , " subunit.tests.test_suite " )
2012-10-05 13:51:37 +04:00
planpythontestsuite ( " none " , " samba.tests.blackbox.ndrdump " )
planpythontestsuite ( " none " , " api " , name = " ldb.python " , extra_path = [ ' lib/ldb/tests/python ' ] )
planpythontestsuite ( " none " , " samba.tests.credentials " )
planpythontestsuite ( " none " , " samba.tests.registry " )
planpythontestsuite ( " none " , " samba.tests.auth " )
2016-01-22 01:35:03 +03:00
planpythontestsuite ( " none " , " samba.tests.get_opt " )
2012-10-05 13:51:37 +04:00
planpythontestsuite ( " none " , " samba.tests.security " )
planpythontestsuite ( " none " , " samba.tests.dcerpc.misc " )
2015-07-30 05:29:54 +03:00
planpythontestsuite ( " none " , " samba.tests.dcerpc.integer " )
2012-10-05 13:51:37 +04:00
planpythontestsuite ( " none " , " samba.tests.param " )
planpythontestsuite ( " none " , " samba.tests.upgrade " )
planpythontestsuite ( " none " , " samba.tests.core " )
planpythontestsuite ( " none " , " samba.tests.provision " )
planpythontestsuite ( " none " , " samba.tests.samba3 " )
planpythontestsuite ( " none " , " samba.tests.strings " )
planpythontestsuite ( " none " , " samba.tests.netcmd " )
planpythontestsuite ( " none " , " samba.tests.dcerpc.rpc_talloc " )
planpythontestsuite ( " none " , " samba.tests.hostconfig " )
2015-03-06 01:38:26 +03:00
planpythontestsuite ( " ad_dc_ntvfs:local " , " samba.tests.messaging " )
2012-10-05 13:51:37 +04:00
planpythontestsuite ( " none " , " samba.tests.samba3sam " )
2014-06-02 04:53:01 +04:00
planpythontestsuite (
" none " , " wafsamba.tests.test_suite " ,
extra_path = [ os . path . join ( samba4srcdir , " .. " , " buildtools " ) ,
2015-03-25 14:13:40 +03:00
os . path . join ( samba4srcdir , " .. " , " third_party " , " waf " , " wafadmin " ) ] )
2015-10-23 05:38:23 +03:00
plantestsuite (
" samba4.blackbox.demote-saveddb " , " none " ,
[ " PYTHON= %s " % python , os . path . join ( bbdir , " demote-saveddb.sh " ) ,
' $PREFIX_ABS/demote ' , configuration ] )
2014-06-02 04:53:01 +04:00
plantestsuite (
" samba4.blackbox.dbcheck.alpha13 " , " none " ,
[ " PYTHON= %s " % python , os . path . join ( bbdir , " dbcheck-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' alpha13 ' , configuration ] )
plantestsuite (
" samba4.blackbox.dbcheck.release-4-0-0 " , " none " ,
[ " PYTHON= %s " % python , os . path . join ( bbdir , " dbcheck-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' release-4-0-0 ' , configuration ] )
plantestsuite (
" samba4.blackbox.dbcheck.release-4-1-0rc3 " , " none " ,
[ " PYTHON= %s " % python , os . path . join ( bbdir , " dbcheck-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' release-4-1-0rc3 ' , configuration ] )
plantestsuite (
" samba4.blackbox.dbcheck.release-4-1-6-partial-object " , " none " ,
[ " PYTHON= %s " % python , os . path . join ( bbdir , " dbcheck-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' release-4-1-6-partial-object ' , configuration ] )
plantestsuite (
" samba4.blackbox.upgradeprovision.alpha13 " , " none " ,
[ " PYTHON= %s " % python ,
os . path . join ( bbdir , " upgradeprovision-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' alpha13 ' , configuration ] )
plantestsuite (
" samba4.blackbox.upgradeprovision.release-4-0-0 " , " none " ,
[ " PYTHON= %s " % python ,
os . path . join ( bbdir , " upgradeprovision-oldrelease.sh " ) ,
' $PREFIX_ABS/provision ' , ' release-4-0-0 ' , configuration ] )
2012-10-05 13:51:37 +04:00
planpythontestsuite ( " none " , " samba.tests.upgradeprovision " )
planpythontestsuite ( " none " , " samba.tests.xattr " )
planpythontestsuite ( " none " , " samba.tests.ntacls " )
planpythontestsuite ( " none " , " samba.tests.policy " )
2015-05-06 02:20:28 +03:00
planpythontestsuite ( " none " , " samba.tests.kcc.graph " )
2015-04-30 05:33:30 +03:00
planpythontestsuite ( " none " , " samba.tests.kcc.graph_utils " )
2015-05-05 02:26:42 +03:00
planpythontestsuite ( " none " , " samba.tests.kcc.kcc_utils " )
2015-04-30 05:33:30 +03:00
planpythontestsuite ( " none " , " samba.tests.kcc.ldif_import_export " )
2014-10-13 04:48:10 +04:00
plantestsuite ( " wafsamba.duplicate_symbols " , " none " , [ os . path . join ( srcdir ( ) , " buildtools/wafsamba/test_duplicate_symbol.sh " ) ] )