The CMake.File test runs several scripts through "cmake -P" and checks the output and result against known good values. This commit factors out the checking code into a separate CMakeCheckTest module. The module may be used by new tests.
This fixes the regex checking expected output of Copy-NoFile to account for line wrapping when the input directory name is long.
This tests some cases of bad arguments to the file(COPY) signature. It checks that the proper error messages are produced.