[autotest] Seed ATTRIBUTES in all control files in autotest
The SUITE tag in the control files is being phased out and replaced by
ATTRIBUTES. During the transition period, both SUITE and ATTRIBUTES tags
will coexist, and a pre-upload hook will enforce that they agree with each
other and also ATTRIBUTES are in the attribute whitelist.
BUG=chromium:482749
TEST=Test with the pre-upload hook
Change-Id: I58288ff97c37af0b356115899b0d98e4052bc725
Reviewed-on: https://chromium-review.googlesource.com/269667
Reviewed-by: Shuqian Zhao <shuqianz@chromium.org>
Commit-Queue: Shuqian Zhao <shuqianz@chromium.org>
Trybot-Ready: Shuqian Zhao <shuqianz@chromium.org>
Tested-by: Shuqian Zhao <shuqianz@chromium.org>
diff --git a/client/tests/bonnie/control.kernel_per-build_benchmarks b/client/tests/bonnie/control.kernel_per-build_benchmarks
index e0211d2..3f31ada 100644
--- a/client/tests/bonnie/control.kernel_per-build_benchmarks
+++ b/client/tests/bonnie/control.kernel_per-build_benchmarks
@@ -1,5 +1,6 @@
AUTHOR = "Martin Bligh <mbligh@google.com>"
NAME = "bonnie"
+ATTRIBUTES = "suite:kernel_per-build_benchmarks"
SUITE = "kernel_per-build_benchmarks"
TIME = "MEDIUM"
TEST_CLASS = "Kernel"
diff --git a/client/tests/compilebench/control b/client/tests/compilebench/control
index 76890ae..64fb624 100644
--- a/client/tests/compilebench/control
+++ b/client/tests/compilebench/control
@@ -2,6 +2,7 @@
NAME = "compilebench"
PURPOSE = "Benchmark the filesystem performance."
CRITERIA = "Compilebench is a filesystem performance test."
+ATTRIBUTES = "suite:hwqual, suite:kernel_daily_benchmarks"
SUITE = "kernel_daily_benchmarks, hwqual"
TEST_CATEGORY = "Functional"
TEST_CLASS = "General"
diff --git a/client/tests/crashme/control b/client/tests/crashme/control
index 4c2b483..d3888f7 100644
--- a/client/tests/crashme/control
+++ b/client/tests/crashme/control
@@ -4,6 +4,7 @@
NAME='crashme'
AUTHOR='George J. Carrette'
+ATTRIBUTES = "suite:kernel_per-build_regression"
SUITE = "kernel_per-build_regression"
TEST_CATEGORY='Stress'
TEST_CLASS='Kernel'
diff --git a/client/tests/dbench/control b/client/tests/dbench/control
index 27d901a..098b3d4 100644
--- a/client/tests/dbench/control
+++ b/client/tests/dbench/control
@@ -13,6 +13,7 @@
the higher level I/O systems but barely touches the disk right now.
"""
NAME = 'dbench'
+ATTRIBUTES = "suite:kernel_daily_benchmarks"
SUITE = "kernel_daily_benchmarks"
TEST_CLASS = 'kernel'
TEST_CATEGORY = 'Functional'
diff --git a/client/tests/ddtest/control b/client/tests/ddtest/control
index e430ba9..01ef79b 100644
--- a/client/tests/ddtest/control
+++ b/client/tests/ddtest/control
@@ -5,6 +5,7 @@
the entire operation. Intended to detect basic performance regressions
in disk writes.
'''
+ATTRIBUTES = "suite:kernel_daily_benchmarks"
SUITE = "kernel_daily_benchmarks"
TIME = 'SHORT'
TEST_CLASS = 'kernel'
diff --git a/client/tests/disktest/control b/client/tests/disktest/control
index c9cfb17..808b256 100644
--- a/client/tests/disktest/control
+++ b/client/tests/disktest/control
@@ -12,6 +12,7 @@
It writes 50MB/s of 500KB size ops.
'''
+ATTRIBUTES = "suite:hwqual"
SUITE = 'hwqual'
TIME = 'MEDIUM'
TEST_CATEGORY = 'Kernel'
diff --git a/client/tests/flaky_test/control b/client/tests/flaky_test/control
index 662a427..299d45a 100644
--- a/client/tests/flaky_test/control
+++ b/client/tests/flaky_test/control
@@ -4,6 +4,7 @@
TEST_CATEGORY = 'Functional'
TEST_CLASS = 'General'
TEST_TYPE = 'client'
+ATTRIBUTES = "suite:dummyflake"
SUITE = 'dummyflake'
RETRIES = 2
diff --git a/client/tests/flaky_test/control.noretry b/client/tests/flaky_test/control.noretry
index 680ffc8..721c2c5 100644
--- a/client/tests/flaky_test/control.noretry
+++ b/client/tests/flaky_test/control.noretry
@@ -4,6 +4,7 @@
TEST_CATEGORY = 'Functional'
TEST_CLASS = 'General'
TEST_TYPE = 'client'
+ATTRIBUTES = "suite:dummyclientretries, suite:dummyflake"
SUITE = 'dummyflake, dummyclientretries'
diff --git a/client/tests/hackbench/control b/client/tests/hackbench/control
index b58815d..b6f4403 100644
--- a/client/tests/hackbench/control
+++ b/client/tests/hackbench/control
@@ -1,5 +1,6 @@
AUTHOR = "ncrao@google.com (Nikhil Rao)"
NAME = "Hackbench"
+ATTRIBUTES = "suite:kernel_per-build_benchmarks"
SUITE = "kernel_per-build_benchmarks"
TIME = "SHORT"
TEST_CLASS = "Kernel"
diff --git a/client/tests/iozone/control b/client/tests/iozone/control
index 01c75db..4b528ef 100644
--- a/client/tests/iozone/control
+++ b/client/tests/iozone/control
@@ -1,6 +1,7 @@
AUTHOR = "Ying Tao <yingtao@cn.ibm.com>"
TIME = "MEDIUM"
NAME = "IOzone"
+ATTRIBUTES = "suite:kernel_daily_benchmarks"
SUITE = "kernel_daily_benchmarks"
TEST_TYPE = "client"
TEST_CLASS = "Kernel"
diff --git a/client/tests/kernel_sysrq_info/control b/client/tests/kernel_sysrq_info/control
index 150d92d..8929bb5 100644
--- a/client/tests/kernel_sysrq_info/control
+++ b/client/tests/kernel_sysrq_info/control
@@ -5,6 +5,7 @@
AUTHOR = "cernekee"
NAME = "kernel_sysrq_info"
PURPOSE = "Verify the Magic SysRq show-* commands."
+ATTRIBUTES = "suite:kernel_daily_regression"
SUITE = "kernel_daily_regression"
TIME = "FAST"
TEST_TYPE = "client"
diff --git a/client/tests/sound_infrastructure/control b/client/tests/sound_infrastructure/control
index 8dce54e..6d77959 100644
--- a/client/tests/sound_infrastructure/control
+++ b/client/tests/sound_infrastructure/control
@@ -6,6 +6,7 @@
AUTHOR = "dgreid"
PURPOSE = "Ensure minimal sound devices are present."
CRITERIA = "Pass if files exist."
+ATTRIBUTES = "suite:kernel_per-build_regression"
SUITE = "kernel_per-build_regression"
TIME = "SHORT"
TEST_CATEGORY = "Functional"
diff --git a/client/tests/unixbench/control b/client/tests/unixbench/control
index 7ca29a5..c029b0c 100644
--- a/client/tests/unixbench/control
+++ b/client/tests/unixbench/control
@@ -3,6 +3,7 @@
TIME = 'MEDIUM'
PURPOSE = 'Measure system level performance.'
CRITERIA = 'This test is a benchmark.'
+ATTRIBUTES = "suite:hwqual"
SUITE = "hwqual"
TEST_CLASS = 'Kernel'
TEST_CATEGORY = 'Benchmark'