From 91d3c3f897bdeb6bab4259eafaa42b24b669b1d2 Mon Sep 17 00:00:00 2001 From: Missy Connell Date: Wed, 25 Apr 2012 14:29:54 -0500 Subject: 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 --- src/usr/mvpd/test/mvpdtest.H | 100 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 100 insertions(+) (limited to 'src/usr/mvpd/test/mvpdtest.H') 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().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().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().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().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().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().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().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; -- cgit v1.2.1