[PATCH 0/2] fix uncallable unit tests (Bugzilla 1002)
    Bruce Richardson 
    bruce.richardson at intel.com
       
    Fri May 20 16:56:29 CEST 2022
    
    
  
The dump* unit tests are uncallable from our test framework because the command
validation in the unit test binary is incorrect. Rather than trying to fix this
directly in the binary, a better approach is to add command validation to the
cmdline library - which already has 99% of what we need already - and use that
from the test app.
Bruce Richardson (2):
  cmdline: add function to verify valid commands
  test: use cmdline library to validate args
 app/test/commands.c         | 11 -----------
 app/test/test.c             | 25 ++++++++-----------------
 lib/cmdline/cmdline_parse.c | 20 +++++++++++++++++---
 lib/cmdline/cmdline_parse.h | 17 +++++++++++++++--
 lib/cmdline/version.map     |  3 +++
 5 files changed, 43 insertions(+), 33 deletions(-)
--
2.34.1
    
    
More information about the dev
mailing list