Skip to content

Add new target in mbedtls importer Makefile for mbedtls tests #4518

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

Merged
merged 2 commits into from
Jul 10, 2017

Conversation

mazimkhan
Copy link

@mazimkhan mazimkhan commented Jun 9, 2017

Description

A new target is added to deploy mbedtls tests along with source code in mbed-os. Separate target is added to prevent changes in current deployment process. For some time it would only be used in staging CI to observer test stability. Also it gives the ability to only import tests for testing mbedtls with mbed-os i.e. only deploy tests for testing purpose.

Status

READY

Migrations

If this PR changes any APIs or behaviors, give a short description of what API users should do when this PR is merged.

YES | NO

Related PRs

List related PRs against other branches:
Does not depend but will be used with mbedtls PR Mbed-TLS/mbedtls#930

branch PR
other_pr_production link
other_pr_master link

Todos

  • Tests
  • Documentation

Deploy notes

  • Check out mbedtls inside mbed-os/features/mbedtls/importer/TARGET_IGNORE/
  • cd mbed-os/features/mbedtls/importer/TARGET_IGNORE/mbedtls/tests/
  • make gen-embedded-tests
  • cd ../../../ at importer level
  • make deploy-tests
  • cd ../../../ at mbed-os level
  • Build with mbed-cli
  • Run with Greentea

Steps to test or reproduce

See deploy steps.

@mazimkhan
Copy link
Author

@sg- @0xc0170 Please review

@mazimkhan
Copy link
Author

Ready for merge?
Before we do any further testing please appreciate that this PR does not change any code.

@simonbutcher
Copy link
Contributor

@mazimkhan - you've scripted to copy a file tests/scripts/mbedtls_test.py, but that file doesn't exist in mbed TLS yet. Is this PR a bit premature?

@mazimkhan
Copy link
Author

mazimkhan commented Jun 13, 2017

tests/scripts/mbedtls_test.py is being added as part of PR Mbed-TLS/mbedtls#930 hence it depends on that PR.
Since the change is introducing a separated target it does not affect existing import process.

@0xc0170
Copy link
Contributor

0xc0170 commented Jun 13, 2017

@sbutcher-arm Thanks for the review, please let us know if this PR is approved or not.

@sg- sg- requested a review from yanesca June 15, 2017 16:19
@theotherjimmy
Copy link
Contributor

@yanesca Could you review?

@adbridge
Copy link
Contributor

bump @yanesca

@theotherjimmy
Copy link
Contributor

@yanesca Could you take a look?

Copy link
Contributor

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

In general it looks good to me, there are only two minor suggestions I would like to make:

  • could we please replace deploy with deploy-tests in the prerequisites of the mbedtls?
  • I am probably being overly cautious, but could we please add deploy-tests to the .PHONY targets?

@mazimkhan
Copy link
Author

mazimkhan commented Jun 30, 2017 via email

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2017

  • I am probably being overly cautious, but could we please add deploy-tests to the .PHONY targets?
    Thanks I will make this change.

@mazimkhan What is then outstanding in this PR?

@0xc0170
Copy link
Contributor

0xc0170 commented Jul 4, 2017

retest uvisor

@mazimkhan
Copy link
Author

I am waiting for @yanesca opinion on

"could we please replace deploy with deploy-tests in the prerequisites of the mbedtls?"

Copy link
Contributor

@yanesca yanesca left a comment

Choose a reason for hiding this comment

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

That makes perfect sense. Looks good to me!

@mazimkhan
Copy link
Author

Added deploy-tests to .PHONY target. Ready for merge after CI passes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants