Skip to content

main/hwtest: Update to 0.2.0

Administrator requested to merge feature/hwtest-0.2.0 into master

This adds the first interactive tests for inputs, interactive tests are only run when specifying --interactive/-i

This also adds --export and --verify. The export option will write the test results to an .ini file. The verify option will run the tests and compare it to the saved export and then will show a diff of hardware functionality.

Example on the pinephone:

Running with the main camera disabled with the killswitch:

pine-dontbeevil:~# hwtest --export pinephone.ini
Category         Model                Path                                Status     Value                            
framebuffer      DRM emulated         /sys/class/graphics/fb0             working    Not running                      
drm              -                    /sys/class/drm/card1-DSI-1          working    720x1440                         
camera           ov5640               /sys/class/video4linux/v4l-subdev0  broken                                      
magnetometer     lis3mdl              /sys/bus/iio/devices/iio:device2    working    0.01, -0.01, 1.19 gauss          
accelerometer    mpu6050              /sys/bus/iio/devices/iio:device1    working    0.3, 0.12, -10.52 g              
gyroscope        mpu6050              /sys/bus/iio/devices/iio:device1    working    -0.04, -0.03, 0.04 rad/s         
temperature      mpu6050              /sys/bus/iio/devices/iio:device1    working    32 deg C                         
temperature      axp813-adc           /sys/bus/iio/devices/iio:device0    working    22600 deg C                      
input            generic ft5x06 (12)  /dev/input/event1                   working                                     
input            axp20x-pek           /dev/input/event0                   working                                     

The generated ini file:

[hwtest]
export-version = 1

[framebuffer]
; /sys/class/graphics/fb0
drm emulated = True

[drm]
; /sys/class/drm/card1-dsi-1
- = True

[camera]
; /sys/class/video4linux/v4l-subdev0
ov5640 = False

[magnetometer]
; /sys/bus/iio/devices/iio:device2
lis3mdl = True

[accelerometer]
; /sys/bus/iio/devices/iio:device1
mpu6050 = True

[gyroscope]
; /sys/bus/iio/devices/iio:device1
mpu6050 = True

[temperature]
; /sys/bus/iio/devices/iio:device1
mpu6050 = True
; /sys/bus/iio/devices/iio:device0
axp813-adc = True

[input]
; /dev/input/event1
generic ft5x06 (12) = True
; /dev/input/event0
axp20x-pek = True

Running verify after enableing the camera again:

pine-dontbeevil:~# hwtest --verify pinephone.ini 
Fixed hardware: 
 * ov5640 [/sys/class/video4linux/v4l-subdev0] 320x240,640x480,1280x720

Merge request reports

Loading