blob: 8f3921a3df2f994a1307238432664337392d8e07 [file] [log] [blame]
Lei YUe065f612019-07-30 14:10:52 +08001# phosphor-psu-code-mgmt
2
3phosphor-psu-code-mgmt is a service to provide management for PSU code,
4including:
5
6* PSU code version
7* PSU code update
8
9
10## Building
11
12```
13meson build/ && ninja -C build
14```
15
Lei YU5e0dcb32019-08-02 18:04:34 +080016## Unit test
17
18* Run it in OpenBMC CI, refer to [local-ci-build.md][1]
19* Run it in [OE SDK][2], run below commands in a x86-64 SDK env:
20 ```
21 meson -Doe-sdk=enabled -Dtests=enabled build/
22 ninja -C build/ test # Meson skips running the case due to it thinks it's cross compiling
23 ./build/test/utest # Manually run the test
24 ```
25
26[1]: https://github.com/openbmc/docs/blob/master/local-ci-build.md
27[2]: https://github.com/openbmc/docs/blob/master/cheatsheet.md#building-the-openbmc-sdk