autoupdate

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: 21 Imported by: 0

README

How to run autoupdate tests

So far the tests can only be run on leased devices from the test lab. Note that TLW service instructions are subject to change. Please update the documentation if the instructions don't work anymore.

Install the TLW service.

mkdir chrome_infra
cd chrome_infra
fetch infra   # or fetch infra_internal if you are a Googler
eval $(infra/go/env.py)

Add $HOME/chrome_infra/infra/go to your $GOPATH for example by appending the following to ~/.profile.

export GOPATH="$GOPATH:$HOME/chrome_infra/infra/go"

Start the TLW service.

cd ~/chrome_infra/infra/go/src/infra/cros/cmd
(cd prototype-tlw && go run . -port 7151) &

Make sure that you can access the device without a password, for example by using ssh keys.

Create ssh tunnel to access DUT from inside chroot.

autossh -L 2200:localhost:22 root@<dut>

Run the test inside chroot.

(chroot) tast run -var=updateutil.tlwAddress="localhost:7151" localhost:2200 <test_name>

Documentation

Overview

Package autoupdate contains remote Tast tests that update the test device.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BasicNToM

func BasicNToM(ctx context.Context, s *testing.State)

func BasicNToN

func BasicNToN(ctx context.Context, s *testing.State)

func EnterpriseRollbackPreviousVersion

func EnterpriseRollbackPreviousVersion(ctx context.Context, s *testing.State)

func NToMVaultCompat

func NToMVaultCompat(ctx context.Context, s *testing.State)

Types

This section is empty.

Directories

Path Synopsis
Package autoupdatelib provides common utils for making autoupdate tests.
Package autoupdatelib provides common utils for making autoupdate tests.

Jump to

Keyboard shortcuts

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