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

tests/shell: add test for preemption #19005

Merged
merged 1 commit into from
Mar 27, 2024

Conversation

benpicco
Copy link
Contributor

@benpicco benpicco commented Dec 2, 2022

Contribution description

This tests if a blocking stdio read will allow other threads to be scheduled.

Testing procedure

periodic test 5 should print test 5 times from a separate thread

> periodic test 5
> test
test
test
test
test

Issues/PRs references

requires #19002 to work on native

@github-actions github-actions bot added the Area: tests Area: tests and testing framework label Dec 2, 2022
@benpicco benpicco added the State: waiting for other PR State: The PR requires another PR to be merged first label Dec 2, 2022
@benpicco benpicco force-pushed the tests/shell-preempt branch from 59fe7ab to 51b6bab Compare February 9, 2024 14:38
@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed State: waiting for other PR State: The PR requires another PR to be merged first labels Feb 9, 2024
@benpicco benpicco force-pushed the tests/shell-preempt branch from 51b6bab to 29f873a Compare February 9, 2024 14:39
@benpicco benpicco added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Feb 9, 2024
@riot-ci
Copy link

riot-ci commented Feb 9, 2024

Murdock results

✔️ PASSED

ac383b3 tests/shell: add test for preemption

Success Failures Total Runtime
65 0 66 52s

Artifacts

@Teufelchen1
Copy link
Contributor

Looks okay from a first glance. You should add a comment on what that function is testing and how it is doing it. Otherwise it is not clear what is going on / the intentions.

@benpicco
Copy link
Contributor Author

I also took the opportunity to simplify the test a bit, so it still fits on tiny MCUs.

@benpicco benpicco force-pushed the tests/shell-preempt branch from fbc94c1 to 819ebbd Compare February 12, 2024 11:03
@Teufelchen1
Copy link
Contributor

LGTM. Not super happy with the very short comment but 'eh, good enough.
Squash?

@benpicco benpicco force-pushed the tests/shell-preempt branch from 819ebbd to 69805d2 Compare March 12, 2024 12:05
@Teufelchen1 Teufelchen1 enabled auto-merge March 12, 2024 15:03
@Teufelchen1 Teufelchen1 added this pull request to the merge queue Mar 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 12, 2024
@Teufelchen1
Copy link
Contributor

@benpicco murdock is not happy, can you take a look?

This tests if a blocking stdio read will allow other threads to be scheduled.
@benpicco benpicco force-pushed the tests/shell-preempt branch from 69805d2 to ac383b3 Compare March 26, 2024 23:12
@benpicco benpicco enabled auto-merge March 26, 2024 23:12
@benpicco benpicco added this pull request to the merge queue Mar 26, 2024
Merged via the queue into RIOT-OS:master with commit d13faeb Mar 27, 2024
25 checks passed
@benpicco benpicco deleted the tests/shell-preempt branch March 27, 2024 11:11
@MrKevinWeiss MrKevinWeiss added this to the Release 2024.04 milestone Apr 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: tests Area: tests and testing framework CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants