tast: Add graphics-igt control files

And remove graphics_igt from graphics_per-build/weekly/nightly.

BUG=b:200168360
TEST=none

Change-Id: I11c0cf07d0bf33cae89e24ddb830e45e586635b8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/3173611
Reviewed-by: Ilja H. Friedel <ihf@chromium.org>
Reviewed-by: Po-Hsien Wang <pwang@chromium.org>
Reviewed-by: Hidehiko Abe <hidehiko@chromium.org>
Tested-by: Mark Yacoub <markyacoub@google.com>
Commit-Queue: Ilja H. Friedel <ihf@chromium.org>
diff --git a/server/site_tests/tast/control.graphics-igt-nightly b/server/site_tests/tast/control.graphics-igt-nightly
new file mode 100644
index 0000000..0444a97
--- /dev/null
+++ b/server/site_tests/tast/control.graphics-igt-nightly
@@ -0,0 +1,37 @@
+# Copyright 2021 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 = 'Chromium OS Display team'
+NAME = 'tast.graphics-igt-nightly'
+TIME = 'MEDIUM'
+TEST_TYPE = 'Server'
+ATTRIBUTES = 'suite:graphics_per-day'
+MAX_RESULT_SIZE_KB = 1024 * 1024
+PY_VERSION = 3
+
+# tast.py uses binaries installed from autotest_server_package.tar.bz2.
+REQUIRE_SSP = True
+
+DOC = '''
+Run the Tast graphics-igt test suite.
+
+Tast is an integration-testing framework analagous to the test-running portion
+of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
+more information.
+
+This test runs igt-gpu-tools against a remote DUT.
+
+See http://go/tast-failures for information about investigating failures.
+'''
+
+def run(machine):
+    host=hosts.create_host(machine)
+    host.reboot()
+    job.run_test('tast',
+                 host=host,
+                 test_exprs=['("group:graphics" && graphics_nightly && graphics_igt)'],
+                 ignore_test_failures=True, max_run_sec=21600,
+                 command_args=args)
+
+parallel_simple(run, machines)
diff --git a/server/site_tests/tast/control.graphics-igt-perbuild b/server/site_tests/tast/control.graphics-igt-perbuild
new file mode 100644
index 0000000..e297575
--- /dev/null
+++ b/server/site_tests/tast/control.graphics-igt-perbuild
@@ -0,0 +1,37 @@
+# Copyright 2021 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 = 'Chromium OS Display team'
+NAME = 'tast.graphics-igt-nightly'
+TIME = 'MEDIUM'
+TEST_TYPE = 'Server'
+ATTRIBUTES = 'suite:graphics_per-build'
+MAX_RESULT_SIZE_KB = 1024 * 1024
+PY_VERSION = 3
+
+# tast.py uses binaries installed from autotest_server_package.tar.bz2.
+REQUIRE_SSP = True
+
+DOC = '''
+Run the Tast graphics-igt test suite.
+
+Tast is an integration-testing framework analagous to the test-running portion
+of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
+more information.
+
+This test runs igt-gpu-tools against a remote DUT.
+
+See http://go/tast-failures for information about investigating failures.
+'''
+
+def run(machine):
+    host=hosts.create_host(machine)
+    host.reboot()
+    job.run_test('tast',
+                 host=host,
+                 test_exprs=['("group:graphics" && graphics_perbuild && graphics_igt)'],
+                 ignore_test_failures=True, max_run_sec=21600,
+                 command_args=args)
+
+parallel_simple(run, machines)
diff --git a/server/site_tests/tast/control.graphics-igt-weekly b/server/site_tests/tast/control.graphics-igt-weekly
new file mode 100644
index 0000000..16425cb
--- /dev/null
+++ b/server/site_tests/tast/control.graphics-igt-weekly
@@ -0,0 +1,37 @@
+# Copyright 2021 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 = 'Chromium OS Display team'
+NAME = 'tast.graphics-igt-weekly'
+TIME = 'MEDIUM'
+TEST_TYPE = 'Server'
+ATTRIBUTES = 'suite:graphics_per-week'
+MAX_RESULT_SIZE_KB = 1024 * 1024
+PY_VERSION = 3
+
+# tast.py uses binaries installed from autotest_server_package.tar.bz2.
+REQUIRE_SSP = True
+
+DOC = '''
+Run the Tast graphics-igt test suite.
+
+Tast is an integration-testing framework analagous to the test-running portion
+of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
+more information.
+
+This test runs igt-gpu-tools against a remote DUT.
+
+See http://go/tast-failures for information about investigating failures.
+'''
+
+def run(machine):
+    host=hosts.create_host(machine)
+    host.reboot()
+    job.run_test('tast',
+                 host=host,
+                 test_exprs=['("group:graphics" && graphics_weekly && graphics_igt)'],
+                 ignore_test_failures=True, max_run_sec=21600,
+                 command_args=args)
+
+parallel_simple(run, machines)
diff --git a/server/site_tests/tast/control.graphics-nightly b/server/site_tests/tast/control.graphics-nightly
index 6f7ce5c..4750066 100644
--- a/server/site_tests/tast/control.graphics-nightly
+++ b/server/site_tests/tast/control.graphics-nightly
@@ -30,7 +30,7 @@
     host.reboot()
     job.run_test('tast',
                  host=host,
-                 test_exprs=['("group:graphics" && graphics_nightly && !graphics_trace && !graphics_video)'],
+                 test_exprs=['("group:graphics" && graphics_nightly && !graphics_igt && !graphics_trace && !graphics_video)'],
                  ignore_test_failures=True, max_run_sec=10800,
                  command_args=args)
 
diff --git a/server/site_tests/tast/control.graphics-perbuild b/server/site_tests/tast/control.graphics-perbuild
index 817a487..f5664df 100644
--- a/server/site_tests/tast/control.graphics-perbuild
+++ b/server/site_tests/tast/control.graphics-perbuild
@@ -30,7 +30,7 @@
     host.reboot()
     job.run_test('tast',
                  host=host,
-                 test_exprs=['("group:graphics" && graphics_perbuild && !graphics_trace && !graphics_video)'],
+                 test_exprs=['("group:graphics" && graphics_perbuild && !graphics_igt && !graphics_trace && !graphics_video)'],
                  ignore_test_failures=True, max_run_sec=10800,
                  command_args=args)
 
diff --git a/server/site_tests/tast/control.graphics-weekly b/server/site_tests/tast/control.graphics-weekly
index dd7f114..3f0f167 100644
--- a/server/site_tests/tast/control.graphics-weekly
+++ b/server/site_tests/tast/control.graphics-weekly
@@ -30,7 +30,7 @@
     host.reboot()
     job.run_test('tast',
                  host=host,
-                 test_exprs=['("group:graphics" && graphics_weekly && !graphics_trace && !graphics_video)'],
+                 test_exprs=['("group:graphics" && graphics_weekly && !graphics_igt && !graphics_trace && !graphics_video)'],
                  ignore_test_failures=True, max_run_sec=10800,
                  command_args=args)