summaryrefslogtreecommitdiffstats
path: root/src/usr/i2c/test/i2ctest.H
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-04-25 14:29:54 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-05-09 10:59:46 -0500
commit91d3c3f897bdeb6bab4259eafaa42b24b669b1d2 (patch)
tree4426f49054ec0119e04099250032c68bed3bcf55 /src/usr/i2c/test/i2ctest.H
parent7362a70f4b11b12578c938cb40a0143f6bfeda7d (diff)
downloadtalos-hostboot-91d3c3f897bdeb6bab4259eafaa42b24b669b1d2.tar.gz
talos-hostboot-91d3c3f897bdeb6bab4259eafaa42b24b669b1d2.zip
Update testcases to use Attributes for present and functional
Update testcases for scom, i2c, mvpd, fsi Change-Id: I357c4efb046c04da1c801ec257a1827e36a73e25 RTC: 39765 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/943 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/i2c/test/i2ctest.H')
-rwxr-xr-xsrc/usr/i2c/test/i2ctest.H32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/usr/i2c/test/i2ctest.H b/src/usr/i2c/test/i2ctest.H
index e1933ac62..95f1cc16d 100755
--- a/src/usr/i2c/test/i2ctest.H
+++ b/src/usr/i2c/test/i2ctest.H
@@ -219,6 +219,22 @@ class I2CTest: public CxxTest::TestSuite
// Check to see if I2C function is there
if( !isI2CAvailable( theTarget ) )
{
+ TRACFCOMP( g_trac_i2c,
+ "testI2ReadWrite Operation - no i2c function" );
+
+
+ continue;
+ }
+
+ // check to see if the target is functional before we
+ // continue..
+ if
+ (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional)
+ {
+
+ TRACFCOMP( g_trac_i2c,
+ "testI2ReadWrite Operation - target not functional" );
+
continue;
}
@@ -332,6 +348,22 @@ class I2CTest: public CxxTest::TestSuite
// Check to see if I2C function is there
if( !isI2CAvailable( testTarget ) )
{
+ TRACFCOMP( g_trac_i2c,
+ "testI2CInvalid Operation - no i2c function" );
+
+
+ continue;
+ }
+
+ // check to see if the target is functional before we
+ // continue..
+ if
+ (!testTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional)
+ {
+ TRACFCOMP( g_trac_i2c,
+ "testI2CInvalide Operation - not functional" );
+
+
continue;
}
OpenPOWER on IntegriCloud