blob: c36f239613cc782d1c2432753574f9104ffc5a07 [file] [log] [blame]
// 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.
package graphics
import (
func init() {
Func: TraceReplayExtended,
Desc: "Repeatedly replay a 3D graphics trace file in Crostini VM for a fixed duration",
Contacts: []string{"", "", "", "", ""},
SoftwareDeps: []string{"chrome", "crosvm_gpu", "vm_host"},
Attr: []string{},
Vars: []string{"keepState", "PowerTest.resultDir", "PowerTest.signalRunningFile", "PowerTest.signalCheckpointFile"},
VarDeps: []string{"ui.gaiaPoolDefault"},
Params: []testing.Param{
// Parameters generated by trace_replay_extended_test.go. DO NOT EDIT.
Name: "glxgears_1minute",
ExtraData: []string{crostini.GetContainerMetadataArtifact("buster", false), crostini.GetContainerRootfsArtifact("buster", false)},
ExtraSoftwareDeps: []string{"dlc"},
Pre: crostini.StartedByDlcBuster(),
Timeout: 45 * time.Minute,
Val: comm.TestGroupConfig{
Labels: []string{"short"},
Repository: comm.RepositoryInfo{
RootURL: "gs://chromiumos-test-assets-public/tast/cros/graphics/traces/repo",
Version: 1,
ExtendedDuration: 1 * 60,
// TraceReplayExtended replays a graphics trace repeatedly inside a crostini container.
func TraceReplayExtended(ctx context.Context, s *testing.State) {
guestos.TraceReplayCrostiniSetup(ctx, s, 0)