diff options
author | Matt Spinler <spinler@us.ibm.com> | 2015-02-16 13:26:59 -0600 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2015-02-28 05:47:24 -0600 |
commit | f35706cfa0329dabc11dee332253afb0dae22232 (patch) | |
tree | d815d99ebb42692422f37753fe89ea18aa49ecd2 /src/usr/htmgt/test | |
parent | a50a539ac062255f4975bf7becb4a903ab75ae22 (diff) | |
download | talos-hostboot-f35706cfa0329dabc11dee332253afb0dae22232.tar.gz talos-hostboot-f35706cfa0329dabc11dee332253afb0dae22232.zip |
Send real sensor numbers to the OCC.
Change-Id: I54fc9282381139b67df92cff2e8e5619a89e62aa
RTC: 121742
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/15761
Tested-by: Jenkins Server
Reviewed-by: Douglas R. Gilbert <dgilbert@us.ibm.com>
Reviewed-by: Christopher Cain <cjcain@us.ibm.com>
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/htmgt/test')
-rw-r--r-- | src/usr/htmgt/test/htmgtcfgtest.H | 49 |
1 files changed, 29 insertions, 20 deletions
diff --git a/src/usr/htmgt/test/htmgtcfgtest.H b/src/usr/htmgt/test/htmgtcfgtest.H index c23cd2ff3..57bc5bf67 100644 --- a/src/usr/htmgt/test/htmgtcfgtest.H +++ b/src/usr/htmgt/test/htmgtcfgtest.H @@ -5,7 +5,7 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* Contributors Listed Below - COPYRIGHT 2014 */ +/* Contributors Listed Below - COPYRIGHT 2014,2015 */ /* [+] International Business Machines Corp. */ /* */ /* */ @@ -347,36 +347,45 @@ public: void testSystemConfigData() { + TargetHandleList occs; + TargetHandleList::iterator occ; uint8_t data[4*KILOBYTE]; uint64_t size = 0; TS_TRACE(ENTER_MRK"HTMGT: testSystemConfigData"); - getSystemConfigMessageData(data, size); + getAllChiplets(occs, TYPE_OCC, true); - if (data[0] != OCC_CFGDATA_SYS_CONFIG) + for (occ=occs.begin();occ!=occs.end();++occ) { - TS_FAIL("Wrong format 0x%X for system config data command", - data[0]); - } + memset(data, 0, 4*KILOBYTE); - if (data[1] != 0x10) - { - TS_FAIL("Wrong version 0x%X for system config data command", - data[1]); - } + getSystemConfigMessageData(*occ, data, size); + if (data[0] != OCC_CFGDATA_SYS_CONFIG) + { + TS_FAIL("Wrong format 0x%X for system config data command", + data[0]); + } - if (data[2] != OCC_CFGDATA_OPENPOWER_SYSTEMTYPE) - { - TS_FAIL("wrong system type 0x%X for system config data command", - data[2]); - } + if (data[1] != 0x10) + { + TS_FAIL("Wrong version 0x%X for system config data command", + data[1]); + } - if (size != 57) - { - TS_FAIL("wrong size %d for system config data command", - size); + + if (data[2] != OCC_CFGDATA_OPENPOWER_SYSTEMTYPE) + { + TS_FAIL("wrong system type 0x%X for system config data command", + data[2]); + } + + if (size != 57) + { + TS_FAIL("wrong size %d for system config data command", + size); + } } } |