summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/test
diff options
context:
space:
mode:
authorNick Bofferding <bofferdn@us.ibm.com>2011-10-27 13:24:47 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2011-11-15 16:57:35 -0600
commit22b8b1dc178665eb32f923e47211f549b4d1913f (patch)
tree8d3dd9cff7df3767012c856ff8739ef0cadc6434 /src/usr/targeting/test
parent1595ed5f5602346579dba1f8714d3092f50e928f (diff)
downloadtalos-hostboot-22b8b1dc178665eb32f923e47211f549b4d1913f.tar.gz
talos-hostboot-22b8b1dc178665eb32f923e47211f549b4d1913f.zip
Add Centaurs to target/attribute model
- Create/update Centaur chips, MBS, MBA units - Add unit testcase to query the Centaurs - Update the Venice, VBU target instances - Increase max endpoint pairs to 10 - Other general model updates for compatibility, consistency - Register FSISCOM and SCOM operations with DD framework for Centaur chips Change-Id: If43bc57888e66b7d2ea53704ca703328eec844f9 Reviewed-on: http://gfw160.austin.ibm.com:8080/gerrit/465 Tested-by: Jenkins Server Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/test')
-rw-r--r--src/usr/targeting/test/targetingtest.H46
1 files changed, 46 insertions, 0 deletions
diff --git a/src/usr/targeting/test/targetingtest.H b/src/usr/targeting/test/targetingtest.H
index e86ca08c1..a2a25ab34 100644
--- a/src/usr/targeting/test/targetingtest.H
+++ b/src/usr/targeting/test/targetingtest.H
@@ -1290,6 +1290,52 @@ class TargetingTestSuite: public CxxTest::TestSuite
TS_TRACE(EXIT_MRK "testPodNumericalTypes" );
}
+
+ void testCentaurs()
+ {
+ TS_TRACE(ENTER_MRK "testCentaurs" );
+
+ using namespace TARGETING;
+
+ PredicateCTM l_procChip(CLASS_CHIP,TYPE_PROC,MODEL_VENICE);
+ TargetRangeFilter l_filter(
+ targetService().begin(),
+ targetService().end(),
+ &l_procChip);
+
+ PredicateCTM l_mbs(CLASS_UNIT,TYPE_MBS);
+ uint32_t l_count = 0;
+ uint32_t l_procs = 0;
+
+ // For each processor
+ for(;l_filter;++l_filter)
+ {
+ l_procs++;
+
+ TargetHandleList l_list;
+ (void) targetService().getAssociated(
+ l_list,
+ *l_filter,
+ TARGETING::TargetService::CHILD_BY_AFFINITY,
+ TARGETING::TargetService::ALL,
+ &l_mbs);
+ l_count += l_list.size();
+ }
+
+ if(l_procs)
+ {
+ if(l_count <= 0)
+ {
+ TS_FAIL("Did not find any Centaur chips connected to processors");
+ }
+ else
+ {
+ TS_TRACE("Found %d Centaur chips connected to processors",l_count);
+ }
+ }
+
+ TS_TRACE(EXIT_MRK "testCentaurs" );
+ }
};
#endif // End __TESTTARGETING_H
OpenPOWER on IntegriCloud