blob: eff3636c4e49e0a9ad16dfc0d88a6d9050e749aa [file] [log] [blame]
// 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.
package ui
import (
func init() {
Func: CUJRunner,
Desc: "Run a CUJ json config and measure performance",
Contacts: []string{"", ""},
SoftwareDeps: []string{"chrome", "arc"},
Fixture: "loggedInToCUJUser",
Timeout: 30 * time.Minute,
Data: []string{"cuj_config.json"},
Vars: []string{
func CUJRunner(ctx context.Context, s *testing.State) {
runner := cujrunner.NewRunner(s.FixtValue().(cuj.FixtureData).Chrome)
if err := runner.Run(ctx, s, s.DataPath("cuj_config.json")); err != nil {
s.Fatal("Failed to run: ", err)