Skip to content

Commit

Permalink
dasharo-compatibility/cpu-fan-speed-measure.robot: Add fan control tests
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastian Czapla <[email protected]>
  • Loading branch information
SebastianCzapla committed Sep 25, 2024
1 parent b19380f commit e18952c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions dasharo-compatibility/cpu-fan-speed-measure.robot
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,52 @@ FAN001.001 CPU fan speed measure
${output}= Get RPM Value From System76 Acpi
Should Not Be Empty ${output}
Should Not Be Equal ${output} 0

FAN002.001 All available fans are running
[Documentation] Check if all available fans are runing
# Future Skip conditions
Power On
Boot System Or From Connected Disk ubuntu
Login To Linux
Switch To Root User
Detect Or Install Package linux-oem-22.04a
Prepare Lm-sensors
Execute Command In Terminal stress -c $(nproc) -t 10
${OUTPUT}= Execute Command In Terminal sensors | grep "CPU fan"
Should Not Contain ${OUTPUT} 0 RPM

FAN003.001 Fans are turning off during suspend mode (ME Enabled)
[Documentation] Check for correct behavior
# Future Skip conditions
Power On
Set UEFI Option MeMode Enabled
Boot System Or From Connected Disk ubuntu
Login To Linux
Switch To Root User
Prepare Lm-sensors
Detect Or Install FWTS
Write Into Terminal fwts s3 -f -r /tmp/suspend_test_log.log

FAN003.002 Fans are turning off during suspend mode (ME Soft disable)
[Documentation] Check for correct behavior
# Future Skip conditions
Power On
Set UEFI Option MeMode Disabled (SOFT)
Boot System Or From Connected Disk ubuntu
Login To Linux
Switch To Root User
Prepare Lm-sensors
Detect Or Install FWTS
Write Into Terminal fwts s3 -f -r /tmp/suspend_test_log.log

FAN003.003 Fans are turning off during suspend mode (ME HAP disable)
[Documentation] Check for correct behavior
# Future Skip conditions
Power On
Set UEFI Option MeMode Disabled (HAP)
Boot System Or From Connected Disk ubuntu
Login To Linux
Switch To Root User
Prepare Lm-sensors
Detect Or Install FWTS
Write Into Terminal fwts s3 -f -r /tmp/suspend_test_log.log

0 comments on commit e18952c

Please sign in to comment.