Skip to content
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

Merged

Conversation

yanrayw
Copy link

@yanrayw yanrayw commented Feb 20, 2023

Description

Fix: #5692

For compat.sh, if MBEDTLS_TEST_OUTCOME_FILE is set, the outcome of each test case is recorded in a outcome file with the format of

        platform;configuration;test suite name;test case description;PASS/FAIL/SKIP;failure cause

In addition, --append-outcome is introduced to append test records to the outcome file if set.

Gatekeeper checklist

@yanrayw yanrayw added enhancement component-tls size-s Estimated task size: small (~2d) priority-medium Medium priority - this can be reviewed as time permits labels Feb 20, 2023
@yanrayw yanrayw self-assigned this Feb 20, 2023
@yanrayw yanrayw added needs-review Every commit must be reviewed by at least two team members, needs-backports Backports are missing or are pending review and approval. needs-reviewer This PR needs someone to pick it up for review labels Feb 20, 2023
@yanrayw yanrayw force-pushed the 5692-record-compatsh-test-cases branch from 920112b to a0a6bad Compare February 21, 2023 04:09
@yanrayw yanrayw force-pushed the 5692-record-compatsh-test-cases branch 3 times, most recently from fa455cd to 77b85f7 Compare February 28, 2023 04:10
Yanray Wang added 4 commits February 28, 2023 14:29
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]>
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]>
@yanrayw yanrayw force-pushed the 5692-record-compatsh-test-cases branch from 77b85f7 to 5b33f64 Compare February 28, 2023 07:14
@yanrayw yanrayw requested a review from lpy4105 February 28, 2023 07:16
Copy link
Contributor

@lpy4105 lpy4105 left a 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.

tests/compat.sh Show resolved Hide resolved
Copy link
Contributor

@lpy4105 lpy4105 left a 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.

@tom-daubney-arm tom-daubney-arm added historical-reviewing Currently reviewing (for legacy PR/issues) historical-reviewed Reviewed & agreed to keep legacy PR/issue and removed historical-reviewing Currently reviewing (for legacy PR/issues) labels Jun 16, 2023
@tom-daubney-arm tom-daubney-arm self-requested a review June 23, 2023 08:53
@tom-daubney-arm tom-daubney-arm removed the needs-reviewer This PR needs someone to pick it up for review label Jun 23, 2023
Copy link
Contributor

@tom-daubney-arm tom-daubney-arm left a 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.

@tom-daubney-arm
Copy link
Contributor

tom-daubney-arm commented Jul 6, 2023

CI failures appear to be bugs in the CI.

@tom-daubney-arm tom-daubney-arm added approved Design and code approved - may be waiting for CI or backports and removed needs-review Every commit must be reviewed by at least two team members, labels Jul 6, 2023
@gilles-peskine-arm
Copy link
Contributor

(I've asked someone who's now on the non-roadmap team to do the backport)

@yanrayw
Copy link
Author

yanrayw commented Jul 7, 2023

@gilles-peskine-arm Has anyone planned to do the backport? If no, I'll create one.

@tgonzalezorlandoarm
Copy link
Contributor

Hi @yanrayw , I can do the backport :)

@yanrayw
Copy link
Author

yanrayw commented Jul 7, 2023

Great! Thank you! @tgonzalezorlandoarm

@daverodgman daverodgman merged commit e183ece into Mbed-TLS:development Jul 10, 2023
@tgonzalezorlandoarm tgonzalezorlandoarm removed the needs-backports Backports are missing or are pending review and approval. label Jul 10, 2023
@mpg
Copy link
Contributor

mpg commented Oct 12, 2023

Just wanted to say thank you to everyone involved: this will make our life easier in driver-only cipher testing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Design and code approved - may be waiting for CI or backports component-tls enhancement historical-reviewed Reviewed & agreed to keep legacy PR/issue priority-medium Medium priority - this can be reviewed as time permits size-s Estimated task size: small (~2d)
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Record compat.sh test cases in the outcome file
7 participants