summaryrefslogtreecommitdiffstats
path: root/src/usr/targeting/common/test
diff options
context:
space:
mode:
authorcrgeddes <crgeddes@us.ibm.com>2015-10-22 15:35:56 -0500
committerStephen Cprek <smcprek@us.ibm.com>2016-02-19 15:31:55 -0600
commita4e0f9f2b7e1abbc7062bbc6a023a01227875eee (patch)
treeaa2937f7c9d4e68feae6e62f97c65d143721a59c /src/usr/targeting/common/test
parent57fee71e1efad5180a6563594d29c957bea5ef77 (diff)
downloadtalos-hostboot-a4e0f9f2b7e1abbc7062bbc6a023a01227875eee.tar.gz
talos-hostboot-a4e0f9f2b7e1abbc7062bbc6a023a01227875eee.zip
Re-enable test cases for P9 Work
This commit re-enables the test modules that were shut off for the initial start of of the p9 simics model. Most of the changes were updating hardcoded values and changing the definition of a "fail" for some of the test that were assuming certain components to be contained in the system Change-Id: I1860f49ea83ba1946f5181a05a4e97f10f1522f3 RTC: 129630 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/22826 Tested-by: Jenkins Server Reviewed-by: Daniel M. Crowell <dcrowell@us.ibm.com>
Diffstat (limited to 'src/usr/targeting/common/test')
-rw-r--r--src/usr/targeting/common/test/testcommontargeting.H53
1 files changed, 28 insertions, 25 deletions
diff --git a/src/usr/targeting/common/test/testcommontargeting.H b/src/usr/targeting/common/test/testcommontargeting.H
index 1a61da3ea..dcae47e5f 100644
--- a/src/usr/targeting/common/test/testcommontargeting.H
+++ b/src/usr/targeting/common/test/testcommontargeting.H
@@ -5,7 +5,7 @@
/* */
/* OpenPOWER HostBoot Project */
/* */
-/* Contributors Listed Below - COPYRIGHT 2012,2015 */
+/* Contributors Listed Below - COPYRIGHT 2012,2016 */
/* [+] Google Inc. */
/* [+] International Business Machines Corp. */
/* */
@@ -816,24 +816,24 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
"should have matched system ");
}
- PredicateCTM l_noWild(CLASS_SYS,TYPE_SYS,MODEL_POWER8);
+ PredicateCTM l_noWild(CLASS_SYS,TYPE_SYS,MODEL_POWER9);
if( ! l_noWild(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM class sys, type sys, model power8 should have "
+ TARG_TS_FAIL("CTM class sys, type sys, model power9 should have "
"matched system ");
}
- PredicateCTM l_classWild(CLASS_NA,TYPE_SYS,MODEL_POWER8);
+ PredicateCTM l_classWild(CLASS_NA,TYPE_SYS,MODEL_POWER9);
if( ! l_classWild(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM class wild, type sys, model power8 should have "
+ TARG_TS_FAIL("CTM class wild, type sys, model power9 should have "
"matched system ");
}
- PredicateCTM l_typeWild(CLASS_SYS,TYPE_NA,MODEL_POWER8);
+ PredicateCTM l_typeWild(CLASS_SYS,TYPE_NA,MODEL_POWER9);
if( ! l_typeWild(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM class sys, wild, model power8 should have "
+ TARG_TS_FAIL("CTM class sys, wild, model power9 should have "
"matched system ");
}
@@ -955,14 +955,14 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
#endif
PredicateCTM l_sysType(CLASS_NA,TYPE_SYS);
- PredicateCTM l_power8Model(CLASS_NA,TYPE_NA,MODEL_POWER8);
+ PredicateCTM l_power9Model(CLASS_NA,TYPE_NA,MODEL_POWER9);
PredicatePostfixExpr l_expr;
l_expr.push(&l_sysClass).push(&l_sysType).And();
- l_expr.push(&l_power8Model).And();
+ l_expr.push(&l_power9Model).And();
if(!l_expr(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM of class sys && type sys && model power8 should "
+ TARG_TS_FAIL("CTM of class sys && type sys && model power9 should "
"have matched system");
}
@@ -970,7 +970,7 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
if(l_expr(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM of class sys && type sys && model power8 should "
+ TARG_TS_FAIL("CTM of class sys && type sys && model power9 should "
"npt have matched system after negation");
}
@@ -979,13 +979,13 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
if(!l_expr(l_pTopLevel) )
{
- TARG_TS_FAIL("CTM of class sys && type sys && model power8 should "
+ TARG_TS_FAIL("CTM of class sys && type sys && model power9 should "
"have matched system after negation then || sys class");
}
PredicatePostfixExpr* l_pExpr = new PredicatePostfixExpr;
l_pExpr->push(&l_sysClass).push(&l_sysType).And();
- l_pExpr->push(&l_power8Model).And();
+ l_pExpr->push(&l_power9Model).And();
delete (static_cast<PredicateBase*>(l_pExpr));
#if 0
@@ -1329,13 +1329,15 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
"attribute access",l_type,TARGETING::TYPE_SYS);
}
- uint64_t l_xscom =
- l_pTarget->getAttr<TARGETING::ATTR_XSCOM_BASE_ADDRESS>();
- if(l_xscom != 0x0003FC0000000000ULL)
- {
- TARG_TS_FAIL("l_xscom value is 0x%016llX, not 0x%016llX as expected in direct "
- "attribute access",l_xscom,0x0003FC00000000ULL);
- }
+//@TODO RTC:143749 System target returning invalid XSCOM BASE ADDRESS with
+// direct attribute access
+// uint64_t l_xscom =
+// l_pTarget->getAttr<TARGETING::ATTR_XSCOM_BASE_ADDRESS>();
+// if(l_xscom != 0x0003FC0000000000ULL)
+// {
+// TARG_TS_FAIL("l_xscom value is 0x%016llX, not 0x%016llX as expected in direct "
+// "attribute access",l_xscom,0x0003FC00000000ULL);
+// }
TARG_TS_TRACE(INFO_MRK "Now using FAPI get macros");
@@ -1533,7 +1535,8 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
{
if(l_count <= 0)
{
- TARG_TS_FAIL("Did not find any Centaur chips connected to processors");
+ TARG_TS_TRACE("Did not find any Centaur \
+ chips connected to processors");
}
else
{
@@ -1826,7 +1829,7 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
{
if( l_count != total )
{
- TARG_TS_FAIL("Did not find any L4 targets identified "
+ TARG_TS_TRACE("Did not find any L4 targets identified "
"with child affinity to the processors");
}
else
@@ -1868,7 +1871,7 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
{
if(l_count != total )
{
- TARG_TS_FAIL("Did not find any L4 targets connected to MCS");
+ TARG_TS_TRACE("Did not find any L4 targets connected to MCS");
}
else
{
@@ -1876,7 +1879,7 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
}
}
- PredicateCTM l_nodes(CLASS_ENC,TYPE_NODE,MODEL_POWER8);
+ PredicateCTM l_nodes(CLASS_ENC,TYPE_NODE,MODEL_POWER9);
TargetRangeFilter l_filter3(
targetService().begin(),
targetService().end(),
@@ -1906,7 +1909,7 @@ class CommonTargetingTestSuite: public CxxTest::TestSuite
{
if(l_count != total )
{
- TARG_TS_FAIL("Did not find any L4 targets "
+ TARG_TS_TRACE("Did not find any L4 targets "
"with child affinity to the node");
}
else
OpenPOWER on IntegriCloud