summaryrefslogtreecommitdiff
path: root/source4/torture/raw/raw.c
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2008-05-20 10:54:45 -0700
committerJames Peach <jpeach@apple.com>2008-05-20 11:35:32 -0700
commit9a975a868e949e61cb011422363cd07b4ec0ce43 (patch)
treeecaa845c4f7b3f6b7be392ae51e04e6b72c6a016 /source4/torture/raw/raw.c
parent276fa76fa98355cc09dad4d069fd64d0be7f8655 (diff)
downloadsamba-9a975a868e949e61cb011422363cd07b4ec0ce43.tar.gz
samba-9a975a868e949e61cb011422363cd07b4ec0ce43.tar.bz2
samba-9a975a868e949e61cb011422363cd07b4ec0ce43.zip
smbtorture: Add RAW-BENCH-TCON benchmark.
Add a simple test to benchmark the rate at which a server can accept new tree connections. You can tune the length of time to run the benchmark for and the number of parallel connections to make. (This used to be commit ea3f4b93057e85c4ea516cc77dd0f293016d520c)
Diffstat (limited to 'source4/torture/raw/raw.c')
-rw-r--r--source4/torture/raw/raw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source4/torture/raw/raw.c b/source4/torture/raw/raw.c
index c6133081b0..0a7fc3ebfd 100644
--- a/source4/torture/raw/raw.c
+++ b/source4/torture/raw/raw.c
@@ -35,6 +35,8 @@ NTSTATUS torture_raw_init(void)
torture_suite_add_simple_test(suite, "BENCH-OPEN", torture_bench_open);
torture_suite_add_simple_test(suite, "BENCH-LOOKUP",
torture_bench_lookup);
+ torture_suite_add_simple_test(suite, "BENCH-TCON",
+ torture_bench_treeconnect);
torture_suite_add_simple_test(suite, "OFFLINE", torture_test_offline);
torture_suite_add_1smb_test(suite, "QFSINFO", torture_raw_qfsinfo);
torture_suite_add_1smb_test(suite, "QFILEINFO", torture_raw_qfileinfo);