selftest: Woraround uid wrapper issues when using bash shell
[Samba.git] / selftest / perf_tests.py
blobbc08075c6d1a9017577030ed695a5eae062b8717
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 import os
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)",
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'])
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'])
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'])
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'])
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'])
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'])
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'])
78 # this one doesn't tidy itself up fully, so leave it as last unless
79 # you want a messy database.
80 plantestsuite_loadlist("samba4.ldap.ad_dc_medley_performance.python(ad_dc_ntvfs)",
81 "ad_dc_ntvfs",
82 [python,
83 os.path.join(samba4srcdir,
84 "dsdb/tests/python/ad_dc_medley_performance.py"),
85 '$SERVER', '-U"$USERNAME%$PASSWORD"',
86 '--workgroup=$DOMAIN',
87 '$LOADLIST', '$LISTOPT'])