From 52939c94c02f0be843e088f74d4fb2d57eea29c1 Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Tue, 13 Mar 2018 11:36:12 -0400 Subject: [PATCH] start to add UT cases for the success case, this allows us to easily run sanity test on all the BMC commands --- .../UT_openbmc/supported_commands_case0 | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0 diff --git a/xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0 b/xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0 new file mode 100644 index 000000000..82e8dbdc3 --- /dev/null +++ b/xCAT-test/autotest/testcase/UT_openbmc/supported_commands_case0 @@ -0,0 +1,36 @@ +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