-
-
Notifications
You must be signed in to change notification settings - Fork 55
"dogfooding" caf and cafrun for tests #275
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
Comments
Sounds good. It probably makes sense to seek the advice of CMake developer @brad.king. I'm not sure if the latter tag will work so I'll email him too. |
Actually, the more I think about it the more I am drawn to |
Either of these approaches may work. An advantage of using |
Thanks for chiming in @bradking! It sounds like in the long run it might make the most sense to use @bradking said:
@bradking: Do you know if this means that we need to export our build directory too if we want to do this before running |
@zbeekman yes, if an externally-built project is to test the libraries and such from the build tree then |
🎩 ✨ 🐇 🔮 |
Well, actually if I was prescient, I would have made the changes to |
might make sense to handle this at the same time as #267 |
Note to self: See the generator expressions section of https://cmake.org/cmake/help/v3.8/command/add_test.html |
@zbeekman Let's look at this together so we can implement it and close the issue? |
Uh oh!
There was an error while loading. Please reload this page.
Should we be using
caf
to compile our tests andcafrun
to execute them? This is often called "dogfooding" and can help further test our scripts and ensure their correctness, while also displaying confidence in them. I'm wondering how to go about this in CMake. I think this could be achieved via:caf
andcafrun
scripts fully resolve the compilers they wrap and pass necessary flags etc. and are available before install. RFC: Hard code full paths and more precisely specify linker/compiler flags & MPI flags in caf and cafrun scripts #268 We can use CMake'sREALPATH
capabilities for this.caf
... this could be unstable/difficult. An alternative might be to look into externalproject_add ... here is some useful info: http://cmake.3232098.n2.nabble.com/ExternalProject-Add-without-download-of-local-sources-td6797293.htmlThe text was updated successfully, but these errors were encountered: