3 # This script generates a list of testsuites that should be run to
4 # test Samba performance.
6 # These tests are not intended to exercise aspect of Samba, but
7 # perform common simple functions or to ascertain performance.
10 # The syntax for a testsuite is "-- TEST --" on a single line, followed
11 # by the name of the test, the environment it needs and the command to run, all
12 # three separated by newlines. All other lines in the output are considered
16 from selftesthelpers
import source4dir
, bindir
, python
, plantestsuite_loadlist
18 samba4srcdir
= source4dir()
19 samba4bindir
= bindir()
21 plantestsuite_loadlist("samba4.ldap.ad_dc_performance.python(ad_dc_ntvfs)",
23 [python
, os
.path
.join(samba4srcdir
,
24 "dsdb/tests/python/ad_dc_performance.py"),
25 '$SERVER', '-U"$USERNAME%$PASSWORD"',
26 '--workgroup=$DOMAIN',
27 '$LOADLIST', '$LISTOPT'])
29 plantestsuite_loadlist("samba4.ndr_pack_performance.python(ad_dc_ntvfs)",
31 [python
, os
.path
.join(samba4srcdir
,
32 "dsdb/tests/python/ndr_pack_performance.py"),
33 '$SERVER', '-U"$USERNAME%$PASSWORD"',
34 '--workgroup=$DOMAIN',
35 '$LOADLIST', '$LISTOPT'])
37 plantestsuite_loadlist("samba4.provision_performance.python(ad_dc_ntvfs)",
39 [python
, os
.path
.join(samba4srcdir
,
40 "dsdb/tests/python/ad_dc_provision_performance.py"),
41 '$SERVER', '-U"$USERNAME%$PASSWORD"',
42 '--workgroup=$DOMAIN',
43 '$LOADLIST', '$LISTOPT'])
45 plantestsuite_loadlist("samba4.ldap.ad_dc_search_performance.python(ad_dc_ntvfs)",
48 os
.path
.join(samba4srcdir
,
49 "dsdb/tests/python/ad_dc_search_performance.py"),
50 '$SERVER', '-U"$USERNAME%$PASSWORD"',
51 '--workgroup=$DOMAIN',
52 '$LOADLIST', '$LISTOPT'])
54 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.ntlm.python(ad_dc_ntvfs)",
56 [python
, os
.path
.join(samba4srcdir
,
57 "dsdb/tests/python/ad_dc_multi_bind.py"),
58 '$SERVER', '-U"$USERNAME%$PASSWORD"', '-k no',
59 '--workgroup=$DOMAIN',
60 '$LOADLIST', '$LISTOPT'])
62 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.krb5.python(ad_dc_ntvfs)",
64 [python
, os
.path
.join(samba4srcdir
,
65 "dsdb/tests/python/ad_dc_multi_bind.py"),
66 '$SERVER', '-U"$USERNAME%$PASSWORD"', '-k yes',
68 '$LOADLIST', '$LISTOPT'])
70 plantestsuite_loadlist("samba4.ldb.multi_connect.python(ad_dc_ntvfs)",
72 [python
, os
.path
.join(samba4srcdir
,
73 "dsdb/tests/python/ad_dc_multi_bind.py"),
74 'tdb://$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb'
75 '$LOADLIST', '$LISTOPT'])
77 plantestsuite_loadlist("samba4.ldap.vlv.python(ad_dc_ntvfs)", "ad_dc_ntvfs",
79 os
.path
.join(samba4srcdir
, "dsdb/tests/python/vlv.py"),
80 '$SERVER', '-U"$USERNAME%$PASSWORD"',
81 '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
83 # this one doesn't tidy itself up fully, so leave it as last unless
84 # you want a messy database.
85 plantestsuite_loadlist("samba4.ldap.ad_dc_medley_performance.python(ad_dc_ntvfs)",
88 os
.path
.join(samba4srcdir
,
89 "dsdb/tests/python/ad_dc_medley_performance.py"),
90 '$SERVER', '-U"$USERNAME%$PASSWORD"',
91 '--workgroup=$DOMAIN',
92 '$LOADLIST', '$LISTOPT'])
94 # again with paged search module
95 plantestsuite_loadlist("samba4.ldap.ad_dc_performance.paged_search."+\
96 "python(ad_dc_ntvfs)",
99 os
.path
.join(samba4srcdir
,
100 "dsdb/tests/python/ad_dc_medley_performance.py"),
101 '$SERVER', '-U"$USERNAME%$PASSWORD"',
102 '--workgroup=$DOMAIN',
103 '--use-paged-search',
104 '$LOADLIST', '$LISTOPT'])