1# Copyright 2020 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = 'Chromium OS team'
6NAME = 'tast.hwsec-destructive-crosbolt-perbuild'
7TIME = 'MEDIUM'
8TEST_TYPE = 'Server'
9ATTRIBUTES = 'suite:crosbolt_perf_perbuild'
10MAX_RESULT_SIZE_KB = 1024 * 1024
11
12# tast.py uses binaries installed from autotest_server_package.tar.bz2.
13REQUIRE_SSP = True
14
15DOC = '''
16Run the Tast crosbolt performance test suite with test group hwsec_destructive.
17
18Tast is an integration-testing framework analagous to the test-running portion
19of Autotest. See https://chromium.googlesource.com/chromiumos/platform/tast/ for
20more information.
21
22This test runs Tast-based crosbolt performance tests against a remote DUT.
23And runs HWSec Tast-based remote tests that may wipe and recreate
24encstateful in the middle, e.g., via clearing the TPM. It only reports failure
25if the tast process itself (rather than individual Tast tests) fails.
26
27See http://go/tast-failures for information about investigating failures.
28'''
29
30def run(machine):
31    job.run_test('tast',
32                 host=hosts.create_host(machine),
33                 test_exprs=['("group:hwsec_destructive_crosbolt" && hwsec_destructive_crosbolt_perbuild)'],
34                 ignore_test_failures=True,
35                 max_run_sec=18000,  # 5 hours.
36                 command_args=args)
37
38parallel_simple(run, machines)
39