mirror of
https://github.com/xcat2/xcat-core.git
synced 2025-05-30 09:36:41 +00:00
commit
dad0167c27
55
xCAT-test/autotest/testcase/rbeacon/cases0
Normal file
55
xCAT-test/autotest/testcase/rbeacon/cases0
Normal file
@ -0,0 +1,55 @@
|
||||
start:rbeacon_null
|
||||
description: this case is to test rbeacon usage
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon
|
||||
check:rc==0
|
||||
check:output=~Usage
|
||||
end
|
||||
|
||||
start:rbeacon_stat
|
||||
description: this case is to test rbeacon CN stat
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon $$CN stat
|
||||
check:rc==0
|
||||
check:output=~$$CN\s*:\s*Front:Off Rear:Off|Front:On Rear:On|Front:Off Rear:On|Front:On Rear:Off
|
||||
end
|
||||
|
||||
start:rbeacon_help
|
||||
description: this case is to test rbeacon -h and --help output
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon -h
|
||||
check:rc==0
|
||||
check:output=~Usage
|
||||
check:output =~OpenPOWER \(OpenBMC\) specific:
|
||||
cmd:rbeacon --help
|
||||
check:rc==0
|
||||
check:output=~Usage
|
||||
check:output =~OpenPOWER \(OpenBMC\) specific:
|
||||
end
|
||||
|
||||
start:rbeacon_version
|
||||
description: this case is to test rbeacon -v and --version output
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon -v
|
||||
check:rc==0
|
||||
check:output=~Version
|
||||
check:output =~git commit
|
||||
cmd:rbeacon --version
|
||||
check:rc==0
|
||||
check:output=~~Version
|
||||
check:output =~git commit
|
||||
end
|
||||
|
||||
start:rbeacon_false
|
||||
description: this case is to test rbeacon could process false input
|
||||
os:Linux
|
||||
hcp:openbmc
|
||||
cmd:rbeacon $$CN abc
|
||||
check:rc!=0
|
||||
check:output=~$$CN\s*:\s*Error:\s*Only \'on\', \'off\' or \'stat\' is supported
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user