mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
Merge pull request #2542 from caomengmeng/add_rinv_rvitals_cases
Add rinv and rvitals test cases based on fs4 machine
This commit is contained in:
commit
d6ef9fc64a
70
xCAT-test/autotest/testcase/rinv/cases1
Normal file
70
xCAT-test/autotest/testcase/rinv/cases1
Normal file
@ -0,0 +1,70 @@
|
||||
start:rinv_serial
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rinv $$CN serial
|
||||
check:rc==0
|
||||
check:output=~NODE 1 Chassis Serial Number:\s*\w{7}
|
||||
end
|
||||
|
||||
start:rinv_model
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rinv $$CN model
|
||||
check:rc==0
|
||||
check:output=~NODE 1 Chassis Part Number\s*:\s*\w{4}-\w{3}
|
||||
end
|
||||
|
||||
start:rinv_firm
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rinv $$CN firm
|
||||
check:rc==0
|
||||
check:output=~BMC Firmware\s*:\s*\w+.\w+
|
||||
end
|
||||
|
||||
start:rinv_deviceid
|
||||
hcp:ipmi
|
||||
arch:ppc64le
|
||||
cmd:rinv $$CN deviceid
|
||||
check:rc==0
|
||||
check:output=~Device ID:\s*\w+
|
||||
check:output=~Product ID:\s*\w+
|
||||
check:output=~Manufacturer ID:\s*\w+
|
||||
end
|
||||
|
||||
|
||||
start:rinv_vpd
|
||||
hcp:ipmi
|
||||
arch:ppc64le
|
||||
cmd:rinv $$CN vpd
|
||||
check:rc==0
|
||||
check:output=~Manufacturer ID:\s*\w+
|
||||
check:output=~Device ID:\s*\w+
|
||||
check:output=~BMC Firmware:\s*\w+.\w+
|
||||
check:output=~NODE 1 Chassis Serial Number:\s*\w{7}
|
||||
check:output=~NODE 1 Chassis Part Number\s*:\s*\w{4}-\w{3}
|
||||
end
|
||||
|
||||
|
||||
start:rinv_all
|
||||
hcp:ipmi
|
||||
arch:ppc64le
|
||||
cmd:rinv $$CN all
|
||||
check:rc==0
|
||||
check:output=~BMC Firmware:\s*\w+.\w+
|
||||
check:output=~BMCCARD Board Part Number:\s*\w{7}
|
||||
check:output=~UUID/GUID:\s*\w+-\w+-\w+-\w+-\w+
|
||||
check:output=~Product ID:\s*\d+
|
||||
check:output=~Manufacturer ID:\s*\d+
|
||||
check:output=~Device ID:\s*\d+
|
||||
check:output=~BMCCARD Board Serial Number:\s*\w+
|
||||
end
|
||||
|
||||
start:rinv_noderange_err
|
||||
hcp:ipmi
|
||||
arch:ppc64le
|
||||
cmd:rinv testnode
|
||||
check:rc!=0
|
||||
check:output=~Error
|
||||
end
|
||||
|
61
xCAT-test/autotest/testcase/rvitals/cases1
Normal file
61
xCAT-test/autotest/testcase/rvitals/cases1
Normal file
@ -0,0 +1,61 @@
|
||||
start:rvitals_temp
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN temp
|
||||
check:rc==0
|
||||
check:output=~Ambient Temp
|
||||
end
|
||||
|
||||
start:rvitals_disktemp
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN disktemp
|
||||
check:rc==0
|
||||
check:output=~Ambient Temp
|
||||
end
|
||||
|
||||
start:rvitals_cputemp
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN cputemp
|
||||
check:rc==0
|
||||
check:output=~Ambient Temp
|
||||
end
|
||||
|
||||
start:rvitals_fanspeed
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN fanspeed
|
||||
check:rc==0
|
||||
check:output=~Fan\s*\d:\s*\w+\s*RPM
|
||||
end
|
||||
|
||||
start:rvitals_voltage
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN voltage
|
||||
check:rc==0
|
||||
check:output=~CPU VDD Volt
|
||||
end
|
||||
|
||||
start:rvitals_all
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals $$CN all
|
||||
check:rc==0
|
||||
check:output=~Power Status
|
||||
check:output=~Power Overload
|
||||
check:output=~Power Interlock
|
||||
check:output=~Power Fault
|
||||
check:output=~Power Control Fault
|
||||
check:output=~Power Restore Policy
|
||||
check:output=~Ambient Temp
|
||||
end
|
||||
|
||||
start:rvitals_noderange_err
|
||||
arch:ppc64le
|
||||
hcp:ipmi
|
||||
cmd:rvitals testnode
|
||||
check:rc!=0
|
||||
check:output=~Error
|
||||
end
|
Loading…
x
Reference in New Issue
Block a user