Lei YU | e065f61 | 2019-07-30 14:10:52 +0800 | [diff] [blame] | 1 | # phosphor-psu-code-mgmt |
| 2 | |
| 3 | phosphor-psu-code-mgmt is a service to provide management for PSU code, |
| 4 | including: |
| 5 | |
| 6 | * PSU code version |
| 7 | * PSU code update |
| 8 | |
| 9 | |
| 10 | ## Building |
| 11 | |
| 12 | ``` |
| 13 | meson build/ && ninja -C build |
| 14 | ``` |
| 15 | |
Lei YU | 5e0dcb3 | 2019-08-02 18:04:34 +0800 | [diff] [blame^] | 16 | ## 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 |