blob: db635d25a871728b3c94c1375031e77e80324eb8 [file] [log] [blame]
// Copyright 2019 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 camera
import (
func init() {
Func: HAL3Module,
Desc: "Verifies camera module function with HAL3 interface",
Contacts: []string{"", "", ""},
Attr: []string{"group:mainline", "informational", "group:camera-libcamera", "group:camera-postsubmit"},
// TODO(shik): Once cros_camera_test supports an external camera,
// replace caps.BuiltinCamera with caps.BuiltinOrVividCamera.
// Same for other HAL3* tests.
SoftwareDeps: []string{"arc", "arc_camera3", "chrome", caps.BuiltinCamera},
Pre: chrome.LoggedIn(),
Timeout: 4 * time.Minute,
func HAL3Module(ctx context.Context, s *testing.State) {
if err := hal3.RunTest(ctx, hal3.ModuleTestConfig()); err != nil {
s.Error("Test failed: ", err)