winbindd: Fix indentation
[Samba.git] / selftest / perf_tests.py
blob9b4289b69a198b428bee3c0ede2970bd415af5c7
1 #!/usr/bin/python
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
13 # comments.
15 from selftesthelpers import *
17 samba4srcdir = source4dir()
18 samba4bindir = bindir()
20 plantestsuite_loadlist("samba4.ldap.ad_dc_performance.python(ad_dc_ntvfs)",
21 "ad_dc_ntvfs",
22 [python, os.path.join(samba4srcdir,
23 "dsdb/tests/python/ad_dc_performance.py"),
24 '$SERVER', '-U"$USERNAME%$PASSWORD"',
25 '--workgroup=$DOMAIN',
26 '$LOADLIST', '$LISTOPT'])
28 plantestsuite_loadlist("samba4.ndr_pack_performance.python(ad_dc_ntvfs)",
29 "ad_dc_ntvfs",
30 [python, os.path.join(samba4srcdir,
31 "dsdb/tests/python/ndr_pack_performance.py"),
32 '$SERVER', '-U"$USERNAME%$PASSWORD"',
33 '--workgroup=$DOMAIN',
34 '$LOADLIST', '$LISTOPT'])
36 plantestsuite_loadlist("samba4.provision_performance.python(ad_dc_ntvfs)",
37 "ad_dc_ntvfs",
38 [python, os.path.join(samba4srcdir,
39 "dsdb/tests/python/ad_dc_provision_performance.py"),
40 '$SERVER', '-U"$USERNAME%$PASSWORD"',
41 '--workgroup=$DOMAIN',
42 '$LOADLIST', '$LISTOPT'])
44 plantestsuite_loadlist("samba4.ldap.ad_dc_search_performance.python(ad_dc_ntvfs)",
45 "ad_dc_ntvfs",
46 [python,
47 os.path.join(samba4srcdir,
48 "dsdb/tests/python/ad_dc_search_performance.py"),
49 '$SERVER', '-U"$USERNAME%$PASSWORD"',
50 '--workgroup=$DOMAIN',
51 '$LOADLIST', '$LISTOPT'])
53 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.ntlm.python(ad_dc_ntvfs)",
54 "ad_dc_ntvfs",
55 [python, os.path.join(samba4srcdir,
56 "dsdb/tests/python/ad_dc_multi_bind.py"),
57 '$SERVER', '-U"$USERNAME%$PASSWORD"', '-k no',
58 '--workgroup=$DOMAIN',
59 '$LOADLIST', '$LISTOPT'])
61 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.krb5.python(ad_dc_ntvfs)",
62 "ad_dc_ntvfs",
63 [python, os.path.join(samba4srcdir,
64 "dsdb/tests/python/ad_dc_multi_bind.py"),
65 '$SERVER', '-U"$USERNAME%$PASSWORD"', '-k yes',
66 '--realm=$REALM',
67 '$LOADLIST', '$LISTOPT'])
69 plantestsuite_loadlist("samba4.ldb.multi_connect.python(ad_dc_ntvfs)",
70 "ad_dc_ntvfs",
71 [python, os.path.join(samba4srcdir,
72 "dsdb/tests/python/ad_dc_multi_bind.py"),
73 'tdb://$PREFIX_ABS/ad_dc_ntvfs/private/sam.ldb'
74 '$LOADLIST', '$LISTOPT'])
77 # this one doesn't tidy itself up fully, so leave it as last unless
78 # you want a messy database.
79 plantestsuite_loadlist("samba4.ldap.ad_dc_medley_performance.python(ad_dc_ntvfs)",
80 "ad_dc_ntvfs",
81 [python,
82 os.path.join(samba4srcdir,
83 "dsdb/tests/python/ad_dc_medley_performance.py"),
84 '$SERVER', '-U"$USERNAME%$PASSWORD"',
85 '--workgroup=$DOMAIN',
86 '$LOADLIST', '$LISTOPT'])