commit | 0e2d68d2af9b4fbb67319fcfd41112d83e990986 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Wed Dec 19 07:53:45 2018 -0800 |
committer | Patrick Venture <venture@google.com> | Wed Jan 02 11:56:28 2019 -0800 |
tree | 53ef7be5240db3d172c82360ecb2d7700e49ea44 | |
parent | a67a947007d598ad30b322c67fba6efa338d2156 [diff] |
test: add tests for creating sensor objects Add a variety of tests for different sensor constructor scenarios. Change-Id: I859a9473e3c80fb06b0ae15f0eeb8217ee390b11 Signed-off-by: Patrick Venture <venture@google.com>
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.