pyldb: avoid segfault when adding an element with no name
[kai/samba-autobuild/.git] / selftest / perf_tests.py
1 #!/usr/bin/python
2
3 # This script generates a list of testsuites that should be run to
4 # test Samba performance.
5 #
6 # These tests are not intended to exercise aspect of Samba, but
7 # perform common simple functions or to ascertain performance.
8 #
9
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.
14
15 import os
16 from selftesthelpers import source4dir, bindir, python, plantestsuite_loadlist
17
18 samba4srcdir = source4dir()
19 samba4bindir = bindir()
20
21 plantestsuite_loadlist("samba4.ldap.ad_dc_performance.python(ad_dc_ntvfs)",
22                        "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'])
28
29 plantestsuite_loadlist("samba4.ndr_pack_performance.python(ad_dc_ntvfs)",
30                        "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'])
36
37 plantestsuite_loadlist("samba4.provision_performance.python(ad_dc_ntvfs)",
38                        "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'])
44
45 plantestsuite_loadlist("samba4.ldap.ad_dc_search_performance.python(ad_dc_ntvfs)",
46                        "ad_dc_ntvfs",
47                        [python,
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'])
53
54 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.ntlm.python(ad_dc_ntvfs)",
55                        "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'])
61
62 plantestsuite_loadlist("samba4.ldap.ad_dc_multi_bind.krb5.python(ad_dc_ntvfs)",
63                        "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',
67                         '--realm=$REALM',
68                         '$LOADLIST', '$LISTOPT'])
69
70 plantestsuite_loadlist("samba4.ldb.multi_connect.python(ad_dc_ntvfs)",
71                        "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'])
76
77 plantestsuite_loadlist("samba4.ldap.vlv.python(ad_dc_ntvfs)", "ad_dc_ntvfs",
78                        [python,
79                         os.path.join(samba4srcdir, "dsdb/tests/python/vlv.py"),
80                         '$SERVER', '-U"$USERNAME%$PASSWORD"',
81                         '--workgroup=$DOMAIN', '$LOADLIST', '$LISTOPT'])
82
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)",
86                        "ad_dc_ntvfs",
87                        [python,
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'])
93
94 # again with paged search module
95 plantestsuite_loadlist("samba4.ldap.ad_dc_performance.paged_search."+\
96                            "python(ad_dc_ntvfs)",
97                        "ad_dc_ntvfs",
98                        [python,
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'])