pre

package
v0.0.0-...-683b059 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// CtsVerifierX86Zip is data path to ITS bundle testing x86 compatible platform.
	CtsVerifierX86Zip = "its/android-cts-verifier-9.0_r15-linux_x86-x86.zip"

	// CtsVerifierArmZip is data path to ITS bundle testing arm compatible platform.
	CtsVerifierArmZip = "its/android-cts-verifier-9.0_r15-linux_x86-arm.zip"

	// ITSPy3Patch is the data path of py2 to py3 patch for ITS test
	// scripts. Update the script content with the steps:
	// $ python3 setup_its_repo.py android-cts-verifier-XXX.zip
	// $ cd android-cts-verifier/CameraITS
	// # Do modification to *.py
	// $ git diff base > <Path to this patch>
	ITSPy3Patch = "its/its.patch"

	// SetupITSRepoScript is the data path of the script unpacking ITS
	// bundle and apply python3 patches.
	SetupITSRepoScript = "its/setup_its_repo.py"
)

To uprev |ctsVerifierX86Zip| and |ctsVerifierArmZip|, download the new zip from https://source.android.com/compatibility/cts/downloads, replace old zip under data folder and check the test can still pass.

Variables

View Source
var ITSArmPre = &itsPreImpl{abi: arm}

ITSArmPre is the test precondition to run Android x86-arm ITS test.

View Source
var ITSX86Pre = &itsPreImpl{abi: x86}

ITSX86Pre is the test precondition to run Android x86 ITS test.

Functions

func DataChartScene

func DataChartScene() *chartPre

DataChartScene returns test precondition for displaying default test scene on chart tablet.

Types

type ITSHelper

type ITSHelper struct {
	// contains filtered or unexported fields
}

ITSHelper provides helper functions accessing ITS package and mandating ARC.

func (*ITSHelper) CameraID

func (h *ITSHelper) CameraID(ctx context.Context, facing pb.Facing) (int, error)

CameraID returns corresponding camera id of camera facing on DUT.

func (*ITSHelper) Chart

func (h *ITSHelper) Chart(scene int) string

Chart returns scene chart to run test scene.

func (*ITSHelper) TestCmd

func (h *ITSHelper) TestCmd(ctx context.Context, scene, camera int) *testexec.Cmd

TestCmd returns command to run test scene with camera id.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL