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

Make greentea tools standalone #303

Closed
22 tasks done
rwalton-arm opened this issue May 25, 2021 · 3 comments
Closed
22 tasks done

Make greentea tools standalone #303

rwalton-arm opened this issue May 25, 2021 · 3 comments
Labels

Comments

@rwalton-arm
Copy link
Contributor

rwalton-arm commented May 25, 2021

We'd like to make the greentea tools standalone again, rather than part of the mbed-os-tools mono repo.

@rwalton-arm rwalton-arm changed the title Make greentea standalone Make greentea tools standalone May 25, 2021
@LDong-Arm
Copy link

LDong-Arm commented Jun 8, 2021

Explanation for scripts in host_tests:
Some of the scripts are not directly referenced by the code base, but actually greentea-client can instruct htrun to run the script with specified name:

GREENTEA_SETUP(20, "default_auto");

in this case htrun looks for default_auto.py in its "search paths".

host_tests in htrun:
The host_tests from htrun itself is in the "search path", but users can also add additional directories using the -e/--enum-host-tests option. We intend to keep those scripts in htrun, so tests have a choice to use them without supplying their own host scripts.

host_tests in mbed-os:
The host scripts bundled in tools/host_tests/ in mbed-os are legacy, but removing them without breaking Mbed CLI 1 is not straightforward. For example, they are referenced by tools/tests_api.py which is coupled with Mbed CLI 1's mbed test command. When we stop supporting Mbed CLI 1 in the future, we can remove host_tests and command line support altogether from the Mbed OS tree.

@rajkan01
Copy link
Contributor

rajkan01 commented Jun 14, 2021

Verify fastmodel support works in standalone greentea htrun:

mbed-fastmodel-agent is an interface python module to ARM fast model and this fastmodel agent is invoked by htrun to run host tests with fast models. Unfortunately mbed-fastmodel-agent is using pyCADI (based Python 2.7) which is part of the ARM fast model and it got deprecated in the latest version and replaced by Iris CADI which leads to significant changes in the mbed-fastmodel-agent to work so I could not able to completely verify the flow of fast model inside htrun and only checked ran the following command to make sure it invokes the fast model agent APIs

@Patater
Copy link
Contributor

Patater commented Sep 30, 2021

All tasks closed. Mission complete.

@Patater Patater closed this as completed Sep 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants