Skip to content

Test framework proposed#338

Open
doublechiang wants to merge 8 commits intoipmitool:masterfrom
doublechiang:regression
Open

Test framework proposed#338
doublechiang wants to merge 8 commits intoipmitool:masterfrom
doublechiang:regression

Conversation

@doublechiang
Copy link
Copy Markdown
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.

2 participants