OpenCellular
OpenCellular copied to clipboard
Feature request: UT framework for device eth_sw
Product: (OC-SDR, OC-LTE, OC-LTE, OC-Power, others)
Unit test
Component: (PSU, GBC, BBU, FEM, LED, ME)
GBC
Category: (Hardware, Software/stack, Firmware/bootloader, Documentation)
Software/stack
Describe the solution you'd like Add UT testcases for src/devices/eth_sw.c
Approach : The test suites will use the existing fake_mdio , fake_gpio and fake_i2c infrastructure to read and write registers/pins.All functions other than static functions in the above mentioned source files will have equivalent test cases. Validation will be done based on the return values and output variables.
Test Criteria : The Unity framework should be successful for all the planned testcases . The testcase list should be updated with the newly added testcases .