1# phosphor-debug-collector
2
3Phosphor Debug Collector provides mechanisms to collect various log files and
4system parameters. Used to troubleshoot problems in OpenBMC based systems.
5
6One such mechanism is [dreport](tools/dreport.d/README.md), a script that
7collects debug data and packages it into an archive file.
8
9## To Build
10
11To build this package with meson, do the following steps:
12
13```
14    1. meson builddir
15    2. ninja -C builddir
16```
17
18To clean the built files run `ninja -C builddir clean`.
19
20## To run unit tests
21
22Tests can be run in the CI docker container, refer
23[local-ci-build](https://github.com/openbmc/docs/blob/master/testing/local-ci-build.md)
24
25or with an OpenBMC x86 sdk(see below for x86 steps).
26
27```
28meson -Dtests=enabled build
29ninja -C build test
30```
31