OpenCellular icon indicating copy to clipboard operation
OpenCellular copied to clipboard

Feature request: UT framework for POST

Open JoshuaJeyaraj opened this issue 7 years ago • 0 comments

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

  1. src/post/post.c
  2. src/post/post_util.c

Approach : In addition to addition of the testcase for all the functions in this file . We should also

  1. Add sufficient stubs for OS specific APIs used in this code . There should be some basic checks to see if the values being passed to them are appropriate
  2. There is currently a hack in post_util.c to compile the code for UT (UT_POST) this needs to be fixed .

Validation of the testcases 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 .

JoshuaJeyaraj avatar Oct 03 '18 09:10 JoshuaJeyaraj