-
Notifications
You must be signed in to change notification settings - Fork 19
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
Add ExtData Testing Framework #1556
Conversation
CMake can add tests that for things that are not pFunit. Just need to define a command that should return 0 (success), and then a cmake The challenge usually is to get relevant input data into the CMake test environment. If the test generates its own inputs, all the better. |
Thanks, I'll take a look around and see how it is done elsewhere in MAPL see how this could fit in with cmake |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added inline comments/questions.
It appears that the issue is "large" test I have that must be beyond the scope of the CI can handle based on the resources avaialable. For now I will remove that from the cases.txt file that so that a generic make tests command does not run it. If I or someone else wants to test it ourselves for the time being easy enough for me to add the line back to the file |
I suppose we could also have a label for that test? Maybe it could be a "VERYLARGE" test and we could exclude them from CI, but still have it as a case in general? |
If @bena-nasa finds the test useful, I would not want to lose it. It could still be exercised by the nightly scripts. |
I'm not deleting it, we updated the ci to skip that test but certainly be hand run or if I could figure out a way to test this on fewer cores might be the best bet |
Woooo! All pass! 🎉 |
I spent some time cleaning up the ExtData testing framework I maintain on my own personal git repo that I use to make sure I have not broken ExtData (and to some extent History as it requires History to function with the most basic functionality). I'm making this PR here, more for feedback.
The idea is that I have a set of test cases that exercise various ExtData data cases by having History generate the input for ExtData. Each case consists of input files only, no data as that is generated in each case on the fly.
I then have a set of python scripts to run each case, by moving the RC files for the specified cases to a temp directory, running ExtDataDriver.x, checking that the program finishes successfully, and then deleting the temp directory
I thought eventually we would want this in MAPL, but not sure how it fits into any other tests (its not PFUNIT!) or we would make use (is it something user has to explicitly run, that cmake can run or that CI can run like we run the model for example). Maybe it doesn't belong here yet but I figured since I took the time to clean things up for my own sake I would see if there are thoughts about this and how we might incorporate it, if that is something that anyone besides me would have interest in.
Description
Related Issue
Motivation and Context
How Has This Been Tested?
Types of changes
Checklist: