summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* blob: implement deleteBlob commandBrandon Kim2019-10-181-0/+28
| | | | | | | | Implement the deleteBlob command for the blob handler. Adding a unit test to go along with it. Change-Id: I2bbc93a6e78d5311bd2033d6a8b179374777f794 Signed-off-by: Brandon Kim <brandonkim@google.com>
* ipmi: pull the netfn and command into parametersPatrick Venture2019-05-311-34/+81
| | | | | | | | | Pull the netfn and cmd into parameters instead of hard-coding them for blob commands. Tested: Only ran unit-tests. Change-Id: I1a73de32e14cc78ece94a26f6c447824af88c984 Signed-off-by: Patrick Venture <venture@google.com>
* move blob command enum to blob_interface headerPatrick Venture2019-05-201-31/+62
| | | | | | | | Move the blob command enum to the blob_interface header that can be safely included by other code. Change-Id: If7c613cac9bdd460fc9a6cb3b59e4fc0dd3a861d Signed-off-by: Patrick Venture <venture@google.com>
* blob: implement commit commandPatrick Venture2019-05-141-0/+22
| | | | | | | Implement the commit command for the blob handler. Change-Id: Ia3be86083991cbdf7fe85c15986f4e1cb60971f5 Signed-off-by: Patrick Venture <venture@google.com>
* blob_handler: move from raw to managed pointerPatrick Venture2019-05-131-35/+69
| | | | | | | | | The blob handler object wants to explictly own its ipmi interface so that it can't be shared. This was a good-behavior, but now this codefies it. Change-Id: Ie368721a58dc30573f37dc3824da230aca5328d3 Signed-off-by: Patrick Venture <venture@google.com>
* implement session stat commandPatrick Venture2019-05-061-0/+30
| | | | | | | Implement the session stat command. Change-Id: I1ff715dd32d963722182db84b475bc9adbfcc7ea Signed-off-by: Patrick Venture <venture@google.com>
* test: add mock build testPatrick Venture2019-05-062-0/+22
| | | | | | | | Avoid breaking downstream dependencies by building the mocks that are exported. Change-Id: If171910dcff4fdd90d88d7aa611891c9c3fc4b85 Signed-off-by: Patrick Venture <venture@google.com>
* unit-test: use library instead of object filesPatrick Venture2019-03-191-3/+3
| | | | | | | | | | Use the library object instead of the specific object files for proper coverage functionality. Tested: Verified coverage output. Change-Id: Ia9ca935e774160ef5a83a823489160aa95a09169 Signed-off-by: Patrick Venture <venture@google.com>
* autotools: Fix for autoconf-archive 2019.01.19Patrick Venture2019-03-181-1/+0
| | | | | | | | | The code coverage macros from the archive changed in a backward incompatible way. This adds a workaround to autodetect either version and do the right thing. Change-Id: I4258fab8811f07760ebd73e8ac55c8493370e19b Signed-off-by: Patrick Venture <venture@google.com>
* install crc_mock headerPatrick Venture2019-03-072-25/+1
| | | | | | | | Install the crc_mock header for use in unit-tests in projects leveraging this implementation of CRC. Change-Id: Ia84caedb51e125ff3b051f93470990e44ff2540d Signed-off-by: Patrick Venture <venture@google.com>
* test: add unit-tests for the crc modulePatrick Venture2019-03-072-0/+48
| | | | | | | | Copied the unit-tests from phosphor-ipmi-blobs. The CRC module there will be dropped in favor of this one. Change-Id: I875ec67820218c7b9d1feec8aee84cdbbe84df54 Signed-off-by: Patrick Venture <venture@google.com>
* move internal namespace under ipmiblob namespacePatrick Venture2019-03-071-0/+3
| | | | | | | | | Avoid collisions if anyone else has this class under their own internal namespace by properly wrapping this internal namespace under the library's. Change-Id: I935c017cc109f12b339f4c65258ee43a03b3a3d5 Signed-off-by: Patrick Venture <venture@google.com>
* namespace: s/host_tool/ipmiblob/gPatrick Venture2019-03-063-6/+6
| | | | | | | Renamed the namespace to encapsulate the library. Change-Id: I3deb82df5cf6916c505b57864e22a412542c9b6c Signed-off-by: Patrick Venture <venture@google.com>
* initial commitPatrick Venture2019-03-066-0/+414
Add initial code from phosphor-ipmi-flash/tools that was not specific to firmware update over ipmi-blobs. Change-Id: I360537a7392347fe989397a699f6a712bc36e62c Signed-off-by: Patrick Venture <venture@google.com>
OpenPOWER on IntegriCloud