1、Manish Baing,LenovoArun Mahendran,LenovoAI assist Unit and Integration test framework for OpenBMCAI assist Unit and Integration test framework for OpenBMCManish Baing,LenovoArun Mahendran,LenovoTest and ValidationBackgroundProblem statement Test framework Architecture Modular Unit Testing Fault inje
2、ctions Integration testing AI assist test cases generation to improve Code Coverage AI assist Cyclomatic Complexity computationCall to Action OutlineBackgroundTesting requirements continue to change at each stage from POC to MP.The variety of server CPU architectures and server platform components w
3、ill result in multiple use cases with unique requirements,requiring specific hardware configurations for each testing phase.Baseboard Management controller(BMC)is present in most of servers motherboard.It enables remote monitoring of health and availability of server infrastructure.The OpenBMC is a
4、Linux Foundation open-source project that produces an open-source implementation of the BMC firmware stack.BMC/OpenBMCThe complexity involved in simulating and injecting hardware failure scenarios,such as Power Supply Unit(PSU)faults,Add-in card(Storage,Graphics,Network)failures,CPU and Memory error
5、s,Fan failures etc.poses significant challenges for OpenBMC validation.Limited availability of faulty hardware&the high cost of physical test setups,including specific hardware,worsen these issues.Module-based code development increases the risk of missing existing or domain-specific functional scen
6、arios during new code development.Problem StatementModule level Unit testingStub CreationSimplified Wrapper and Interface Generator(SWIG)Python UnittestFault injection Integration testingReports&Alerts Deployment Overview of Test frameworkA stub is interface which simulates a real object.Here Real o