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

[WIP] Running tests including timers / callouts (using native mcu) without sleeping #2396

Open
ncasaril opened this issue Oct 20, 2020 · 0 comments

Comments

@ncasaril
Copy link
Contributor

We were looking into tests involving semaphores, callouts and timers where addresses are allocated to units and expire after a certain number of seconds. Setting up tests for this works well using the native mcu to include simulation of the os.

However, when making a test that is waiting x number of seconds for each expiry we end up with a test-case that runs for y minutes where it's almost only sleeping. A few of these tests and testing now takes a long time.

Would it make sense to have a mode in which we can run tests as fast as possible? I.e. timers and callouts would look to the next scheduled event and execute that rather than sleeping. We may need to take care of having multiple timers but that can be a stretch / future improvement. The case with a single timer should be fairly straightforward to implement?

@sjanc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant