-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Record the outcome of each test case in compat.sh #7136
Record the outcome of each test case in compat.sh #7136
Conversation
920112b
to
a0a6bad
Compare
fa455cd
to
77b85f7
Compare
Signed-off-by: Yanray Wang <[email protected]>
If the environment variable MBEDTLS_TEST_OUTCOME_FILE is set, the test outcome file records each test case in a single line with the format of PLATFORM;CONFIGURATION;compat;TEST CASE DESCRIPTION;RESULT;[CAUSE] - CONFIGURATION comes from MBEDTLS_TEST_CONFIGURATION to record configuration of each test case - PLATFORM is either set by users or calculated from test platform - RESULT is one of PASS, FAIL or SKIP. If test case fails, srv_out/cli_out follows as FAILURE CAUSE. Signed-off-by: Yanray Wang <[email protected]>
Signed-off-by: Yanray Wang <[email protected]>
Adjust where to set absolute path for MBEDTLS_TEST_OUTCOME_FILE as it's supposed to set its absolute path after all possible value assignment. Signed-off-by: Yanray Wang <[email protected]>
77b85f7
to
5b33f64
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor question, others looks good to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, CI generated outcomes could be found here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works in the way I expect. LGTM.
CI failures appear to be bugs in the CI. |
(I've asked someone who's now on the non-roadmap team to do the backport) |
@gilles-peskine-arm Has anyone planned to do the backport? If no, I'll create one. |
Hi @yanrayw , I can do the backport :) |
Great! Thank you! @tgonzalezorlandoarm |
Just wanted to say thank you to everyone involved: this will make our life easier in driver-only cipher testing! |
Description
Fix: #5692
For
compat.sh
, ifMBEDTLS_TEST_OUTCOME_FILE
is set, the outcome of each test case is recorded in a outcome file with the format ofIn addition,
--append-outcome
is introduced to append test records to the outcome file if set.Gatekeeper checklist