Skip to content

Add Travis job to build all compliance and regression tests #57

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 1 commit into from
Dec 11, 2020

Conversation

LDong-Arm
Copy link
Contributor

@LDong-Arm LDong-Arm commented Dec 8, 2020

Fixes: #36

For now, build regression and compliance tests for ARM_MUSCA_S1 and ARM_MUSCA_B1 targets.

Since there are a number of regression tests and compliance tests to build (rather than just one or two), we use the existing test_psa_target.py to automate them. Note that this script doesn't support choosing from release/develop/debug profiles yet.

@LDong-Arm LDong-Arm force-pushed the add_travis branch 3 times, most recently from e2c3ff9 to 6cc4b06 Compare December 9, 2020 18:20
@LDong-Arm LDong-Arm changed the title Add Travis CI Add Travis job to build all compliance and regression tests Dec 9, 2020
@LDong-Arm
Copy link
Contributor Author

@jainvikas8 I'll make the similar changes to your suggestions in ARMmbed/mbed-os-example-psa#12

@LDong-Arm LDong-Arm force-pushed the add_travis branch 2 times, most recently from a0c5bc8 to 9f06721 Compare December 10, 2020 15:53
@LDong-Arm
Copy link
Contributor Author

No idea why this happened

[Test-Target] 15:56:16: [Build-TF-M] 15:56:16: CMake Error at cmake/Common/FindGNUARM.cmake:88 (message):..
[Test-Target] 15:56:16: [Build-TF-M] 15:56:16:   get_armgcc_version(): Failed to extract version number from..
[Test-Target] 15:56:16: [Build-TF-M] 15:56:16:   arm-none-eabi-gcc output...

ccache?

@LDong-Arm LDong-Arm force-pushed the add_travis branch 3 times, most recently from eeb4f5f to 51c6a03 Compare December 11, 2020 09:41
@LDong-Arm LDong-Arm changed the title Add Travis job to build all compliance and regression tests WIP: Add Travis job to build all compliance and regression tests Dec 11, 2020
@LDong-Arm LDong-Arm force-pushed the add_travis branch 5 times, most recently from f194016 to 95057e5 Compare December 11, 2020 11:03
@LDong-Arm LDong-Arm changed the title WIP: Add Travis job to build all compliance and regression tests Add Travis job to build all compliance and regression tests Dec 11, 2020
.travis.yml Outdated
- sudo ln -s $(which ccache) bin/arm-none-eabi-gcc
- sudo ln -s $(which ccache) bin/arm-none-eabi-g++
- export PATH="$(pwd)/bin:$PATH"
- arm-none-eabi-gcc --version
Copy link

Choose a reason for hiding this comment

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

It makes more sense to print the version in the section above "# Install arm-none-eabi-gcc" as the last command

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I put it here to check the arm-none-eabi-gcc -> ccache link worked. Now we know it's working, I'll move this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

The script test_psa_target.py is used to automate the compilation
of all TF-M Regression Test and PSA Compliance Test suites, for
the supported targets, ARM_MUSCA_S1 and ARM_MUSCA_B1.
@LDong-Arm
Copy link
Contributor Author

Let's wait for Travis to run. I'll check if ccache works well, as there's no change in the build itself since my previous push.

@LDong-Arm LDong-Arm requested a review from evedon December 11, 2020 14:36
@LDong-Arm
Copy link
Contributor Author

The cache hit rate is around 85% during the last CI run, so it works.

@evedon evedon merged commit e864ecf into ARMmbed:master Dec 11, 2020
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.

Add a travis job to build TF-M supported targets.
2 participants