[Skiboot] [PATCH v2 0/8] Implement PLDM self test
    ABHISHEK SINGH TOMAR 
    abhishek.singh.tomar1 at ibm.com
       
    Wed Apr  2 23:26:01 AEDT 2025
    
    
  
These patches contains self test for PLDM. These self test
are not hardware dependent as they bypass hardware dependent code.
They tries to test codeflow for following PLDM message types
1. PLDM FILE I/O
2. PLDM BIOS
3. PLDM PLATFORM
4. PLDM FRU
Abhishek Singh Tomar (8):
  core/pldm/test : Implement PLDM self test common api
  core/pldm/test : Add self-test for PLDM file I/O message
  core/pldm/test : Add pldm BIOS Specification Self test
  core/pldm/test : Add self test for lid read
  core/pldm/test : Add tests for PLDM platform PDR requests
  core/pldm/test : Add self test for pldm platform shutdown
  core/pldm/test : Add tests for platform poweroff and restart
  core/pldm/test : Add PLDM FRU table self test
 core/pldm/pldm.h                       |   2 +-
 core/pldm/test/Makefile.check          |  62 ++
 core/pldm/test/stubs.c                 |  62 ++
 core/pldm/test/test-pldm-common.c      | 205 ++++++
 core/pldm/test/test-pldm-fileio-bios.c | 952 +++++++++++++++++++++++++
 core/pldm/test/test-pldm-fru.c         | 415 +++++++++++
 core/pldm/test/test-pldm-platform.c    | 733 +++++++++++++++++++
 7 files changed, 2430 insertions(+), 1 deletion(-)
 create mode 100644 core/pldm/test/Makefile.check
 create mode 100644 core/pldm/test/stubs.c
 create mode 100644 core/pldm/test/test-pldm-common.c
 create mode 100644 core/pldm/test/test-pldm-fileio-bios.c
 create mode 100644 core/pldm/test/test-pldm-fru.c
 create mode 100644 core/pldm/test/test-pldm-platform.c
Changelog (v2.0.0)
==================
- Added core/pldm/stubs.c and modified prlog to prevent log printing.
- Migrated more functions to stubs.c from test-pldm-common.c.
- Now, there will be no print logs from the base code in tests.
- Idea is inspired by hw/ipmi/test/run-fru.c.
-- 
2.48.1
    
    
More information about the Skiboot
mailing list