Use local copy of sources for ctest instead of deployment directory
Some tests need a writable directory, so this MR changes the test script to:
- get the checkout artifact
- remove
CMakeCache.txt
- run the
configure
step using local sources instead of those from the deployment directory (which is read-only)