summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMatt Spinler <spinler@us.ibm.com>2019-12-02 15:42:01 -0600
committerMatt Spinler <spinler@us.ibm.com>2019-12-09 13:47:57 -0600
commitcad9c2bd9e8ffb6e6db297d8d71b9733aae96e1e (patch)
tree07c0e2ba7986d03776735f32d4dbd05f185ecbe5 /test
parent86c703629d8d70434b7d9cc642578f70a78818bc (diff)
downloadphosphor-logging-cad9c2bd9e8ffb6e6db297d8d71b9733aae96e1e.tar.gz
phosphor-logging-cad9c2bd9e8ffb6e6db297d8d71b9733aae96e1e.zip
PEL: Add APIs to read the FW versions
Add methods to the DataInterface class to read the BMC and server firmware versions. The server firmware version represents the version of all firmware images that are in the flash image, not just the BMC. There is nowhere to get that version yet, so this commit just has a placeholder. These will be used by the ExtendedUserHeader section. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: I47389714c987337cb96c72b6bf2b270c78003357
Diffstat (limited to 'test')
-rw-r--r--test/openpower-pels/mocks.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/openpower-pels/mocks.hpp b/test/openpower-pels/mocks.hpp
index f6bd86a..1dc0902 100644
--- a/test/openpower-pels/mocks.hpp
+++ b/test/openpower-pels/mocks.hpp
@@ -15,6 +15,8 @@ class MockDataInterface : public DataInterfaceBase
}
MOCK_CONST_METHOD0(getMachineTypeModel, std::string());
MOCK_CONST_METHOD0(getMachineSerialNumber, std::string());
+ MOCK_CONST_METHOD0(getServerFWVersion, std::string());
+ MOCK_CONST_METHOD0(getBMCFWVersion, std::string());
};
} // namespace pels
OpenPOWER on IntegriCloud