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

Create a set of utilities that user defined tests can use to gain information during workload setup/execution #9

Open
ashmrtn opened this issue Jul 15, 2017 · 5 comments

Comments

@ashmrtn
Copy link
Member

ashmrtn commented Jul 15, 2017

User provided tests should have a set of utilities/methods that they can call into which provide them with things like the directory the test file system is mounted at and the file system size.

@ashmrtn
Copy link
Member Author

ashmrtn commented Jul 15, 2017

This functionality can likely be implemented as either methods on the BaseTestCase class which user workloads should inherit from, or a set of standalone utilities. The standalone utilities may be more useful if we plan on allowing users to run CrashMonkey in the background while running a workload.

@vijay03
Copy link
Member

vijay03 commented Jul 15, 2017 via email

@ashmrtn
Copy link
Member Author

ashmrtn commented Jul 15, 2017

I agree that the user will probably know about these before-hand when the setup the test harness. However, if we want to have a library of common test cases, we have to be able to efficiently deal with the fact that users could choose different mount directories when running those test cases. In that case, it would be useful to have some set of utilities the test cases could call into to find where they are mounted and things like that.

@vijay03
Copy link
Member

vijay03 commented Jul 15, 2017 via email

@ashmrtn
Copy link
Member Author

ashmrtn commented Jul 15, 2017

Sure. Part of the reason for making this is so that it doesn't get forgotten down the road if we wish to make this a more robust system for people to use.

@ashmrtn ashmrtn added the entry label Sep 1, 2017
SonikaG added a commit that referenced this issue Dec 14, 2017
My code for Issue #9--Sets environment variables for mount directory/filesystem size and passes those variables to tests.
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

2 participants