summaryrefslogtreecommitdiffstats
path: root/src/usr/util/runtime/test
diff options
context:
space:
mode:
authorMarty Gloff <mgloff@us.ibm.com>2017-12-11 13:15:43 -0600
committerDaniel M. Crowell <dcrowell@us.ibm.com>2017-12-17 15:13:38 -0500
commitca52f95d63bd0d20a98e29899357c152e36be3d3 (patch)
tree76db062b274756a521277afd1907e335e51e336c /src/usr/util/runtime/test
parent7f860e8a5c4722d0785436b7456f0d4b9be6fde7 (diff)
downloadblackbird-hostboot-ca52f95d63bd0d20a98e29899357c152e36be3d3.tar.gz
blackbird-hostboot-ca52f95d63bd0d20a98e29899357c152e36be3d3.zip
Concurrent code update of HBRT - Read Version
Add support for a PHYP console command to read the HBRT version. Change-Id: I11d588361dd643d4e4b0fb195d66cdbf11d4824a RTC: 183913 Reviewed-on: http://ralgit01.raleigh.ibm.com/gerrit1/50770 Reviewed-by: Matt Derksen <mderkse1@us.ibm.com> Tested-by: Jenkins Server <pfd-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP Build CI <op-jenkins+hostboot@us.ibm.com> Tested-by: Jenkins OP HW <op-hw-jenkins+hostboot@us.ibm.com> Tested-by: FSP CI Jenkins <fsp-CI-jenkins+hostboot@us.ibm.com> Reviewed-by: Christian R. Geddes <crgeddes@us.ibm.com> Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/util/runtime/test')
-rw-r--r--src/usr/util/runtime/test/testruncommand.H28
1 files changed, 28 insertions, 0 deletions
diff --git a/src/usr/util/runtime/test/testruncommand.H b/src/usr/util/runtime/test/testruncommand.H
index 9bdb15981..9dbb6b5c0 100644
--- a/src/usr/util/runtime/test/testruncommand.H
+++ b/src/usr/util/runtime/test/testruncommand.H
@@ -129,4 +129,32 @@ class RunCommandTest : public CxxTest::TestSuite
if( outstr ) delete[] outstr;
}
+
+
+ /**
+ * @brief Test read HBRT version operation
+ */
+ void testRunCommandReadHbrtVersion(void)
+ {
+ int rc = 0;
+ char* outstr = NULL;
+
+ char arg0[20]; memcpy( arg0, "readHBRTversion", 16 );
+ const char* argv[] = { arg0 };
+
+ // do a read
+ rc = (getRuntimeInterfaces()->run_command)( 1, argv, &outstr );
+ if( rc )
+ {
+ TS_FAIL( "testRunCommandReadHbrtVersion> rc=%d", rc );
+ }
+ if( outstr == NULL )
+ {
+ TS_FAIL( "testRunCommandReadHbrtVersion> outstr is NULL" );
+ }
+ TRACFCOMP( Util::g_util_trace,
+ "testRunCommandReadHbrtVersion> rc=%d :: %s",
+ rc, outstr == NULL ? "null" : outstr );
+ if( outstr ) delete[] outstr;
+ }
};
OpenPOWER on IntegriCloud