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

Improve testing for Monitor and MonitorObserver #201

Open
mulkieran opened this issue Jul 15, 2016 · 3 comments
Open

Improve testing for Monitor and MonitorObserver #201

mulkieran opened this issue Jul 15, 2016 · 3 comments

Comments

@mulkieran
Copy link
Contributor

No description provided.

@mulkieran
Copy link
Contributor Author

mulkieran commented Jul 15, 2016

In particular, is it possible to find out useful things by monitoring real udev events on real systems?

At the very least, make sure it can run w/out raising an exception.

Better, deduce a property from the sequence of udev events observed.
For example, if a device was added and not subsequently removed, it must exist.
It is possible to force such events in software by, e.g., creating and destroying md arrays or what not.
But, this requires imagining a single test, and deciding what the outcome would be, i.e., it is example based.
What about running a continuous test that simply monitors udev events until it finds something that doesn't match expected state? Note that this could not be a hypothesis test, but rather a daemon of some sort.

It is possible to use udevadm monitor as an oracle of sorts.

@mulkieran
Copy link
Contributor Author

mulkieran commented Jul 18, 2016

The best first step would be to use udev-hypothesis to simply monitor events as they occur.
The problem, of course, is that they won't occur unless they are forced in some way.

@mulkieran
Copy link
Contributor Author

We have udevadm trigger and could possibly take advantage of it.

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