blob: 90621bb43a678fbd40342d16e7ec3a62f5ae552f [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: LibJEA,
Desc: "Runs cros-camera-libjea_test to make sure jea works on Chrome OS side",
Contacts: []string{
Attr: []string{"group:mainline", "informational", "group:camera-libcamera"},
SoftwareDeps: []string{"arc_camera3", "chrome", caps.HWEncodeJPEG},
Data: []string{"bali_640x368_P420.yuv", "lake_4096x3072_P420.yuv"},
func LibJEA(ctx context.Context, s *testing.State) {
const exec = "libjea_test"
inputArg1 := fmt.Sprintf("--yuv_filename1=%s:640x368", s.DataPath("bali_640x368_P420.yuv"))
inputArg2 := fmt.Sprintf("--yuv_filename2=%s:4096x3072", s.DataPath("lake_4096x3072_P420.yuv"))
if report, err := gtest.New(
gtest.Logfile(filepath.Join(s.OutDir(), exec+".log")),
gtest.ExtraArgs(inputArg1, inputArg2, logging.ChromeVmoduleFlag()),
).Run(ctx); err != nil {
s.Errorf("Failed to run %v: %v", exec, err)
if report != nil {
for _, name := range report.FailedTestNames() {
s.Error(name, " failed")