autotest: Deprecate suites directory, add suite for memory tests.
Introduce a new directory, site_tests/sequences
site_tests/suites is misleading, users are confused it with test_suites directory.
Add control file for memory qual test suite, users can call as hostless job.
BUG=chromium:398686,chrome-os-partner:33233
TEST=Check the files in sequence are build in autotest package:
equery-stumpy_moblab b control.memory_qual
* Searching for control.memory_qual ...
chromeos-base/autotest-server-9999
(/autotest/server/site_tests/sequences/control.memory_qual)
CQ-DEPEND=CL:231544
Build a trybot: trybot-falco-release/R41-6531.0.0-b276
Run test_suites:hardware_storagequal_quick
(http://100.96.49.152/afe/#tab_id=view_job&object_id=24)
Check the proper tests from sequence directory are run.
Check /mnt/moblab/static/.../autotest/test_suites/suite_to_control_file_map
is correct.
Run test_suites/control.hardware_memoryqual_quick as a hostless job.
Verify memory_qual.quick control file is scheduled properly.
http://100.96.49.74/afe/#tab_id=view_job&object_id=12
Change-Id: I696843b10b1910de79c31a9de63c8b9d525728dc
Signed-off-by: Gwendal Grignou <gwendal@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/231472
diff --git a/test_suites/control.hardware_memoryqual b/test_suites/control.hardware_memoryqual
new file mode 100644
index 0000000..96bacb1
--- /dev/null
+++ b/test_suites/control.hardware_memoryqual
@@ -0,0 +1,36 @@
+# Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+AUTHOR = 'gwendal'
+NAME = 'memory_qual'
+TIME = 'LENGTHY'
+TEST_CATEGORY = 'General'
+TEST_CLASS = 'suite'
+TEST_TYPE = 'Server'
+
+DOC = """
+This dynamic suite runs the memory qualification tests.
+
+@param build: The name of the image to test.
+ Ex: x86-mario-release/R17-1412.33.0-a1-b29
+@param board: The board to test on. Ex: x86-mario
+@param pool: The pool of machines to utilize for scheduling. If pool=None
+ board is used.
+@param check_hosts: require appropriate live hosts to exist in the lab.
+@param SKIP_IMAGE: (optional) If present and True, don't re-image devices.
+@param file_bugs: If True your suite will file bugs on failures.
+"""
+
+import common
+from autotest_lib.server.cros import provision
+from autotest_lib.server.cros.dynamic_suite import dynamic_suite
+
+dynamic_suite.reimage_and_run(
+ build=build, board=board, name=NAME, job=job, pool=pool,
+ check_hosts=check_hosts, add_experimental=True, num=num,
+ file_bugs=file_bugs, skip_reimage=dynamic_suite.skip_reimage(globals()),
+ devserver_url=devserver_url, timeout_mins=timeout_mins,
+ max_runtime_mins=max_runtime_mins,
+ version_prefix=provision.CROS_VERSION_PREFIX,
+ wait_for_results=wait_for_results, job_retry=job_retry)