1*9b846121SLei YU# phosphor-psu-code-mgmt
2*9b846121SLei YU
3*9b846121SLei YUphosphor-psu-code-mgmt is a service to provide management for PSU code,
4*9b846121SLei YUincluding:
5*9b846121SLei YU
6*9b846121SLei YU* PSU code version
7*9b846121SLei YU* PSU code update
8*9b846121SLei YU
9*9b846121SLei YU
10*9b846121SLei YU## Building
11*9b846121SLei YU
12*9b846121SLei YU```
13*9b846121SLei YUmeson build/ && ninja -C build
14*9b846121SLei YU```
15*9b846121SLei YU
16*9b846121SLei YU## Unit test
17*9b846121SLei YU
18*9b846121SLei YU* Run it in OpenBMC CI, refer to [local-ci-build.md][1]
19*9b846121SLei YU* Run it in [OE SDK][2], run below commands in a x86-64 SDK env:
20*9b846121SLei YU   ```
21*9b846121SLei YU   meson -Doe-sdk=enabled -Dtests=enabled build/
22*9b846121SLei YU   ninja -C build/ test  # Meson skips running the case due to it thinks it's cross compiling
23*9b846121SLei YU   # Manually run the tests
24*9b846121SLei YU   for t in `find build/test/ -maxdepth 1 -name "test_*"`; do ./$t || break ; done
25*9b846121SLei YU   ```
26*9b846121SLei YU
27*9b846121SLei YU[1]: https://github.com/openbmc/docs/blob/master/local-ci-build.md
28*9b846121SLei YU[2]: https://github.com/openbmc/docs/blob/master/cheatsheet.md#building-the-openbmc-sdk
29