diff options
author | Terry J. Opie <opiet@us.ibm.com> | 2012-03-07 13:39:53 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2012-04-04 21:02:11 -0500 |
commit | ade5f3e69bf455b78e10da68c0ac0d2d5fdb1f6c (patch) | |
tree | 29bcedfb462d476c4d1ace8a29cee543e465510b /src/usr/spd/test/dimmPrestest.H | |
parent | 4e29fbf87555f7d1b4c9923203f091bde397e2a6 (diff) | |
download | talos-hostboot-ade5f3e69bf455b78e10da68c0ac0d2d5fdb1f6c.tar.gz talos-hostboot-ade5f3e69bf455b78e10da68c0ac0d2d5fdb1f6c.zip |
MVPD Device Driver
- MVPD test cases
- Add temp binary image file
- Adjust SPD/DIMM Pres Detect tests to operate on 1 DIMM.
Change-Id: Iaaacd4787ba8e8a8d74f3c427507d98a5f0b218c
RTC: 35329
Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/777
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/spd/test/dimmPrestest.H')
-rwxr-xr-x | src/usr/spd/test/dimmPrestest.H | 110 |
1 files changed, 48 insertions, 62 deletions
diff --git a/src/usr/spd/test/dimmPrestest.H b/src/usr/spd/test/dimmPrestest.H index 46dad62c5..624e30786 100755 --- a/src/usr/spd/test/dimmPrestest.H +++ b/src/usr/spd/test/dimmPrestest.H @@ -80,42 +80,35 @@ class DIMMPresTest: public CxxTest::TestSuite break; } - for( uint32_t dimm = 0; dimm < dimmList.size(); dimm++ ) - { - cmds++; - theTarget = dimmList[dimm]; - - // Check presence - err = deviceRead( theTarget, - &present, - presentSize, - DEVICE_PRESENT_ADDRESS() ); - - if( err ) - { - fails++; - TS_FAIL( "testDimmPres() - Error returned from DIMM Presence " - "Detect call!" ); - errlCommit( err, - SPD_COMP_ID ); - continue; - } - else if( presentSize != sizeof(present) ) - { - fails++; - TS_FAIL( "testDimmPrs() - Size of Presence buffer is not size " - "of boolean!" ); - continue; - } - else - { - // Test was good. - } - } + // Test only on first DIMM. + cmds++; + theTarget = dimmList[0]; + + // Check presence + err = deviceRead( theTarget, + &present, + presentSize, + DEVICE_PRESENT_ADDRESS() ); if( err ) { - break; + fails++; + TS_FAIL( "testDimmPres() - Error returned from DIMM Presence " + "Detect call!" ); + errlCommit( err, + SPD_COMP_ID ); + continue; + } + else if( presentSize != sizeof(present) ) + { + fails++; + TS_FAIL( "testDimmPrs() - Size of Presence buffer is not size " + "of boolean!" ); + continue; + } + else + { + // Test was good. } } while( 0 ); @@ -156,38 +149,31 @@ class DIMMPresTest: public CxxTest::TestSuite break; } - for( uint32_t dimm = 0; dimm < dimmList.size(); dimm++ ) + // Test on first DIMM only + cmds++; + theTarget = dimmList[0]; + + // Check presence + err = deviceRead( theTarget, + &present, + presentSize, + DEVICE_PRESENT_ADDRESS() ); + + if( !err ) { - cmds++; - theTarget = dimmList[dimm]; - - // Check presence - err = deviceRead( theTarget, - &present, - presentSize, - DEVICE_PRESENT_ADDRESS() ); - - if( !err ) - { - fails++; - TS_FAIL( "testDimmPresInvalidSize() - Error not flagged for " - "invalid size!" ); - errlCommit( err, - SPD_COMP_ID ); - continue; - } - else - { - // Delete the error and continue - delete err; - err = NULL; - continue; - } + fails++; + TS_FAIL( "testDimmPresInvalidSize() - Error not flagged for " + "invalid size!" ); + errlCommit( err, + SPD_COMP_ID ); + continue; } - - if( err ) + else { - break; + // Delete the error and continue + delete err; + err = NULL; + continue; } } while( 0 ); |