CDash
CDash copied to clipboard
Add e2e tests involving live CTest submissions
Copied from @zackgalbreath's comment here so it doesn't get lost:
I think this is a good opportunity to add an end-to-end test of CTest with deferred submissions. I started working on this but got sidetracked. Here's some rough pseudocode of how I was imagining this would work:
- Invalidate
DB_DATABASElike we do here- Call CTest (either with
-Dor using a driver script like in the existing "simple" test cases- Verify expected behavior: ctest doesn't throw any errors, the XML files land in the inbox, etc.
- Restore
DB_DATABASEand callphp artisan submission:queue- Verify that the build got parsed successfully.
How to actually achieve this "cleanly" from phpunit is less clear to me. Just a bunch of
exec()calls?