mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
e908873757
This runs a selection of subunit tests and reduces the output to only the time it takes to run each test. The tests are listed in selftest/perf_tests.py. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz>
27 lines
989 B
Python
27 lines
989 B
Python
#!/usr/bin/python
|
|
|
|
# This script generates a list of testsuites that should be run to
|
|
# test Samba performance.
|
|
#
|
|
# These tests are not intended to exercise aspect of Samba, but
|
|
# perform common simple functions or to ascertain performance.
|
|
#
|
|
|
|
# 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 *
|
|
|
|
samba4srcdir = source4dir()
|
|
samba4bindir = bindir()
|
|
|
|
plantestsuite_loadlist("samba4.ldap.ad_dc_performance.python(ad_dc_ntvfs)",
|
|
"ad_dc_ntvfs",
|
|
[python, os.path.join(samba4srcdir,
|
|
"dsdb/tests/python/ad_dc_performance.py"),
|
|
'$SERVER', '-U"$USERNAME%$PASSWORD"',
|
|
'--workgroup=$DOMAIN',
|
|
'$LOADLIST', '$LISTOPT'])
|