#
828c5a6e |
| 09-Feb-2024 |
Ed Tanous <ed@tanous.net> |
Add IpmbSensor unit tests
Because everything was packed into IpmbSensor.cpp, which also included main(), this commit breaks it up into the patterns we have in other sensors, with <X>main.cpp contain
Add IpmbSensor unit tests
Because everything was packed into IpmbSensor.cpp, which also included main(), this commit breaks it up into the patterns we have in other sensors, with <X>main.cpp containing the things for main.
While this doesn't clean up everything, it at least makes processResponse unit testable, and adds one minor test for it.
Change-Id: I1eabf650ff635211e5b9a94816c2ffce250ed252 Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|
#
ab8b045e |
| 10-Jan-2024 |
Andrew Jeffery <andrew@codeconstruct.com.au> |
meson: Format build files according to meson style guide
muon[1], an meson-compatible build system, provides a `fmt` subcommand to format meson build files in accordance with the meson style guide[2
meson: Format build files according to meson style guide
muon[1], an meson-compatible build system, provides a `fmt` subcommand to format meson build files in accordance with the meson style guide[2].
[1]: https://muon.build/ [2]: https://mesonbuild.com/Style-guide.html
Apply `muon fmt` using the following to provide consistent formatting:
``` for f in $(git ls-files | grep meson.build) do muon fmt $f | sponge $f done ```
Change-Id: I7ef7693ddf964e9540b2e3e256cdf584fb8ac9cd Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
show more ...
|
#
5bc307fb |
| 29-Nov-2023 |
Patrick Williams <patrick@stwcx.xyz> |
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer retur
build: use allowed over enabled
Meson feature options are typically in a tri-state of enabled, disabled, or auto. The enabled and disabled functions on an option (from `get_option`) no longer return true for auto features. Instead, the expectation is to use `allowed()` which is true for both enabled and auto.
Switch all uses of `enabled` to `allowed`.
Change-Id: I882edd53856df38c8292bc3313b9342b2b1ceddd Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
show more ...
|
#
421cc428 |
| 17-Feb-2023 |
Ed Tanous <edtanous@google.com> |
Remove non-functional tests
These tests were built against boost-dbus, and havne't been ported forward. While ideally someone could, right now they are causing clang builds to fail; We can revisit
Remove non-functional tests
These tests were built against boost-dbus, and havne't been ported forward. While ideally someone could, right now they are causing clang builds to fail; We can revisit in the future if someone wants to spend the effort to revive these tests.
Change-Id: I90ee49f4c6afcf44b3ce119fa44c59ad13907d8e Signed-off-by: Ed Tanous <edtanous@google.com>
show more ...
|
#
e73bd0a1 |
| 24-Jan-2023 |
Andrew Jeffery <andrew@aj.id.au> |
sensors: Align source structure away from anti-patterns
The anti-patterns document comments on source structure, specifically on placing internal headers in a parallel subtree[1]. dbus-sensors is an
sensors: Align source structure away from anti-patterns
The anti-patterns document comments on source structure, specifically on placing internal headers in a parallel subtree[1]. dbus-sensors is an example of violating this anti-pattern, so fix it.
[1]: https://github.com/openbmc/docs/blob/master/anti-patterns.md#placing-internal-headers-in-a-parallel-subtree
Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I50ecaddd53fa9c9b7a0441af9de5e60bd94e47c6
show more ...
|
#
16966b55 |
| 15-Sep-2021 |
Ed Tanous <edtanous@google.com> |
Enable an io-uring build
There exists a bug where calls that we previously thought were non-blocking, actually do block when used with hwmon or filesystem fds. This causes high latencies on the dbus
Enable an io-uring build
There exists a bug where calls that we previously thought were non-blocking, actually do block when used with hwmon or filesystem fds. This causes high latencies on the dbus interfaces when lots of sensors are used in a single daemon, as is the case in PSUSensor.
This patchset moves the PSUSensor code over to using io-uring, through boost asio, using the random_access_file class. This helps with performance in a number of ways, the largest of which being that sensor reads are no longer blocking.
Tested:
Booted the sensor system on Tyan S7106; dbus-monitor shows sensors scanning normally.
Signed-off-by: Ed Tanous <edtanous@google.com> Change-Id: I654eafcfab5a24b65b89c204ab43d81c7ae064cf
show more ...
|
#
d3204145 |
| 16-Nov-2021 |
Lei YU <yulei.sh@bytedance.com> |
test: Add test_Utils Add the unit test to verify the findFiles() in utils, the tests creates test directory structure like hwmon and peci and verify the result is expected.
test: Add test_Utils Add the unit test to verify the findFiles() in utils, the tests creates test directory structure like hwmon and peci and verify the result is expected. Tested: Verify the unit test passes. Signed-off-by: Lei YU <yulei.sh@bytedance.com> Change-Id: I11976399909235de509e09865af0b3421db6b565
show more ...
|
#
2f20c5ab |
| 27-May-2021 |
Andrew Jeffery <andrew@aj.id.au> |
meson: Add googletest as a subproject Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Change-Id: I1a8088721006a3434606ec15324f84670581302e
|
#
feb19ef0 |
| 07-Nov-2019 |
Brad Bishop <bradleyb@fuzziesquirrel.com> |
Add support for building with meson Follow the OpenBMC herd and support a modern, comprehensible build framework. To build with meson: meson build ninja -C build
Add support for building with meson Follow the OpenBMC herd and support a modern, comprehensible build framework. To build with meson: meson build ninja -C build OR bitbake dbus-sensors Add -Dtests to match de-facto OpenBMC meson usage conventions. Maintain existing per-sensor config flags; however, do not define targets when opting out of a sensor class. One noteable omission is support for subprojects or vendoring. The OpenBMC CI scripts look for meson.build before looking for CMakelists so approval of this patch would change the build system during CI to meson. meta-phosphor change to update the recipe to meson is also coming shortly. Change-Id: I27d8c8f5761850d760428ed813eecd41e8f47c33 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com> Signed-off-by: Ed Tanous <ed@tanous.net>
show more ...
|