mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-08-22 03:00:26 +00:00
Merge pull request #4941 from whowutwut/openbmc_ut_cases
Adding more OpenBMC Unit Testing test cases to quickly test success case
This commit is contained in:
@@ -70,3 +70,12 @@ cmd: rflash $$CN --delete 221d9020 221d9020
|
||||
check:rc==1
|
||||
check:output=~Error: More than one firmware specified is not supported
|
||||
end
|
||||
|
||||
start:rflash_delete_active_bmc
|
||||
description: Attempt to delete the active BMC firmware
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd: rflash $$CN -l | grep \* | grep BMC | awk '{print $2}' | xargs -i{} rflash $$CN --delete {}
|
||||
check:rc==1
|
||||
check:output=~$$CN: Error: Deleting currently active firmware is not supported
|
||||
end
|
||||
|
156
xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0
Normal file
156
xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0
Normal file
@@ -0,0 +1,156 @@
|
||||
start:supported_cmds_rpower
|
||||
description: Make sure the rpower command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rpower $$CN state
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd: rpower $$CN bmcstate
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC
|
||||
end
|
||||
|
||||
start:supported_cmds_rinv
|
||||
description: Make sure that the rinv command works...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd: rinv $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd: rinv $$CN model
|
||||
check:rc==0
|
||||
check:output=~$$CN: SYSTEM Model
|
||||
cmd: rinv $$CN serial
|
||||
check:rc==0
|
||||
check:output=~$$CN: SYSTEM SerialNumber
|
||||
cmd: rinv $$CN firm
|
||||
check:rc==0
|
||||
check:output=~$$CN: Host Firmware
|
||||
check:output=~$$CN: BMC Firmware
|
||||
cmd: rinv $$CN cpu
|
||||
check:rc==0
|
||||
check:output=~$$CN: CPU
|
||||
cmd: rinv $$CN dimm
|
||||
check:rc==0
|
||||
check:output=~$$CN: DIMM
|
||||
end
|
||||
|
||||
start:supported_cmds_rvitals
|
||||
description: Make sure that the rvitals command works...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd: rvitals $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd: rvitals $$CN temp
|
||||
check:rc==0
|
||||
check:output=~$$CN: Ambient:
|
||||
cmd: rvitals $$CN voltage
|
||||
check:rc==0
|
||||
check:output=~$$CN: Ps0 Input Voltage:
|
||||
cmd: rvitals $$CN wattage
|
||||
check:rc==0
|
||||
check:output=~$$CN: Total Power:
|
||||
cmd: rvitals $$CN fanspeed
|
||||
check:rc==0
|
||||
check:output=~$$CN: Fan
|
||||
cmd: rvitals $$CN power
|
||||
check:rc==0
|
||||
check:output=~$$CN: Total Power:
|
||||
cmd: rvitals $$CN leds
|
||||
check:rc==0
|
||||
check:output=~$$CN: Front
|
||||
check:output=~$$CN: Front Fans
|
||||
check:output=~$$CN: Rear
|
||||
cmd: rvitals $$CN all
|
||||
check:rc==0
|
||||
check:output=~$$CN: Ambient:
|
||||
end
|
||||
|
||||
start:supported_cmds_rbeacon
|
||||
description: Make sure the rbeacon command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon $$CN on
|
||||
check:rc==0
|
||||
check:output=~$$CN: on
|
||||
cmd: rbeacon $$CN off
|
||||
check:rc==0
|
||||
check:output=~$$CN: off
|
||||
end
|
||||
|
||||
start:supported_cmds_reventlog
|
||||
description: Make sure the reventlog command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:reventlog $$CN
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd: reventlog $$CN 1
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd: reventlog $$CN all
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
end
|
||||
|
||||
start:supported_cmds_rflash
|
||||
description: Make sure the rflash command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rflash $$CN -c
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC Firmware Product:
|
||||
check:output=~$$CN: HOST Firmware Product:
|
||||
cmd:rflash $$CN -l
|
||||
check:rc==0
|
||||
check:output=~$$CN: ID
|
||||
end
|
||||
|
||||
start:supported_cmds_rsetboot
|
||||
description: Make sure the rsetboot command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rsetboot $$CN stat
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
end
|
||||
|
||||
start:supported_cmds_rspconfig
|
||||
description: Make sure the rspconfig command works ...
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rspconfig $$CN ipsrc
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC IP Source:
|
||||
cmd:rspconfig $$CN ip
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC IP:
|
||||
cmd:rspconfig $$CN netmask
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC Netmask:
|
||||
cmd:rspconfig $$CN gateway
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC Gateway:
|
||||
cmd:rspconfig $$CN hostname
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC Hostname:
|
||||
cmd:rspconfig $$CN vlan
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC VLAN ID:
|
||||
cmd:rspconfig $$CN dump -l
|
||||
check:rc==0
|
||||
check:output=~$$CN:
|
||||
cmd:rspconfig $$CN powerrestorepolicy
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC PowerRestorePolicy
|
||||
cmd:rspconfig $$CN powersupplyredundancy
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC PowerSupplyRedundancy
|
||||
cmd:rspconfig $$CN autoreboot
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC AutoReboot
|
||||
cmd:rspconfig $$CN bootmode
|
||||
check:rc==0
|
||||
check:output=~$$CN: BMC BootMode
|
||||
end
|
Reference in New Issue
Block a user