Commit Graph

5 Commits (cpp)

Author SHA1 Message Date
nirenjan 0ac3a3d0c4 Add additional tests for x52cli
This change adds additional tests to verify the parser behavior, as well
as the handling of any error conditions from libx52 itself.
2022-06-12 03:37:21 -07:00
nirenjan 699f663df3 Use TEST_DEF as a function macro, instead of #if/#endif blocks 2021-08-02 10:35:37 -07:00
nirenjan dbd683a98b Add vendor command test cases
This change adds test cases to validate the `raw` command in x52cli.
2021-07-30 12:02:02 -07:00
nirenjan 377aea90b5 Remove spurious test cases
Prior to this change, the tests file contained every test that was in
the original script based test suite. However, we don't need to test
every single scenario within libx52, since those are already handled in
the libx52 specific tests. This also causes a slow compilation, since
the tests are written as a series of macros, and the result is a 2000+
line file before preprocessing.

This change removes some of the spurious test cases, and simply checks
that the parameters passed to the corresponding libx52 function are as
expected for a few test cases.
2021-07-30 11:48:14 -07:00
nirenjan 51913094cb Use cmocka to test CLI 2021-07-30 03:03:16 -07:00