-
Notifications
You must be signed in to change notification settings - Fork 7k
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
[RFC] Run bsim tests with twister #85610
base: main
Are you sure you want to change the base?
[RFC] Run bsim tests with twister #85610
Conversation
I'm quite surprised by this PR. Not just because it appeared quite out of the blue for me, but also because there has been quite related work by others (CC @gchwier ) in these area this overlaps with:
We have had this want for very long, but so far we have not succeeded. So instead of doing the same we have done in previous PRs where we discussed some details and ended up spending time polishing something which was rejected on principal issues, I would suggest we have a talk about it between the more involved and relevant people, try to reach an agreement on the principal, and if we do, then look at the particular details. |
87f98dd
to
8f1a143
Compare
I just added the 4.2 milestone, as freeze for 4.1 is today, and this is neither ready not urgent. So to make it clear this is not trying to get into this release. |
@ardo-nordic next time consider opening such PRs as draft until they pass CI to avoid unnecessary noise for reviewers :) |
f747a95
to
dcd499b
Compare
dcd499b
to
7c288b6
Compare
Bsim harness now can also be used to run tests. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
BSIM tests might be reusing the same binary files, so it makes sense to be able to split tests into build-only, which will only build and copy executable files, and run only, which will run them whenever needed. This requires more sequential pipeline to avoid race conitions. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Adding functionality to split harness_config into common and test-case specific part, which are joined together for any given test. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Adding Bsim phy-specific options to harness config. Clean up leftover log files. Adding option to expand extra args with individual values for different simulated devices. Adding random seed value to every sim device. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Changing bsim_exe_name values to a list due to respective schema changes. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Adding necessary changes to testcase.yaml files in all Bsim host tests to make them directly runnable by twister's bsim harness. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Shell scripts are no longer needed since twister can be used to build and run host bsim tests. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Increasing test timeouts for better margins. Removing missed obsolete shell running files. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Chaning timeouts in testcase.yaml files to be the same as they were in the shell running scripts. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
Fixing minor compliance errors and issues popping up after rebase. Fixing unit tests. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
ed01c65
to
2b022cb
Compare
With added support of running bsim tests with Twister, separate building command is no longer need as tests can be build and run with single command. Signed-off-by: Artur Dobrynin <artur.dobrynin@nordicsemi.no>
2b022cb
to
b1be69e
Compare
Bsim harness in twister has been modified to be able to run tests. The main changes it entailed are as following:
Atm, only host is extensively using bsim harness, and thus is the only one affected.