List of Factory Tests (pytests)¶
This document describes all tests available throughout the factory code.
Notes¶
The components here are AVL components. See this link for the mapping of HWID component and AVL components.
Tests for Accelerometer/IMU¶
pytest name |
description |
---|---|
A factory test for reading accelerometers |
|
A factory test for accelerometers calibration. |
|
This is a lid angle test based on accelerometers. |
|
A factory test for gyroscopes. |
|
A factory test for gyroscopes. |
|
A factory test for gyroscopes calibration. |
|
Perform calibration on spatial sensors |
|
Tests that certain conditions are met when in tablet mode. |
|
Tests screen rotation through ChromeOS and accelerometer data. |
Tests for Ambient Light Sensor¶
pytest name |
description |
---|---|
A factory test for ambient light sensor. |
|
Calibration test for light sensor (a chamber is needed). |
Tests for Audio Jack Codec¶
pytest name |
description |
---|---|
Tests audio playback. |
|
Test basic audio record and playback. |
|
Tests to manually test audio playback and record quality. |
|
A factory test for the audio function. |
|
Audio Quality Test the use audio fixture. |
Tests for Battery¶
pytest name |
description |
---|---|
A test to check if DUT can communicate with battery. |
|
A basic battery test. |
|
A factory test to test battery charging/discharging current. |
|
This test cycles the battery. |
|
A hardware test for checking battery existence and its basic status. |
|
A test to set and check BC(battery config) in CBI(ChromeOS Board Info). |
|
Test that waits the battery to be charged to specific level. |
|
Test if the charger can charge battery in time. |
Tests for CPU¶
pytest name |
description |
---|---|
A test to stress CPU, memory and disk. |
|
Tests thermal response under load. |
|
Determines how fast the processor heats/cools. |
|
A factory test to stress CPU, by generating pseudo random numbers. |
Tests for Camera - MIPI¶
pytest name |
description |
---|---|
Fixtureless camera test. |
Tests for Camera - USB¶
pytest name |
description |
---|---|
Fixtureless camera test. |
|
VSync pin test. |
Tests for Card Reader¶
pytest name |
description |
---|---|
Tests accessing to a removable storage. |
Tests for Display Panel¶
pytest name |
description |
---|---|
Test display backlight. |
|
This is a factory test to check the functionality of LCD backlight module. |
|
Test display functionality. |
|
A station-based factory test to test the function of display. |
|
Test display functionality with interactive mode. |
|
A factory test to test the function of display panel using some points. |
|
Test eDP panel is supported with proper timing. |
|
Test that sets privacy screen to specific state. |
Tests for EC¶
pytest name |
description |
---|---|
Runs chromeos-firmwareupdate to force update Main(AP)/EC/PD firmwares. |
Tests for Ethernet controller¶
pytest name |
description |
---|---|
A factory test for basic ethernet connectivity. |
Tests for Fingerprint Sensor¶
pytest name |
description |
---|---|
A factory test for the Fingerprint sensor. |
|
Update Fingerprint MCU firmware. |
Tests for HPS (Human Presence Sensor)¶
pytest name |
description |
---|---|
A factory test for HPS (Human Presence Sensor). |
Tests for Memory¶
pytest name |
description |
---|---|
Test if the memory size is correctly written in the firmware. |
|
A factory test to initiate and verify memory re-training process. |
|
A test to stress CPU, memory and disk. |
|
A test to update CBI data to EEPROM. |
Tests for Proximity(SAR) Sensor¶
pytest name |
description |
---|---|
A test to check if the proximity sensor triggers events properly. |
Tests for SPI Flash¶
pytest name |
description |
---|---|
Gets the status of Intel SI_DESC and sets the status to device data. |
|
Runs chromeos-firmwareupdate to force update Main(AP)/EC/PD firmwares. |
Tests for Secure Element¶
pytest name |
description |
---|---|
Check the board ID of the Cr50 firmware. |
|
A factory test to check the secdata version. |
|
Clears the inactive GSC RW slot. |
|
A test to set/clear AP RO hash. |
|
A test to ensure the AP RO verification works. |
|
A test to ensure the AP RO verification works on Ti50. |
|
Requests that the firmware clear the TPM owner on the next reboot. |
|
Runs tpm_selftest to perform TPM self-diagnosis. |
|
A test to check the state of TPM die. |
|
Verifies the TPM endorsement key. |
|
Update Cr50 firmware. |
Tests for Smart Speaker Amplifier¶
pytest name |
description |
---|---|
Tests audio playback. |
|
Test basic audio record and playback. |
|
Tests to manually test audio playback and record quality. |
|
A factory test for the audio function. |
|
Audio Quality Test the use audio fixture. |
|
A factory test to calibrate the smart speaker amplifier. |
Tests for Speaker Amplifier¶
pytest name |
description |
---|---|
Tests audio playback. |
|
Test basic audio record and playback. |
|
Tests to manually test audio playback and record quality. |
|
A factory test for the audio function. |
|
Audio Quality Test the use audio fixture. |
Tests for Storage¶
pytest name |
description |
---|---|
Tests a storage device by running the badblocks command. |
|
Performs consecutive read/write operations on a single file. |
|
A test to stress CPU, memory and disk. |
|
Verifies the integrity of the root partition. |
Tests for Storage bridge (PCIE-eMMC)¶
pytest name |
description |
---|---|
Tests a storage device by running the badblocks command. |
|
Performs consecutive read/write operations on a single file. |
|
A test to stress CPU, memory and disk. |
Tests for TPM¶
pytest name |
description |
---|---|
A factory test to check the secdata version. |
|
Requests that the firmware clear the TPM owner on the next reboot. |
|
Runs tpm_selftest to perform TPM self-diagnosis. |
|
A test to check the state of TPM die. |
|
Verifies the TPM endorsement key. |
Tests for Touch screen Controller (non stylus)¶
pytest name |
description |
---|---|
Checks and updates touch device firmware. |
|
Tests touchscreen or stylus by drawing in any order or in spiral pattern. |
Tests for Touch screen controller (EMR Stylus)¶
pytest name |
description |
---|---|
Test stylus functionality. |
|
Tests stylus garage detection functionality. |
|
Checks and updates touch device firmware. |
|
Tests touchscreen or stylus by drawing in any order or in spiral pattern. |
Tests for Touch screen controller (USI Stylus)¶
pytest name |
description |
---|---|
Test stylus functionality. |
|
Tests stylus garage detection functionality. |
|
Checks and updates touch device firmware. |
|
Tests touchscreen or stylus by drawing in any order or in spiral pattern. |
Tests for Touchpad Controller¶
pytest name |
description |
---|---|
Checks and updates touch device firmware. |
|
A factory test for checking touch uniformity. |
|
A factory test to test the functionality of touchpad. |
|
Touchpad Hover Test. |
Tests for USB Composite Integrated Component¶
pytest name |
description |
---|---|
A factory test to test battery charging/discharging current. |
|
Test external display with optional audio playback test. |
|
Tests accessing to a removable storage. |
Tests for WWAN¶
pytest name |
description |
---|---|
A factory test for switching the modem’s firmware. |
|
Verifies the LTE module config. |
|
Verify and close modem access authority. |
|
Probes information from /org/freedesktop/ModemManager1. |
|
Probes SIM card information from ‘modem status’. |
|
Probes SIM card tray |
|
VSWR measures the efficiency of the transmission line. |
Tests for Wifi / Bluetooth¶
pytest name |
description |
---|---|
A factory test to verify the functionality of bluetooth device. |
|
Station-based Bluetooth scan and pair test, using hciconfig and hcitool. |
|
Tests RF chip’s transmitting and receiving capabilities using Graphyte. |
|
VSWR measures the efficiency of the transmission line. |
|
WiFi throughput test. |
|
A factory test for basic Wifi. |
Tests for CHROMEBOOK_PlUS (Device feature component)¶
pytest name |
description |
---|---|
A test to check if chassis is branded. |
|
A factory test to check the feature compliance version. |
Tests for FAN (Device feature component)¶
pytest name |
description |
---|---|
A factory test to ensure the functionality of CPU fan. |
Tests for HARDWARE_ID (Device feature component)¶
pytest name |
description |
---|---|
A factory test to check the feature compliance version. |
|
The finalize test is the last step before DUT switching to release image. |
|
Uses HWID v3 to generate, encode, and verify the device’s HWID. |
|
A factory test to check if the components can be probed successfully or not. |
Tests for KEYBOARD (Device feature component)¶
pytest name |
description |
---|---|
Tests keyboard functionality. |
|
This is a factory test to test keyboard backlight. |
|
Tests keyboard pin connectivity in SMT factory test. |
Tests for LED (Device feature component)¶
pytest name |
description |
---|---|
This is a factory test to check the LED brightness. |
|
A factory test for the led function. |
Tests for PSR (Device feature component)¶
pytest name |
description |
---|---|
A test to set/check PSR EOM NVAR and start PSR Log. |
|
A test to update and verify PSR OEM Data. |
Tests for THERMAL_SENSOR (Device feature component)¶
pytest name |
description |
---|---|
Tests thermal response under load. |
|
Test for temperature sensors control. |
|
Determines how fast the processor heats/cools. |
Tests for VPD (Device feature component)¶
pytest name |
description |
---|---|
This is a lid angle test based on accelerometers. |
|
Checks if serial number is set correctly on a device. |
|
A factory test to calibrate the smart speaker amplifier. |
|
The finalize test is the last step before DUT switching to release image. |
|
Calibration test for light sensor (a chamber is needed). |
|
Provision Widevine keybox to the VPD. |
|
Setup device data from VPD (Vital Product Data). |
|
Prompts the operator to input a string of data. |
|
Perform calibration on spatial sensors |
|
Updates Device Data (manually or from predefined values in test list). |
|
A test to check the correctness of widevine keybox. |
|
Writes device data to VPD (Vital Product Data). |
Uncategorized pytests¶
pytest name |
description |
---|---|
A test to ensure the power type and status of device under test. |
|
A generic interface to control the BFT fixture. |
|
This is a factory test to check the brightness of LCD backlight or LEDs. |
|
This is a buzzer test. |
|
Test and check cec power control feature on Chrome OS device. |
|
Check release or test OS image version on internal storage. |
|
Check if release image has enabled LVM stateful partition. |
|
Check the retimer firmware version. |
|
A step to check test list. |
|
Compass test which requires operator place the DUT heading north and south. |
|
Selectively copies the miniOS part that has the same recovery key ver as FW. |
|
A count down monitor for better user interface in run-in tests. |
|
Retrieve factory drive files from factory server. |
|
A test to run arbitrary python scripts. |
|
A test to invoke a list of shell commands. |
|
A pytest helps you control FactoryStateLayer |
|
Flash system main (AP) firmware to netboot firmware. |
|
Tests lid switch functionality. |
|
Factory test for lightbar on A-case. |
|
A factory test to interactively check a sequence of shell commands on DUT. |
|
Displays a message. |
|
A test to confirm and set SKU information. |
|
A factory test to test the functionality of a mouse/trackpoint. |
|
A pytest to wait operators setup network connection. |
|
An no-op test. |
|
Checks that the partition table extends nearly to the end of the storage device. |
|
Check firmware version of PD (TCPC) chip equal to or larger than minimum version noted in corresponding EC driver. |
|
Ping connection test. |
|
Plankton USB type-C CC2 function test for Whale fixture. |
|
USB type-C CC line polarity check and operation flip test w/ Plankton-Raiden. |
|
Test USB type-C port charging function with Plankton-Raiden board. |
|
Tests USB type-C DP function with Plankton. |
|
A factory test for probe device information and update to device data. |
|
Setup device data from ChromeOS Config. |
|
An example pytest to show case how to save a CSV entry. |
|
Retrieve JSON config file from either an USB stick or a factory server. |
|
Control a robot to move a device for testing specific sensors. |
|
This is the sample code of a board specific test. |
|
Decide if this device is selected for certain sampling tests. |
|
Checks the communication between DUT and SMT test fixture. |
|
Invoke remote procedure call for interaction with shopfloor backend. |
|
Shutdown/Reboot the device. |
|
A test to make sure everything is set for the following test in test list. |
|
Starts or ends a station-based test. |
|
Setup a station for station-based test. |
|
Displays a status summary for all tests in the current section. |
|
Suspend and resume device with given cycles. |
|
Suspend and resume device with given cycles. |
|
A step to switch test list. |
|
Connect to factory server to find software updates and upload logs. |
|
Sync the clock of DUT with the clock of station. |
|
Tests thunderbolt port with a loopback card. |
|
Detachable base update test |
|
Applies new kernel to DUT (for testing). |
|
Update vendor plugin firmware using fwupdtool. |
|
Verify peripheral components. |
|
A video playback test. |
|
A stub test waiting for external fixture to finish testing. |
|
Waits Fixture until it’s ready. |
|
WebGL performance test that executes a set of WebGL operations. |
|
Checks voltages. |
|
Checks if Whale’s cover is opened / closed. |
|
Test wireless charge port functionality. |
|
Connect to an AP. |
|
Verifies that the write-protect switch is on. |