blob: f82fb2e91c71869a27a42017e81fddfd24979c5a [file] [log] [blame]
Steven Sombar6b280142018-02-12 10:45:13 -06001*** Settings ***
2
3Documentation Fan checks.
4
5# Test Parameters:
6# OPENBMC_HOST The BMC host name or IP address.
7# OPENBMC_USERNAME The userID for the BMC login.
8# OPENBMC_PASSWORD The password for OPENBMC_USERNAME.
9#
10# Approximate run time: 15 seconds.
11
12Resource ../lib/state_manager.robot
13Resource ../lib/fan_utils.robot
14Resource ../lib/openbmc_ffdc.robot
15
Steven Sombar47ac2f42019-04-17 21:13:43 -050016Suite Setup Suite Setup Execution
Steven Sombar6b280142018-02-12 10:45:13 -060017Test Teardown FFDC On Test Case Fail
18
Steven Sombar6b280142018-02-12 10:45:13 -060019*** Test Cases ***
20
21Fan Base Check Number Of Fans
22 [Documentation] Verify minimum number of fans.
23 [Tags] Fan_Base_Check_Number_Of_Fans
24
25 # Determine if system is water cooled.
Steven Sombar47ac2f42019-04-17 21:13:43 -050026 ${water_cooled}= Is Water Cooled
27 Rprint Vars water_cooled
Steven Sombar6b280142018-02-12 10:45:13 -060028
Steven Sombar43d6ba32018-02-16 11:25:09 -060029 Verify Minimum Number Of Fans With Cooling Type ${number_of_fans}
Steven Sombar47ac2f42019-04-17 21:13:43 -050030 ... ${water_cooled}
Steven Sombar6b280142018-02-12 10:45:13 -060031
32
33Fan Base Check Number Of Fan Monitors
34 [Documentation] Verify number of fan monitor daemons.
35 [Tags] Fan_Base_Check_Number_Of_Fan_Monitors
36
37 ${power_state}= Get Chassis Power State
38 Verify Fan Monitors With State ${power_state}
Steven Sombar47ac2f42019-04-17 21:13:43 -050039
40*** Keywords ***
41
42Suite Setup Execution
43 ${number_of_fans} ${fan_names}= Get Fan Count And Names
44 Set Suite Variable ${number_of_fans} children=true