Index: client/samples/control.parallel |
diff --git a/client/samples/control.parallel b/client/samples/control.parallel |
new file mode 100644 |
index 0000000000000000000000000000000000000000..47a5ac9ca0fc4d4a3b8a7e4590e1f7e78bcdb8e1 |
--- /dev/null |
+++ b/client/samples/control.parallel |
@@ -0,0 +1,20 @@ |
+AUTHOR = "Autotest Team <autotest@test.kernel.org>" |
+TIME = "SHORT" |
+NAME = "Sample - Parallel test execution" |
+TEST_TYPE = "client" |
+TEST_CLASS = "Kernel" |
+TEST_CATEGORY = "Functional" |
+ |
+DOC = """ |
+Runs 2 client tests in parallel, with different options. |
+""" |
+ |
+def kernbench(): |
+ job.run_test('kernbench', iterations=2, threads=5) |
+ |
+ |
+def dbench(): |
+ job.run_test('dbench') |
+ |
+ |
+job.parallel([kernbench], [dbench]) |