diff options
author | Missy Connell <missyc@us.ibm.com> | 2012-04-25 14:29:54 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-05-09 10:59:46 -0500 |
commit | 91d3c3f897bdeb6bab4259eafaa42b24b669b1d2 (patch) | |
tree | 4426f49054ec0119e04099250032c68bed3bcf55 /src/usr/mvpd/test/mvpdtest.H | |
parent | 7362a70f4b11b12578c938cb40a0143f6bfeda7d (diff) | |
download | talos-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/mvpd/test/mvpdtest.H')
-rwxr-xr-x | src/usr/mvpd/test/mvpdtest.H | 100 |
1 files changed, 100 insertions, 0 deletions
diff --git a/src/usr/mvpd/test/mvpdtest.H b/src/usr/mvpd/test/mvpdtest.H index adca80fd2..0e8d902ff 100755 --- a/src/usr/mvpd/test/mvpdtest.H +++ b/src/usr/mvpd/test/mvpdtest.H @@ -248,11 +248,24 @@ class MVPDTest: public CxxTest::TestSuite { TRACFCOMP( g_trac_mvpd, "testMvpdRead() - No Proc Targets found!" ); + + continue; // add continue because have no proc targets } // Use the first Proc in the list theTarget = procList[0]; + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; const uint32_t numCmds = sizeof(mvpdData)/sizeof(mvpdData[0]); @@ -342,10 +355,24 @@ class MVPDTest: public CxxTest::TestSuite { TRACFCOMP( g_trac_mvpd, "testMvpdWrite() - No Proc Targets found!" ); + + continue; // no proc targets. } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; @@ -402,10 +429,24 @@ class MVPDTest: public CxxTest::TestSuite TRACFCOMP( g_trac_mvpd, "testMvpdInvalidRecord() - No Proc Targets " "found!" ); + + continue; } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; @@ -461,11 +502,26 @@ class MVPDTest: public CxxTest::TestSuite ( NULL == procList[0] ) ) { TRACFCOMP( g_trac_mvpd, + "testMvpdMissingRecord() - No Proc Targets found!" ); + + continue; } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; @@ -518,11 +574,26 @@ class MVPDTest: public CxxTest::TestSuite ( NULL == procList[0] ) ) { TRACFCOMP( g_trac_mvpd, + "testMvpdMissingKeyword() - No Proc Targets found!" ); + + continue; } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; @@ -577,11 +648,26 @@ class MVPDTest: public CxxTest::TestSuite ( NULL == procList[0] ) ) { TRACFCOMP( g_trac_mvpd, + "testMvpdInvalidKeyword() - No Proc Targets found!" ); + + continue; } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; @@ -639,10 +725,24 @@ class MVPDTest: public CxxTest::TestSuite TRACFCOMP( g_trac_mvpd, "testMvpdInvalidBufferSize() - No Proc Targets " "found!" ); + + continue; } // Use the first Proc in the list theTarget = procList[0]; + + // check to see if the target is functional + if + (!theTarget->getAttr<TARGETING::ATTR_HWAS_STATE>().functional) + { + + TRACFCOMP( g_trac_mvpd, + "testMvpdRead() - Proc Target [0] non functional!" ); + + continue; // add continue because target is non functional + } + uint8_t * theData = NULL; size_t theSize = 0; |