Skip to content

lib/tapi: add missing value handler for te_bool3#96

Open
okt-dmitriyb wants to merge 1 commit into
oktetlabs:mainfrom
okt-dmitriyb:opt-bool
Open

lib/tapi: add missing value handler for te_bool3#96
okt-dmitriyb wants to merge 1 commit into
oktetlabs:mainfrom
okt-dmitriyb:opt-bool

Conversation

@okt-dmitriyb

@okt-dmitriyb okt-dmitriyb commented Oct 13, 2025

Copy link
Copy Markdown

Tested with testsuite and minimal selftest.
TS_BASE=${TE_BASE}/suites/selftest/ts ./run.sh --tester-run=ts/minimal --cfg=localhost --log-html=html

@ol-arteman ol-arteman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a case for the macro to suites/selftest/ts/minimal/parameters.c

@ol-arteman

Copy link
Copy Markdown
Collaborator

Also, the commit message is pretty misleading, and the description seems to somewhat contradict the subject.

@okt-dmitriyb okt-dmitriyb changed the title lib/tapi: add func and macros to get optional boolean lib/tapi: add '-' literal handler for te_bool3 Oct 20, 2025
@okt-dmitriyb

Copy link
Copy Markdown
Author

Fixed

@ol-arteman ol-arteman left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have a policy that disallows referencing TE symbol names in the commit subject line.

Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h
Comment thread lib/tapi/test_params.c Outdated
Comment thread suites/selftest/ts/minimal/parameters.c Outdated
@okt-dmitriyb okt-dmitriyb changed the title lib/tapi: add '-' literal handler for te_bool3 lib/tapi: add missing value handler for te_bool3 Oct 20, 2025
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/tapi_test.h Outdated
Comment thread lib/tapi/test_params.c Outdated
We need a way to handle missing value '-' literal for
te_bool3 the same way it works with other optional types.

Signed-off-by: Dmitriy Bulavskiy <Dmitriy.Bulavskiy@arknetworks.am>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants