cmake: allow testing when forbidding downloads
The testing data might be available locally through the data tarballs made with releases.
This mostly reverts !5079 (merged) but still makes noise in the situation since it can be easy to forget it.
Fixes: #18692 (closed)
Cc: @StefanBruens
Backport: release