History log of /openbmc/phosphor-objmgr/src/test/util/ (Results 1 – 15 of 15)
Revision Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
7dd2029e29-Jul-2025 Brad Bishop <bradbish@qti.qualcomm.com>

build: fix -Wmissing-prototype

This helps make the author's original intent clear. Tested by building
and running the unit tests with clang.

Change-Id: If0231ec5634adad0b61e7fcff8ec1e5bcbbb92c1
Si

build: fix -Wmissing-prototype

This helps make the author's original intent clear. Tested by building
and running the unit tests with clang.

Change-Id: If0231ec5634adad0b61e7fcff8ec1e5bcbbb92c1
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>

show more ...

e5cb4aec15-Jul-2025 Brad Bishop <bradbish@qti.qualcomm.com>

build: fix -Wmissing-variable-declarations

This helps make the author's original intent clear. Tested by building
and running the unit tests with clang.

Change-Id: Iaf0aca72b5a8cc931bcb84c27df1c55

build: fix -Wmissing-variable-declarations

This helps make the author's original intent clear. Tested by building
and running the unit tests with clang.

Change-Id: Iaf0aca72b5a8cc931bcb84c27df1c55d2f438dda
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>

show more ...

7f900ff929-Jul-2025 Brad Bishop <bradbish@qti.qualcomm.com>

tidy: fix performance-avoid-endl

Tested by building the code.

Change-Id: I3de027d34b3e91bc08923b47bda16b0b0f4b34b4
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>

93d664fc29-Jul-2025 Brad Bishop <bradbish@qti.qualcomm.com>

codespell: run and fix

Fix the misspellings. Tested by building the code and running the unit
tests.

Change-Id: I3fb3f1f46fa41bb0c65157ff6e68bc4f1079f280
Signed-off-by: Brad Bishop <bradbish@qti.q

codespell: run and fix

Fix the misspellings. Tested by building the code and running the unit
tests.

Change-Id: I3fb3f1f46fa41bb0c65157ff6e68bc4f1079f280
Signed-off-by: Brad Bishop <bradbish@qti.qualcomm.com>

show more ...

d884cdf701-Feb-2025 Patrick Williams <patrick@stwcx.xyz>

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

Change-Id: I555df8382455157bff44671b6f284e3121d5c182
Signed-off-by: Patrick Williams <p

clang-format: update latest spec and reformat

Copy the latest format file from the docs repository and apply.

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

show more ...


/openbmc/phosphor-objmgr/.clang-format
/openbmc/phosphor-objmgr/OWNERS
/openbmc/phosphor-objmgr/README.md
/openbmc/phosphor-objmgr/fail-monitor/main.cpp
/openbmc/phosphor-objmgr/fail-monitor/monitor.hpp
/openbmc/phosphor-objmgr/libmapper/app.c
/openbmc/phosphor-objmgr/libmapper/internal.h
/openbmc/phosphor-objmgr/libmapper/mapper.c
/openbmc/phosphor-objmgr/libmapper/mapper.h
/openbmc/phosphor-objmgr/libmapper/test/utils.c
/openbmc/phosphor-objmgr/libmapper/test/utils.h
/openbmc/phosphor-objmgr/meson.build
/openbmc/phosphor-objmgr/meson.options
/openbmc/phosphor-objmgr/src/associations.cpp
/openbmc/phosphor-objmgr/src/associations.hpp
/openbmc/phosphor-objmgr/src/dbus/xyz.openbmc_project.ObjectMapper.conf
/openbmc/phosphor-objmgr/src/dbus/xyz.openbmc_project.ObjectMapper.service
/openbmc/phosphor-objmgr/src/handler.cpp
/openbmc/phosphor-objmgr/src/handler.hpp
/openbmc/phosphor-objmgr/src/main.cpp
/openbmc/phosphor-objmgr/src/processing.cpp
/openbmc/phosphor-objmgr/src/processing.hpp
/openbmc/phosphor-objmgr/src/systemd/mapper-subtree-remove@.service.in
/openbmc/phosphor-objmgr/src/systemd/mapper-wait@.service.in
/openbmc/phosphor-objmgr/src/systemd/xyz.openbmc_project.ObjectMapper.service.in
/openbmc/phosphor-objmgr/src/test/associations.cpp
/openbmc/phosphor-objmgr/src/test/handler.cpp
/openbmc/phosphor-objmgr/src/test/interfaces_added.cpp
/openbmc/phosphor-objmgr/src/test/meson.build
/openbmc/phosphor-objmgr/src/test/name_change.cpp
/openbmc/phosphor-objmgr/src/test/need_to_introspect.cpp
association_objects.hpp
/openbmc/phosphor-objmgr/subprojects/CLI11.wrap
/openbmc/phosphor-objmgr/subprojects/boost.wrap
/openbmc/phosphor-objmgr/subprojects/tinyxml2.wrap
964681ca08-Jul-2022 Ed Tanous <edtanous@google.com>

Modernize mapper core types

There's a number of best practices that have evolved in our use of
flat_maps and flat_sets since this code was originally written.

First, add std::less<> to the Compare

Modernize mapper core types

There's a number of best practices that have evolved in our use of
flat_maps and flat_sets since this code was originally written.

First, add std::less<> to the Compare template argument. The default
for this is std::less<Key> which limits find() calls (and any lookup for
that matter) to only supporting std::string. Using std::less<> allows
lookup by std::string_view, which can prevent some copies in some cases.

Next, add std::vector<...> to the types under the AllocatorOrContainer
template arg. Per our coding standard, this overrides the default of
using boost::vector, and replaces it with std::vector, which, although
it has a very similar interface, tends to optimize better, and be better
supported overall.

The rest of this patch updates a couple places where the various types
were specifically hardcoded, so it moves to using the various using
declarations.

Tested: Unit tests; Next patch tests this more fully.

Change-Id: I11e8ecb669f31193c55dda344b25d3fa5d191502
Signed-off-by: Ed Tanous <edtanous@google.com>

show more ...

1f62380a31-May-2022 Brad Bishop <bradleyb@fuzziesquirrel.com>

lint: fix trivial clang tidy errors

Change-Id: Ie5395004a451d6168249f56f75c5e6ae31dca4af
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

a098a37a05-May-2022 Brad Bishop <bradleyb@fuzziesquirrel.com>

style: comply with OpenBMC style guidelines

Change-Id: I72f86c59a0502777c861de901907c0a556c4c6c5
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>


/openbmc/phosphor-objmgr/.clang-format
/openbmc/phosphor-objmgr/.gitignore
/openbmc/phosphor-objmgr/MAINTAINERS
/openbmc/phosphor-objmgr/OWNERS
/openbmc/phosphor-objmgr/README.md
/openbmc/phosphor-objmgr/fail-monitor/monitor.cpp
/openbmc/phosphor-objmgr/fail-monitor/monitor.hpp
/openbmc/phosphor-objmgr/libmapper/.clang-format
/openbmc/phosphor-objmgr/libmapper/app.c
/openbmc/phosphor-objmgr/libmapper/mapper.c
/openbmc/phosphor-objmgr/libmapper/mapper.h
/openbmc/phosphor-objmgr/libmapper/test/meson.build
/openbmc/phosphor-objmgr/meson.build
/openbmc/phosphor-objmgr/meson_options.txt
/openbmc/phosphor-objmgr/src/argument.cpp
/openbmc/phosphor-objmgr/src/argument.hpp
/openbmc/phosphor-objmgr/src/associations.cpp
/openbmc/phosphor-objmgr/src/associations.hpp
/openbmc/phosphor-objmgr/src/main.cpp
/openbmc/phosphor-objmgr/src/processing.cpp
/openbmc/phosphor-objmgr/src/processing.hpp
/openbmc/phosphor-objmgr/src/test/associations.cpp
/openbmc/phosphor-objmgr/src/test/interfaces_added.cpp
/openbmc/phosphor-objmgr/src/test/meson.build
/openbmc/phosphor-objmgr/src/test/name_change.cpp
/openbmc/phosphor-objmgr/src/test/need_to_introspect.cpp
association_objects.hpp
debug_output.hpp
/openbmc/phosphor-objmgr/src/test/well_known.cpp
/openbmc/phosphor-objmgr/src/types.hpp
/openbmc/phosphor-objmgr/subprojects/.clang-format
/openbmc/phosphor-objmgr/subprojects/googletest.wrap
/openbmc/phosphor-objmgr/subprojects/phosphor-dbus-interfaces.wrap
/openbmc/phosphor-objmgr/subprojects/phosphor-logging.wrap
/openbmc/phosphor-objmgr/subprojects/sdbusplus.wrap
efd5827503-Aug-2021 Brad Bishop <bradleyb@fuzziesquirrel.com>

tests: fix use-after-free

sdbusplus::asio::connection saves a reference to the io context passed
to its constructor so we need to increase its scope.

Change-Id: Ia1bf05871329a06ec39e6c0cef17e92c0d3

tests: fix use-after-free

sdbusplus::asio::connection saves a reference to the io context passed
to its constructor so we need to increase its scope.

Change-Id: Ia1bf05871329a06ec39e6c0cef17e92c0d37b138
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>

show more ...

e0b0e3a208-Apr-2019 Matt Spinler <spinler@us.ibm.com>

Check for missing endpoints when adding assocs

An association links 2 D-Bus object paths together, one
which is the path that has the original associations
property, and another endpoint path. It's

Check for missing endpoints when adding assocs

An association links 2 D-Bus object paths together, one
which is the path that has the original associations
property, and another endpoint path. It's possible that
that endpoint path doesn't exist on D-Bus when that
associations property is created.

This commit, along with upcoming ones, adds support to not
create the actual association object paths until that
endpoint path shows up on D-Bus. In addition, if that
endpoint path were to get removed from D-Bus in the future,
then the association paths should be removed until that
path is back again.

This particular commit introduces the PendingAssociations map
to track these cases, and adds support in the associationChanged
path to add associations to this map if the endpoint path isn't
on D-Bus instead of just blindly creating the association objects.

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I1f4bf0e02bf7a350d9e3f18c3591737289a51a39

show more ...

7264d90d27-Feb-2019 Andrew Geissler <geissonator@yahoo.com>

unit-test: Debug functions to dump data structures

Visualizing the key data structures in objmgr can be very useful for
debug and for writing test cases

Example output when new function called:
##

unit-test: Debug functions to dump data structures

Visualizing the key data structures in objmgr can be very useful for
debug and for writing test cases

Example output when new function called:
##### interface_map_type #####
------------------------------------
OBJ PATH: /xyz/openbmc_project/test
DBUS SERVICE: xyz.openbmc_project.Test
INTERFACE: org.freedesktop.DBus.Introspectable
INTERFACE: org.freedesktop.DBus.Peer
INTERFACE: org.freedesktop.DBus.Properties
------------------------------------
##### AssociationOwnersType #####
------------------------------------
OBJ PATH: /xyz/openbmc_project/test/xyz
DBUS SERVICE: xyz.openbmc_project.Test
ASSOC PATH: /xyz/openbmc_project/inventory/system/chassis/error
ENDPOINT: /xyz/openbmc_project/test/xyz
ASSOC PATH: /xyz/openbmc_project/test/xyz/inventory
ENDPOINT: /xyz/openbmc_project/inventory/system/chassis
-----------------------------------
##### AssociationInterfaces #####
------------------------------------
OBJ PATH: /xyz/openbmc_project/inventory/system/chassis/error
ENDPOINTS: /xyz/openbmc_project/test/xyz
------------------------------------

Change-Id: I947ccdb071d887683c3998c6020677833579100c
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...

2067926a11-Feb-2019 Andrew Geissler <geissonator@yahoo.com>

unit-test: Test deleting entry on name change

Breaking off into a separate function enables easier unit testing of the
specific function

Testing: 97% coverage of processing.cpp

Change-Id: I08f2296

unit-test: Test deleting entry on name change

Breaking off into a separate function enables easier unit testing of the
specific function

Testing: 97% coverage of processing.cpp

Change-Id: I08f229657a8f44230b711fabbae20fb403792637
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...

5b2e727611-Feb-2019 Andrew Geissler <geissonator@yahoo.com>

unit-test: Request distinct name per test app

gtest will run test suites in parallel, need to ensure each test suite
(application) requests a distinct well-known name on Dbus.

Change-Id: Ib59211ada

unit-test: Request distinct name per test app

gtest will run test suites in parallel, need to ensure each test suite
(application) requests a distinct well-known name on Dbus.

Change-Id: Ib59211ada5ef6404e70747b7377912384cc8c60e
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...

bb7b592e08-Feb-2019 Andrew Geissler <geissonator@yahoo.com>

unit-test: Move association create funcs to util

These will be useful in other test suites so move into util directory

Change-Id: Ibea5c417e38210e6e1388cf4492af10a64db9077
Signed-off-by: Andrew Gei

unit-test: Move association create funcs to util

These will be useful in other test suites so move into util directory

Change-Id: Ibea5c417e38210e6e1388cf4492af10a64db9077
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...

b04f033508-Feb-2019 Andrew Geissler <geissonator@yahoo.com>

unit-test: Move asio server to its own class

Other test suites will need this object so move to a utility directory
and inherit from.

Change-Id: Ia34c8149fc0df02c510717a6efd21f51086e97e6
Signed-off

unit-test: Move asio server to its own class

Other test suites will need this object so move to a utility directory
and inherit from.

Change-Id: Ia34c8149fc0df02c510717a6efd21f51086e97e6
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>

show more ...


/openbmc/phosphor-objmgr/.clang-format
/openbmc/phosphor-objmgr/.gitignore
/openbmc/phosphor-objmgr/LICENSE
/openbmc/phosphor-objmgr/MAINTAINERS
/openbmc/phosphor-objmgr/Makefile.am
/openbmc/phosphor-objmgr/README.md
/openbmc/phosphor-objmgr/bootstrap.sh
/openbmc/phosphor-objmgr/configure.ac
/openbmc/phosphor-objmgr/fail-monitor/.gitignore
/openbmc/phosphor-objmgr/fail-monitor/Makefile.am
/openbmc/phosphor-objmgr/fail-monitor/argument.cpp
/openbmc/phosphor-objmgr/fail-monitor/argument.hpp
/openbmc/phosphor-objmgr/fail-monitor/main.cpp
/openbmc/phosphor-objmgr/fail-monitor/monitor.cpp
/openbmc/phosphor-objmgr/fail-monitor/monitor.hpp
/openbmc/phosphor-objmgr/libmapper/.gitignore
/openbmc/phosphor-objmgr/libmapper/app.c
/openbmc/phosphor-objmgr/libmapper/mapper.c
/openbmc/phosphor-objmgr/libmapper/mapper.h
/openbmc/phosphor-objmgr/libmapper/workaround/systemd.h
/openbmc/phosphor-objmgr/obmc/mapper/__init__.py
/openbmc/phosphor-objmgr/obmc/mapper/bindings.py
/openbmc/phosphor-objmgr/obmc/mapper/server.py
/openbmc/phosphor-objmgr/obmc/mapper/utils.py
/openbmc/phosphor-objmgr/phosphor-mapper
/openbmc/phosphor-objmgr/setup.cfg
/openbmc/phosphor-objmgr/setup.py.in
/openbmc/phosphor-objmgr/src/argument.cpp
/openbmc/phosphor-objmgr/src/argument.hpp
/openbmc/phosphor-objmgr/src/associations.cpp
/openbmc/phosphor-objmgr/src/associations.hpp
/openbmc/phosphor-objmgr/src/main.cpp
/openbmc/phosphor-objmgr/src/processing.cpp
/openbmc/phosphor-objmgr/src/processing.hpp
/openbmc/phosphor-objmgr/src/test/Makefile.am.include
/openbmc/phosphor-objmgr/src/test/associations.cpp
/openbmc/phosphor-objmgr/src/test/need_to_introspect.cpp
asio_server_class.hpp
/openbmc/phosphor-objmgr/src/test/well_known.cpp