summaryrefslogtreecommitdiffstats
path: root/src/usr/scom
diff options
context:
space:
mode:
authorMissy Connell <missyc@us.ibm.com>2012-04-25 14:29:54 -0500
committerA. Patrick Williams III <iawillia@us.ibm.com>2012-05-09 10:59:46 -0500
commit91d3c3f897bdeb6bab4259eafaa42b24b669b1d2 (patch)
tree4426f49054ec0119e04099250032c68bed3bcf55 /src/usr/scom
parent7362a70f4b11b12578c938cb40a0143f6bfeda7d (diff)
downloadtalos-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/scom')
-rw-r--r--src/usr/scom/test/scomtest.H56
1 files changed, 51 insertions, 5 deletions
diff --git a/src/usr/scom/test/scomtest.H b/src/usr/scom/test/scomtest.H
index 066dcaca6..29eeec729 100644
--- a/src/usr/scom/test/scomtest.H
+++ b/src/usr/scom/test/scomtest.H
@@ -101,9 +101,9 @@ public:
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> useFsiScom set to zero on target %d", x );
scom_targets[x] = NULL; //remove from our list
}
- else if( !FSI::isSlavePresent(scom_targets[x]) )
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
- TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> Target %d is not present", x );
+ TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_proc> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
}
}
@@ -243,9 +243,9 @@ public:
TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> useFsiScom set to zero on target %d", x );
scom_targets[x] = NULL; //remove from our list
}
- else if( !FSI::isSlavePresent(scom_targets[x]) )
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
{
- TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> Target %d is not present", x );
+ TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> Target %d is not functional", x );
scom_targets[x] = NULL; //remove from our list
}
}
@@ -389,6 +389,12 @@ public:
TRACDCOMP(g_trac_scom, "INDIRECT SCOM>> SKIPPING ");
scom_targets[x] = NULL; //remove from our list
}
+ else if (scom_targets[x]->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_FSISCOMreadWrite_centaur> Target %d is not functional", x );
+ scom_targets[x] = NULL; //remove from our list
+ }
+
}
@@ -570,6 +576,13 @@ public:
{
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_EX> Target %d is not functional", x );
+ continue;
+ }
+
op_size = sizeof(uint64_t);
@@ -750,6 +763,12 @@ public:
{
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MCS> Target %d is not functional", x );
+ continue;
+ }
op_size = sizeof(uint64_t);
@@ -929,6 +948,13 @@ public:
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MCS_DMI> Target %d is not functional", x );
+ continue;
+ }
+
op_size = sizeof(uint64_t);
total++;
@@ -1093,6 +1119,13 @@ public:
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_MBA_MBS> Target %d is not functional", x );
+ continue;
+ }
+
op_size = sizeof(uint64_t);
total++;
@@ -1105,7 +1138,7 @@ public:
// checking the read of NUM_ADDRs - 1 because the last entry written above failed as expected.
if ((x == NUM_ADDRS-1) || (x==NUM_ADDRS-2))
{
- TRACDCOMP( g_trac_scom, "ScomTest::test_translate MCS.. Expected Errorlog Returned> x = %d", x );
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate MBA_MBS.. Expected Errorlog Returned> x = %d", x );
}
else
{
@@ -1274,6 +1307,13 @@ public:
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_ABUS> Target %d is not functional", x );
+ continue;
+ }
+
op_size = sizeof(uint64_t);
total++;
@@ -1453,6 +1493,12 @@ public:
{
continue;
}
+ // check to see if the target is functional.. if not.. skip this target
+ else if (test_data[x].target->getAttr<TARGETING::ATTR_HWAS_STATE>().functional != true)
+ {
+ TRACDCOMP( g_trac_scom, "ScomTest::test_translate_scom_XBUS> Target %d is not functional", x );
+ continue;
+ }
op_size = sizeof(uint64_t);
OpenPOWER on IntegriCloud