Add control file and suite for Nearby Share.

This files will be associated with a suite_scheduler config and tast
attr.

BUG=chromium:1158640
TEST=None

Change-Id: I69951d6f8d3233d5710998c652072ffc664d0fe8
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/autotest/+/2591811
Tested-by: David Haddock <dhaddock@chromium.org>
Reviewed-by: Brendan Hansknecht <bhansknecht@chromium.org>
Commit-Queue: David Haddock <dhaddock@chromium.org>
diff --git a/server/site_tests/tast/control.nearby-share b/server/site_tests/tast/control.nearby-share
new file mode 100644
index 0000000..3fa7fbd
--- /dev/null
+++ b/server/site_tests/tast/control.nearby-share
@@ -0,0 +1,23 @@
+# Copyright 2020 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 = 'ChromeOS SW Engprod Team (chromeos-sw-engprod@google.com)'
+NAME = 'tast.nearby-share'
+TIME = 'MEDIUM'
+TEST_TYPE = 'Server'
+ATTRIBUTES = 'suite:nearby-share'
+MAX_RESULT_SIZE_KB = 1024 * 1024
+
+# tast.py uses binaries installed from autotest_server_package.tar.bz2.
+REQUIRE_SSP = True
+
+DOC = '''Run the Tast Nearby Share test suite.'''
+
+def run(machine):
+    job.run_test('tast',
+                 host=hosts.create_host(machine),
+                 test_exprs=['("group:nearby-share")'],
+                 ignore_test_failures=True, max_run_sec=10800,
+                 command_args=args)
+parallel_simple(run, machines)
diff --git a/site_utils/attribute_allowlist.txt b/site_utils/attribute_allowlist.txt
index ffa51aa..0bb758d 100644
--- a/site_utils/attribute_allowlist.txt
+++ b/site_utils/attribute_allowlist.txt
@@ -154,6 +154,7 @@
 suite:moblab
 suite:moblab_quick
 suite:moblab_storage_qual
+suite:nearby-share
 suite:network_nightly
 suite:network_ui
 suite:offloads
diff --git a/test_suites/control.nearby-share b/test_suites/control.nearby-share
new file mode 100644
index 0000000..da46783
--- /dev/null
+++ b/test_suites/control.nearby-share
@@ -0,0 +1,20 @@
+# Copyright 2020 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 = "ChromeOS SW Engprod Team (chromeos-sw-engprod@google.com)"
+NAME = "nearby-share"
+PURPOSE = "Suite to run Nearby Share tests on Chrome OS devices."
+TIME = "SHORT"
+TEST_CATEGORY = "General"
+TEST_CLASS = "suite"
+TEST_TYPE = "Server"
+DOC = """ This suite runs Nearby Share tests. """
+
+import common
+from autotest_lib.server.cros.dynamic_suite import dynamic_suite
+args_dict['max_runtime_mins'] = 60
+args_dict['name'] = NAME
+args_dict['job'] = job
+dynamic_suite.reimage_and_run(**args_dict)
+