The FreeBSD guys are doing Linux comparisons with sysbench again. We
should get it automated so we can keep an eye on any regressions.

The following autobench test supports both MySQL and PostgreSQL. We
default to the read/write OLTP workload but the control example uses the
read only workload - its what the FreeBSD comparisons are using.

Signed-off-by: Anton Blanchard <anton@samba.org>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@868 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/client/tests/sysbench/control b/client/tests/sysbench/control
new file mode 100644
index 0000000..1bc0305
--- /dev/null
+++ b/client/tests/sysbench/control
@@ -0,0 +1,11 @@
+build = 1
+for threads in range(1, count_cpus()+1):
+	job.run_test('sysbench', db_type='pgsql', build=build, \
+		num_threads=threads, read_only=1, tag='pgsql.' + str(threads))
+	build = 0
+
+build = 1
+for threads in range(1, count_cpus()+1):
+	job.run_test('sysbench', db_type='mysql', build=build, \
+		num_threads=threads, read_only=1, tag='mysql.' + str(threads))
+	build = 0