Skip to content

Mbed Crypto Tests #8754

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 9 commits into from
Nov 30, 2018
Merged

Mbed Crypto Tests #8754

merged 9 commits into from
Nov 30, 2018

Conversation

itayzafrir
Copy link
Contributor

Description

Add mbed-crypto basic functionality tests to mbed-os/TESTS/mbed-crypto/sanity directory.

This PR depends on the PR for the upcoming mbedtls release for mbed-os version 5.11.

Note this PR cannot be compiled or tested until mbedtls has been merged into mbed-os.

Pull request type

[ ] Fix
[ ] Refactor
[ ] Target update
[ ] Functionality change
[ ] Docs update
[x] Test update
[ ] Breaking change

Copy link
Contributor

@Patater Patater left a comment

Choose a reason for hiding this comment

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

OK

Copy link
Contributor

@0xc0170 0xc0170 left a comment

Choose a reason for hiding this comment

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

Fix the license

@@ -0,0 +1,301 @@
#include <stdio.h>
Copy link
Contributor

Choose a reason for hiding this comment

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

add license header please (with SPDX identifier)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

License added.

Copy link
Contributor

Choose a reason for hiding this comment

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

@0xc0170 , a license was added so I moved this PR to CI, please check that the license is ok with you.

@NirSonnenschein
Copy link
Contributor

NirSonnenschein commented Nov 18, 2018

CI can't run on this as is, waiting for preceding PR (mbedTLS PR)

@NirSonnenschein
Copy link
Contributor

@itayzafrir @avolinski : this cant run to due to a build issue:
[Error] crypto.h@3473,0: #5: cannot open source input file "crypto_struct.h": No such file or directory
probably needs to be adjusted to the changes in master.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 26, 2018

We would like to rerun CI for this PR, look at the failures

@bulislaw
Copy link
Member

bulislaw commented Nov 26, 2018

All the PRs need to be engineering ready (marked as "needs: CI") by the end of the day (Austin time). Otherwise it won't make 5.11 and will need to come in the next release (5.12 for features, 5.11.1 for fixes and new platforms).

@cmonr
Copy link
Contributor

cmonr commented Nov 26, 2018

@itayzafrir Fyi, this still needs work.

However, since this is just test additions, at worst, this could be mobed to 5.11.1

Oren Cohen and others added 2 commits November 27, 2018 11:54
* Add support for entropy injection
* Move psa_crypto_init & mbedtls_psa_crypto_free to setup & teardown handlers
* Skip test_crypto_asymmetric_encrypt_decrypt if RSA generation is not supported
@0xc0170
Copy link
Contributor

0xc0170 commented Nov 28, 2018

@itayzafrir Is this still in progress (should it be needs: work) or ready for CI?

@itayzafrir
Copy link
Contributor Author

Hi @0xc0170, some work was done over the past couple of days so I believe this is ready for CI.

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 28, 2018

@Patater Still happy with the latest updates? I'll set this as needs: CI (might take a day to get in CI as there are still 5.11rc PR in the CI )

@cmonr
Copy link
Contributor

cmonr commented Nov 29, 2018

CI started.

@mbed-ci
Copy link

mbed-ci commented Nov 29, 2018

Test run: SUCCESS

Summary: 3 of 3 test jobs passed
Build number : 3
Build artifacts
Build logs

@cmonr
Copy link
Contributor

cmonr commented Nov 30, 2018

Looks like this PR had some build issues with one of the exporters. Follow this link to access the log failures: http://mbed-os-ci.s3-website-eu-west-1.amazonaws.com/?prefix=jenkins-ci/builds/exporter/8754/3/uvision5/FAIL/

One of the build failures:

...
compiling main.cpp...
compiling WisunInterface.cpp...
mbed-os\features\nanostack\nanostack-interface\Nanostack.h(278): warning:  #1300-D: call_in inherits implicit virtual
mbed-os\features\nanostack\mbed-mesh-api\source\WisunInterface.cpp: 1 warning, 0 errors
linking...
C:\Users\ADMINI~1\AppData\Local\Temp\p5a8-2(39): warning:  #47-D: incompatible redefinition of macro "MBED_RAM_SIZE" 
  #define MBED_RAM_SIZE               0x50000
C:\Users\ADMINI~1\AppData\Local\Temp\p5a8-2: 1 warning, 0 errors
.\.link_script.sct(45): error: L6236E: No section matches selector - no section to be FIRST/LAST.
Not enough information to list image symbols.
Not enough information to list load addresses in the image map.
Finished: 2 information, 0 warning and 1 error messages.
".\BUILD\mbed-os-example-blinky.axf" - 1 Error(s), 97 Warning(s).
Target not created.

@Patater
Copy link
Contributor

Patater commented Nov 30, 2018

@cmonr That failure looks entirely unrelated to the contents of this PR, as this PR does not touch mbed-os\features\nanostack\mbed-mesh-api\source\WisunInterface.cpp, the source of the error. MBED_RAM_SIZE is also not a string contained in the contents of this PR. Any ideas why this is showing up now and didn't on other previous PRs?

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 30, 2018

That is correct, reported internally MBEDOSTEST-353, this is uvision5 CI issue

@0xc0170
Copy link
Contributor

0xc0170 commented Nov 30, 2018

Exporters restarted

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.

7 participants