Skip to content

Test framework proposed #338

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

doublechiang
Copy link
Contributor

The regression test is using ipmi_sim as the simulated BMC.
Robot framework Test case to test the ipmitool run on the simulated BMC.

doublechiang and others added 8 commits June 10, 2020 02:19
Clean up use of strcmp/strncmp/strncasecmp for command line arguments.
Never use anything but `strcmp()` unless absolutely neccessary.

Partialy resolves ipmitool#104
Reduce code duplication by extracting option names, types,
and value ranges into a separate structure, and rewriting
the option parsing code without mixing it with the data.

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
Unify the comparison idioms use.
Always use `if(!strcmp())` for "if string equals"
and `if(strcmp())` for "if string is not equal".
Never use `== 0` and `!= 0` with `strcmp()`.

Minor reformatting of the code immediately surrounding the
refactored lines.

Resolves ipmitool#104

Signed-off-by: Alexander Amelkin <alexander@amelkin.msk.ru>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants