commit | ed009655a8d09ddc1db15c077fd73310782cd7cf | [log] [tgz] |
---|---|---|
author | Bob King <Bob_King@wistron.com> | Thu Feb 20 14:54:13 2020 +0800 |
committer | Shawn McCarney <shawnmm@us.ibm.com> | Fri Mar 06 16:48:00 2020 +0000 |
tree | 6248bd058c9e49ca9922443bf7ba474821319d2e | |
parent | 23dd60ba01476530121159eec352d08da80d95d2 [diff] |
regulators: Add test cases for command line syntax Test cases for testing command line syntax of the validation tool. *Valid: -s specified *Valid: --schema-file specified *Valid: -c specified *Valid: --configuration-file specified *Valid: -h specified *Valid: --help specified *Invalid: -c/--configuration-file not specified *Invalid: -s/--schema-file not specified *Invalid: -s specified more than once *Invalid: -c specified more than once *Invalid: No file name specified after -c *Invalid: No file name specified after -s *Invalid: File specified after -c does not exist *Invalid: File specified after -s does not exist *Invalid: File specified after -s is not right data format *Invalid: File specified after -c is not readable *Invalid: File specified after -s is not readable *Invalid: Unexpected parameter specified Signed-off-by: Bob King <Bob_King@wistron.com> Change-Id: I922c3b5810e5c9f98b318f0a44ae78e4b0c8525a
Code for detecting and analyzing power faults on Witherspoon.
To build this package, do the following steps: 1. meson build 2. ninja -C build To clean the repository again run `rm -rf build`.
Several applications in this repository require a PSU JSON config to run. The JSON config file provides information for:
There is an example psu.json to describe the necessary configurations.
inventoryPMBusAccessType
defines the pmbus access type, which tells the service which sysfs type to use to read the attributes. The possible values are:/sys/bus/i2c/devices/3-0069/
/sys/bus/i2c/devices/3-0069/hwmon/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/
/sys/kernel/debug/pmbus/hwmonX/cffps1/
fruConfigs
defines the mapping between the attribute file and the FRU inventory interface and property. The configuration example below indicates that the service will read part_number
attribute file from a directory specified by the above pmbus access type, and assign to PartNumber
property in xyz.openbmc_project.Inventory.Decorator.Asset
interface."fruConfigs": [ { "propertyName": "PartNumber", "fileName": "part_number", "interface": "xyz.openbmc_project.Inventory.Decorator.Asset" } ]
psuDevices
defines the kernel device dir for each PSU in inventory. The configuration example below indicates that powersupply0
's device is located in /sys/bus/i2c/devices/3-0069
."psuDevices": { "/xyz/openbmc_project/inventory/system/chassis/motherboard/powersupply0" : "/sys/bus/i2c/devices/3-0069", }