#
cb2fbeb9 |
| 06-Jan-2023 |
Ed Tanous <edtanous@google.com> |
Remove some extra semi-colons in tests
These snuck in here and cause clang warnings. Fix them.
Change-Id: I526cfee1ebc799eae48b92e790273f31462c655f Signed-off-by: Ed Tanous <edtanous@google.com>
|
#
640a7d56 |
| 04-Jan-2023 |
Ed Tanous <edtanous@google.com> |
Add support for appending std::string_view
std::string_view is used more in the project now that c++17 is available. It should be allowed as a base type in serialization of dbus interfaces.
To avo
Add support for appending std::string_view
std::string_view is used more in the project now that c++17 is available. It should be allowed as a base type in serialization of dbus interfaces.
To avoid an extra string copy, this function makes use of sd_bus_message_append_string_iovec, which allows appending in string pieces that might not be null terminated. This function is piped through the test framework, and interfaces to match.
Change-Id: Iee3e2cea9759fa9759cec98ab30c12c822aa3b73 Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
b7329a90 |
| 28-Apr-2022 |
Patrick Williams <patrick@stwcx.xyz> |
message: append: support span
Change how we detect the ability to iterate over a type so that it supports additional types, such as span. Add test case to cover span. Add some static_asserts in th
message: append: support span
Change how we detect the ability to iterate over a type so that it supports additional types, such as span. Add test case to cover span. Add some static_asserts in the test cases to ensure we are triggering the correct add_multiple/add_single paths for a few assorted types.
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I42ff496ab58af613940c9ceb979c71f468f125fc
show more ...
|
#
10d7aa12 |
| 19-Nov-2021 |
Patrick Williams <patrick@stwcx.xyz> |
message: shorten message type Create an alias `sdbusplus::message_t` to `sdbusplus::message::message` to reduce duplication. Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
message: shorten message type Create an alias `sdbusplus::message_t` to `sdbusplus::message::message` to reduce duplication. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: Ib400b12fe4a412c0c0c3d26a88f3fae46445cfa8
show more ...
|
#
b98bdc6f |
| 16-Jun-2020 |
Patrick Williams <patrick@stwcx.xyz> |
sdbus++: add support for 'set' Add 'set' as a supported type to `sdbus++` and set as `std::set`. The use of ordered-set is to match 'dict' as `std::map` and because 'struct' is `std:
sdbus++: add support for 'set' Add 'set' as a supported type to `sdbus++` and set as `std::set`. The use of ordered-set is to match 'dict' as `std::map` and because 'struct' is `std::tuple`, which has `operator<=>` but not `std::hash`. This ensures better compatiblilty with possible property type choices by users. Also, add a few test cases to ensure `std::set` and `std::unordered_set` are well-covered. Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I59605db1b22d54f783d807eda1e1ec1f9eb6792f
show more ...
|
#
127b8abe |
| 21-May-2020 |
Patrick Williams <patrick@stwcx.xyz> |
clang-format: sync from docs master .clang-format Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8077816a5ddf7a067bdf537cb46e4e32f5c4ef65
|
#
4274c117 |
| 26-Nov-2018 |
William A. Kennington III <wak@google.com> |
std::variant: Remove uses of the variant_ns Now that we are using std::variant we should reference it directly instead of using our own namespace alias. Tested: Built an
std::variant: Remove uses of the variant_ns Now that we are using std::variant we should reference it directly instead of using our own namespace alias. Tested: Built and ran through unit tests. Change-Id: Ic3fd62ea74cf808b85ad7b7ffcce8c0a0bfb125d Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
81fa02ee |
| 04-Oct-2018 |
William A. Kennington III <wak@google.com> |
message: Fix variant api usage This makes our use of the mapbox variant consistent with std::variant. We need this cleanup for the conversion to std::variant. Tested: Ra
message: Fix variant api usage This makes our use of the mapbox variant consistent with std::variant. We need this cleanup for the conversion to std::variant. Tested: Ran unit tests to make sure they still pass. Change-Id: I990013eaaa2ec27f2fda71bfadd9a5369d50c187 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
e0d6965e |
| 31-Aug-2018 |
William A. Kennington III <wak@google.com> |
clang-format: Fix pointer alignment Oenbmc documentation specifies a left alignment for pointers. Our current format tries to left align if neither alignment is strictly followed, bu
clang-format: Fix pointer alignment Oenbmc documentation specifies a left alignment for pointers. Our current format tries to left align if neither alignment is strictly followed, but will allow right aligned files to exist. Lets make this more strict so that all of our files are consistent. Change-Id: I3a50043d28a9c25d0cf1ffb752800d05eb7615e1 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
2b238afb |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
clang-format: always break template declarations To better match the defined openbmc style. Change-Id: I68cda43857768bae4c904c367942cb1f0efa3e0c Signed-off-by: Patrick Venture <
clang-format: always break template declarations To better match the defined openbmc style. Change-Id: I68cda43857768bae4c904c367942cb1f0efa3e0c Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
95269dbc |
| 31-Aug-2018 |
Patrick Venture <venture@google.com> |
update .clang-format header inclusion order Added the header inclusion order to the .clang-format file generated these changes. Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5
update .clang-format header inclusion order Added the header inclusion order to the .clang-format file generated these changes. Change-Id: Ia31b21d7ea451cac0309828006bc17c27cbd5bd5 Signed-off-by: Patrick Venture <venture@google.com>
show more ...
|
#
a1e9e2ae |
| 23-Jun-2018 |
William A. Kennington III <wak@google.com> |
test/message/append: Use googletest and mocks The current test case depends on the system running a dbus daemon that our test case can register and run a service with. It runs in multipl
test/message/append: Use googletest and mocks The current test case depends on the system running a dbus daemon that our test case can register and run a service with. It runs in multiple threads and requires using raw sd_bus_message calls to determine if the appends worked correctly. When systemd 237 becomes the minimum version we could rely on message sealing and other new public members to deal with the daemon issues. However, it will be a while before we can make that the default version. Lets mock out the expectations for the underlying sd_bus_message calls to validate that we will build correct objects when using our message.append() calls. Tested: Converted the tests from the old test cases to this new format keeping very similar test functionality. Tests still pass. Change-Id: Iafc8662389fe60ca2d519abfe472c61292f3239a Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
48697815 |
| 19-Jun-2018 |
William A. Kennington III <wak@google.com> |
tests: Write our own assert() The cassert `assert()` function is only provided when NDEBUG is not defined. Otherwise `assert()` becomes a no-op breaking our test cases. Since we rely
tests: Write our own assert() The cassert `assert()` function is only provided when NDEBUG is not defined. Otherwise `assert()` becomes a no-op breaking our test cases. Since we rely on the behavior of assert to validate the tests, we always want to provide one for the test implementation. This functionality will be useful once code coverage is added since that forces NDEBUG to be passed to the preprocessor. Tested: Test cases still work correctly if unmodified, and any changes that should cause the asserts to fail still fail as expected. Change-Id: I8d4132058308566310c58b7ae3e121eae55d37f5 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
b5645509 |
| 19-Jun-2018 |
William A. Kennington III <wak@google.com> |
tests: Fix memory leak from sd_bus calls Some of the calls into sd_bus leak memory because they never unreference the bus or messages. Fix this so we can eventually enable leak checking
tests: Fix memory leak from sd_bus calls Some of the calls into sd_bus leak memory because they never unreference the bus or messages. Fix this so we can eventually enable leak checking from valgrind. Tested: Ran through valgrind and the errors went away. Change-Id: Icc3d5d0860b3852401219c1ca511a1bc26aa1c48 Signed-off-by: William A. Kennington III <wak@google.com>
show more ...
|
#
28dc36d5 |
| 21-Feb-2018 |
Ed Tanous <ed.tanous@intel.com> |
Allow reading and appending of more complex types This commit makes sdbusplus compatible with most containers that meet a few requirements. This includes: std::unordered_map std
Allow reading and appending of more complex types This commit makes sdbusplus compatible with most containers that meet a few requirements. This includes: std::unordered_map std::array std::set boost::flat_set boost::flat_map Read requires a container to support emplace or emplace_back methods. Append requires a container to suport a const iterator Tested: The top level OpenBMC compiles properly, and the sdbusplus unit tests compile and pass, and unit tests have been updated with a few new types to ensure we see any breakages. Signed-off-by: Ed Tanous <ed.tanous@intel.com> Change-Id: I5eb1cf7dc07bacc7aca62d87844794223ad4de80 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
show more ...
|
#
072da3ea |
| 18-Jan-2018 |
Andrew Geissler <geissonator@yahoo.com> |
Update repo to conform to openbmc code standard Change-Id: If1d6b1f04514367cc544c2507a845b3e9d6d3435 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
|
#
16e17531 |
| 15-Feb-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message-append: Add more string test cases Add cases uncovered by openbmc/openbmc#1025. Change-Id: I680b95b2127d50837dccd3ea1ff655fc1eb19ec9 Signed-off-by: Patrick Williams <pat
message-append: Add more string test cases Add cases uncovered by openbmc/openbmc#1025. Change-Id: I680b95b2127d50837dccd3ea1ff655fc1eb19ec9 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
fd3c462d |
| 06-Jan-2017 |
Patrick Williams <patrick@stwcx.xyz> |
message-append: support obj-path and signature Change-Id: I44d5195eba14c17f38cf2bf2b09eb071d54f59d8 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
b760a99c |
| 28-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
append/read: additional testcases for bool forms Added test-cases for false r-value reference and l-values, in addition to existing false value. Change-Id: I36952f06d84f9da157a6
append/read: additional testcases for bool forms Added test-cases for false r-value reference and l-values, in addition to existing false value. Change-Id: I36952f06d84f9da157a618fbe093a8ca63662ceb Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
24fb2968 |
| 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: fix parallel test issue Both message/append and message/read were using the same service name for testcases. Ensure they use different service names to allow parallel execu
message: fix parallel test issue Both message/append and message/read were using the same service name for testcases. Ensure they use different service names to allow parallel execution of test cases. Change-Id: I060c03f69db0484b863af7cb45578f183cdff331 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
696e3159 |
| 04-Nov-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: compile warning in testcases Thread functions (non-void) were missing a return. Change-Id: Ib7804d92f79b96428285058101e64dceea7ad66e Signed-off-by: Patrick Williams <pa
message: compile warning in testcases Thread functions (non-void) were missing a return. Change-Id: Ib7804d92f79b96428285058101e64dceea7ad66e Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
9e3b51e3 |
| 18-Oct-2016 |
Patrick Williams <patrick@stwcx.xyz> |
message: write testcase to confirm bool and double Change-Id: I631046f3e6d46c299f5907ad811656be3d66ea60 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
75596786 |
| 11-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
variant support for append/read Change-Id: I682275405e3c4f7c798317a60ea070b3b1a0846c Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
aa2f48af |
| 10-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
std::tuple support for append/read Change-Id: If914032fa4f655af509ac58a5e0057968f71aa32 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|
#
bbe0e436 |
| 10-Sep-2016 |
Patrick Williams <patrick@stwcx.xyz> |
std::map support for append/read Change-Id: I3b5510b8ba400cf4d3f936f01708cb17aa009e62 Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
|