mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-29 09:13:08 +00:00
Merge pull request #3285 from tingtli/bug3269
add missed cases for hardware control commands. Fix bug 3269.
This commit is contained in:
commit
cd64a30538
29
xCAT-test/autotest/testcase/rinv/cases2
Normal file
29
xCAT-test/autotest/testcase/rinv/cases2
Normal file
@ -0,0 +1,29 @@
|
||||
start:rinv_mprom
|
||||
description:this case is to test mprom option for rinv on x86_64 servers.
|
||||
hcp:ipmi
|
||||
arch:x86_64
|
||||
cmd:rinv $$CN mprom
|
||||
check:rc==0
|
||||
check:output=~BMC Firmware:\s*\w+.\w+
|
||||
end
|
||||
|
||||
start:rinv_guid
|
||||
description:this case is to test guid option for rinv on x86_64 servers.
|
||||
hcp:ipmi
|
||||
arch:x86_64
|
||||
cmd:rinv $$CN guid
|
||||
check:rc==0
|
||||
check:output=~UUID/GUID:\s*\w+-\w+-\w+-\w+-\w+
|
||||
end
|
||||
|
||||
start:rinv_dimm
|
||||
description:this case is to test dimm option for rinv on x86_64 servers.
|
||||
hcp:ipmi
|
||||
arch:x86_64
|
||||
cmd:rinv $$CN dimm
|
||||
check:rc==0
|
||||
check:output=~DIMM 1 :\s*\w+
|
||||
check:output=~DIMM 1 Manufacture Date:\s*\w+
|
||||
check:output=~DIMM 1 Manufacture Location:\s*\d+
|
||||
check:output=~DIMM 1 Model:\s*\w+-\w+
|
||||
end
|
@ -125,3 +125,30 @@ cmd:rpower testnode stat
|
||||
check:rc!=0
|
||||
check:output=~Error
|
||||
end
|
||||
|
||||
start:rpower_softoff
|
||||
description:This case is to test softoff option could remote shutdown nodes
|
||||
Attribute: $$CN-The operation object of rpower command
|
||||
cmd:rpower $$CN on
|
||||
cmd:a=0;while ! `rpower $$CN stat|grep "Running\|on" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
|
||||
check:ouptut=~Running|on
|
||||
cmd:rpower $$CN softoff
|
||||
check:rc==0
|
||||
cmd:a=0;while ! `rpower $$CN stat|grep "Not Activated\|off" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
|
||||
cmd:rpower $$CN stat
|
||||
check:output=~Not Activated|off
|
||||
end
|
||||
|
||||
start:rpower_onstandby
|
||||
description:This case is to test onstandby option could bring server to standby state
|
||||
Attribute: $$CN-The operation object of rpower command
|
||||
arch:ppc64
|
||||
cmd:rpower $$CN off
|
||||
check:rc==0
|
||||
cmd:a=0;while ! `rpower $$CN stat|grep "Not Activated\|off" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
|
||||
cmd:rpower $$CN stat
|
||||
check:output=~Not Activated|off
|
||||
cmd:rpower $$CN onstandby
|
||||
cmd:a=0;while ! `rpower $$CN stat|grep "standby\|Standby" >/dev/null`; do sleep 5;((a++));if [ $a -gt 11 ];then break;fi done
|
||||
check:ouptut=~standby|Standby
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user