1# Copyright 2018 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 = "The Chromium OS Authors" 6NAME = "platform_InitLoginPerfServer" 7PURPOSE = "Measures first boot initialization and login performance" 8TIME = "MEDIUM" 9TEST_CATEGORY = "Benchmark" 10TEST_CLASS = "platform" 11TEST_TYPE = "server" 12ATTRIBUTES = "suite:crosbolt_perf_weekly" 13PY_VERSION = 3 14 15DOC = """ 16This test clears the tpm owner, then goes through OOBE and verifies that the 17user logs in, the tpm is initialized, and the device is prepared for enrollment. 18It captures the performance data for tpm initialization, as well as first-boot 19and normal logins. 20""" 21 22NUM_ITERATIONS = 7 23PRE_INIT_DELAY = 10 24 25def run(machine): 26 host = hosts.create_host(machine) 27 job.run_test("platform_InitLoginPerfServer", host=host, 28 iterations=NUM_ITERATIONS, 29 pre_init_delay=PRE_INIT_DELAY, 30 upload_perf=True) 31 32parallel_simple(run, machines) 33