Unit test framework for phosphor-debug-collector

Change:
-Serialize method does not use any of the watch functionalities,
so defining set in serialization header as using watch header
creates unnecessary dependency.

Test:
Added 3 test cases related to dump serialization.
Ran the UTs on docker environment.

Result:
1/1 debug_inif_test OK             1.48s

Ok:                 1
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Signed-off-by: Chirag Sharma <chirshar@in.ibm.com>
Change-Id: I6a88559bf407fa70a96dda3b31aaa1acd038c958
6 files changed
tree: 55370dca314a50a4759851bd10fe1d672552b0cb
  1. offload-extensions/
  2. test/
  3. tools/
  4. xyz/
  5. .clang-format
  6. .gitignore
  7. bmc_dump_entry.cpp
  8. bmc_dump_entry.hpp
  9. core_manager.cpp
  10. core_manager.hpp
  11. core_manager_main.cpp
  12. dump_entry.cpp
  13. dump_entry.hpp
  14. dump_internal.hpp
  15. dump_manager.cpp
  16. dump_manager.hpp
  17. dump_manager_main.cpp
  18. dump_offload.cpp
  19. dump_offload.hpp
  20. dump_serialize.cpp
  21. dump_serialize.hpp
  22. dump_utils.cpp
  23. dump_utils.hpp
  24. elog_watch.cpp
  25. elog_watch.hpp
  26. errors_map.mako.hpp
  27. errors_map_gen.py
  28. example_errors_watch.yaml
  29. ffdc
  30. LICENSE
  31. MAINTAINERS
  32. meson.build
  33. meson_options.txt
  34. offload-extensions.hpp
  35. README.md
  36. system_dump_entry.cpp
  37. system_dump_entry.hpp
  38. watch.cpp
  39. watch.hpp
README.md

phosphor-debug-collector

Phosphor Debug Collector provides mechanisms to collect various log files and system parameters. Used to troubleshoot problems in OpenBMC based systems.

To Build

To build this package with meson, do the following steps:

    1. meson builddir
    2. ninja -C builddir

To clean the built files run ninja -C builddir clean.

To run unit tests

Tests can be run in the CI docker container, refer local-ci-build

or with an OpenBMC x86 sdk(see below for x86 steps).

meson -Doe-sdk=enabled -Dtests=enabled build
ninja -C build test