History log of /openbmc/phosphor-host-postd/test/ (Results 1 – 10 of 10)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
fad2660124-Jun-2024 Willy Tu <wltu@google.com>

test: Initialize slot in SdBusMock

In the default constructor for SdBusMock the slot was initialized and
we override it in this test case which can lead to memory errors.

Change-Id: I522ee63505d988

test: Initialize slot in SdBusMock

In the default constructor for SdBusMock the slot was initialized and
we override it in this test case which can lead to memory errors.

Change-Id: I522ee63505d98861a1d45abd01144d1eef7aa727
Signed-off-by: Willy Tu <wltu@google.com>

show more ...

0ea7357e10-May-2023 Patrick Williams <patrick@stwcx.xyz>

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest

clang-format: copy latest and re-format

clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.

Change-Id: I509c8567baedea7c86787f2e880900da13ebfc9f
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

aebf87cc22-Jul-2022 Patrick Williams <patrick@stwcx.xyz>

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are

sdbusplus: use shorter type aliases

The sdbusplus headers provide shortened aliases for many types.
Switch to using them to provide better code clarity and shorter
lines. Possible replacements are for:
* bus_t
* exception_t
* manager_t
* match_t
* message_t
* object_t
* slot_t

Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
Change-Id: Ie85ba085aedffd41bcb6310ee57adb86cb68273d

show more ...

0269eaf311-Aug-2021 Kumar Thangavel <thangavel.k@hcl.com>

Add multi-host postcode support

These changes add the multiple host postcode implementation.
In addition to the LPC snoop the postcode can be read via D-Bus
interface.The same is displayed in seven

Add multi-host postcode support

These changes add the multiple host postcode implementation.
In addition to the LPC snoop the postcode can be read via D-Bus
interface.The same is displayed in seven segment display thorough
GPIO lines.

The design can be refered at
https://gerrit.openbmc-project.xyz/c/openbmc/docs/+/35065

Tested:

Verified in Facebook Tiogapass & Yosemitev2 platforms.

1.The postcode displayed in the seven segment corresponding to the
host position selected in the frontpanel of Facebook
yosemitev2(4 host).

2.The postcode history is verified in the respective host directory
"/var/lib/phosphor-post-code-manager/hostX(1,2,3,4)".

Signed-off-by: Kumar Thangavel <thangavel.k@hcl.com>
Change-Id: Id79ad00652bfedd319d3b8ccf1aafbdc60b33d86

show more ...

ba5258f725-Feb-2021 Manojkiran Eda <manojkiran.eda@gmail.com>

Fix code to consume the secondary code

- The snooping daemon was coded to fill the Raw Value dbus
property with uint64_t signature.

- The intent behind this commit is to work with the changed
d

Fix code to consume the secondary code

- The snooping daemon was coded to fill the Raw Value dbus
property with uint64_t signature.

- The intent behind this commit is to work with the changed
dbus backend from uint64_t to struct[uint64_t,array[byte]].

- The phosphor dbus interface change is documented in the below
commit :
https://gerrit.openbmc-project.xyz/c/openbmc/phosphor-dbus-interfaces/+/40903

Tested By:

- As the ibm systems does not a snooping port, i have done the
unittesting & all the unit tests are PASSED with a system that
has the above mentioned dbus interface change.

root@witherspoon:/tmp# ./post_reporter_test
[==========] Running 5 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 5 tests from PostReporterTest
[ RUN ] PostReporterTest.EmitsObjectsOnExpectedDbusPath
[ OK ] PostReporterTest.EmitsObjectsOnExpectedDbusPath (17 ms)
[ RUN ] PostReporterTest.AddsObjectWithExpectedName
[ OK ] PostReporterTest.AddsObjectWithExpectedName (5 ms)
[ RUN ] PostReporterTest.ValueReadsDefaultToZero
[ OK ] PostReporterTest.ValueReadsDefaultToZero (1 ms)
[ RUN ] PostReporterTest.SetValueToPositiveValueWorks
[ OK ] PostReporterTest.SetValueToPositiveValueWorks (2 ms)
[ RUN ] PostReporterTest.SetValueMultipleTimesWorks
[ OK ] PostReporterTest.SetValueMultipleTimesWorks (2 ms)
[----------] 5 tests from PostReporterTest (34 ms total)

[----------] Global test environment tear-down
[==========] 5 tests from 1 test suite ran. (40 ms total)
[ PASSED ] 5 tests.

Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: Id0a79fcddc827d34f9d2a61ab14d8c9c4be522b5

show more ...

c80e59fe06-Apr-2020 Kun Yi <kunyi731@gmail.com>

Remove autotools

Remove autotools build in favor of meson.

Change-Id: Idb9c68dc79e6df21c01b01f7a323e6d281ca55d4
Signed-off-by: Kun Yi <kunyi731@gmail.com>
Signed-off-by: Patrick Williams <patrick@s

Remove autotools

Remove autotools build in favor of meson.

Change-Id: Idb9c68dc79e6df21c01b01f7a323e6d281ca55d4
Signed-off-by: Kun Yi <kunyi731@gmail.com>
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>

show more ...

0d14a59e06-Apr-2020 Kun Yi <kunyi731@gmail.com>

Add meson support

Add meson as an alternative build system.

Change-Id: If58674e6fd19d0165ecc73ae677c2a5ad6b30075
Signed-off-by: Kun Yi <kunyi731@gmail.com>

b5754fd410-Sep-2018 Patrick Venture <venture@google.com>

Update .clang-format

Per sdbusplus's clang-format file.

Change-Id: Ib7868577dda1bc7ccb300a305e9a3c65efab136c
Signed-off-by: Patrick Venture <venture@google.com>

35b6c67c11-Jun-2018 Kun Yi <kunyi731@gmail.com>

snoop.h/main.cpp: Add first tests for PostReporter class

Add unit tests for PostReporter DBus object path, reading, and updating.
Move the class definition to the header file such that the
tests can

snoop.h/main.cpp: Add first tests for PostReporter class

Add unit tests for PostReporter DBus object path, reading, and updating.
Move the class definition to the header file such that the
tests can access it.

Tested: unit tests pass.

Change-Id: I4d3571ccd5455297d6b02ed74ed789fe05e40979
Signed-off-by: Kun Yi <kunyi731@gmail.com>

show more ...

2ae207c211-Jun-2018 Kun Yi <kunyi731@gmail.com>

test: Adding dummy test for post reporter class.

Tested: 'make check' works.

Change-Id: I4448beef2a5878a6d6c4e33cb09b78c6959481be
Signed-off-by: Kun Yi <kunyi731@gmail.com>