commit | a24c8808d5c3b13b849e79115a6969b5a8faf8b0 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Apr 17 19:38:06 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Wed Apr 18 14:25:30 2018 -0700 |
tree | 2a015c72bf15c74c4ec85b238e36270e093d88c3 | |
parent | 7a5285de708b2f46d47f37920c784314b4ad55aa [diff] |
move calls to cstdlib::getenv to env::getEnv Wrapped the cstdlib::getenv() call into env::getEnv so that it can be tested by mocking the env namespace, by just dropping in test_env.cpp which implements those methods and tying them a singleton upon which we can set expectations. Note: regardless of the approach taken to mock this, wrapping this method is a good fix. Change-Id: I65d22da08fc3dd76e6860f728c54e6c847ed07de Signed-off-by: Patrick Venture <venture@google.com>
Exposes generic hwmon entries as DBus objects.
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.