CMake/Tests/CMakeTests
David Cole f67139ae6f Improve FILE(DOWNLOAD) and ExternalProject.
Improve FILE(DOWNLOAD ...):

- Add percent complete progress output to the FILE DOWNLOAD
  command. This progress output is off by default to
  preserve existing behavior. To turn it on, pass
  SHOW_PROGRESS as an argument.

- Add EXPECTED_MD5 argument. Verify that the downloaded
  file has the expected md5 sum after download is complete.

- Add documentation for SHOW_PROGRESS and EXPECTED_MD5.

  When the destination file exists already and has the
  expected md5 sum, then do not bother re-downloading
  the file. ("Short circuit" return.)

  Also, add a test that checks for the status output
  indicating that the short circuit behavior is actually
  occurring. Use a binary file for the test so that the
  md5 sum is guaranteed to be the same on all platforms
  regardless of "shifting text file line ending" issues.

Improve ExternalProject:

- Add argument URL_MD5.

- Add verify step that compares md5 sum of .tar.gz file
  before extracting it.

- Add md5 check to download step, too, to prevent
  unnecessary downloads.

- Emit a warning message when a file is not verified.
  Indicate that the file may be corrupt or that no
  checksum was specified.
2010-05-27 12:21:56 -04:00
..
A/include ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
ELF Create CMake.ELF test to cover cmELF further 2009-10-27 14:01:31 -04:00
include ENH: merge CMake-CrossCompileBasic to HEAD 2007-05-17 13:20:44 -04:00
CMakeLists.txt Improve FILE(DOWNLOAD) and ExternalProject. 2010-05-27 12:21:56 -04:00
CMakeMinimumRequiredTest.cmake.in Add tests for uncovered bits of the math and cmake_minimum_required cmake functions. 2009-10-05 16:50:21 -04:00
CMakeMinimumRequiredTestScript.cmake Add tests for uncovered bits of the math and cmake_minimum_required cmake functions. 2009-10-05 16:50:21 -04:00
CheckCMakeTest.cmake Factor out CMake.File test result check for re-use 2009-09-16 15:09:10 -04:00
CheckSourceTreeTest.cmake.in Force CheckSourceTree test to pass if the source tree is not a CVS checkout. The test can only do its checking if cvs is available and the source tree is a cvs checkout. Also, allow for the possibility that backslash characters exist in the HOME environment variable, because they may when built in a cygwin environment on Windows. 2009-12-07 11:54:23 -05:00
CompilerIdVendorTest.cmake.in Add alternate per-vendor compiler id detection 2010-02-01 09:03:05 -05:00
ConfigureFile-BadArg.cmake Create CMake.ConfigureFile test for configure_file 2009-09-16 15:09:58 -04:00
ConfigureFile-DirInput.cmake Create CMake.ConfigureFile test for configure_file 2009-09-16 15:09:58 -04:00
ConfigureFile-DirOutput.cmake Create CMake.ConfigureFile test for configure_file 2009-09-16 15:09:58 -04:00
ConfigureFile-Relative.cmake Create CMake.ConfigureFile test for configure_file 2009-09-16 15:09:58 -04:00
ConfigureFileTest.cmake.in Create CMake.ConfigureFile test for configure_file 2009-09-16 15:09:58 -04:00
DummyToolchain.cmake ENH: remove support for presetting CMAKE_SYSTEM_INFO_FILE, 2007-07-02 13:29:36 -04:00
ELFTest.cmake.in Create CMake.ELF test to cover cmELF further 2009-10-27 14:01:31 -04:00
EndStuffTest.cmake.in Increase coverage. Intentionally trigger error conditions. Call all the else*/end* functions without proper opening or containing code structure: else, elseif, endforeach, endfunction, endif, endmacro, endwhile. 2009-10-06 14:45:19 -04:00
EndStuffTestScript.cmake Increase coverage. Intentionally trigger error conditions. Call all the else*/end* functions without proper opening or containing code structure: else, elseif, endforeach, endfunction, endif, endmacro, endwhile. 2009-10-06 14:45:19 -04:00
ExecuteScriptTests.cmake Increase coverage. Intentionally trigger error conditions. Call all the else*/end* functions without proper opening or containing code structure: else, elseif, endforeach, endfunction, endif, endmacro, endwhile. 2009-10-06 14:45:19 -04:00
File-Copy-BadArg.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-BadPerm.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-BadRegex.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-EarlyArg.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-LateArg.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-NoDest.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
File-Copy-NoFile.cmake ENH: Test file(COPY) failure cases 2009-04-29 13:13:58 -04:00
FileDownloadInput.png Improve FILE(DOWNLOAD) and ExternalProject. 2010-05-27 12:21:56 -04:00
FileDownloadTest.cmake.in Improve FILE(DOWNLOAD) and ExternalProject. 2010-05-27 12:21:56 -04:00
FileTest.cmake.in Remove the rpath_remove_file_is_not_executable test case. It fails on Windows, but passes on Linux. Put back later after addressing inconsistency. 2009-10-17 12:12:07 -04:00
FileTestScript.cmake Remove the rpath_remove_file_is_not_executable test case. It fails on Windows, but passes on Linux. Put back later after addressing inconsistency. 2009-10-17 12:12:07 -04:00
FindBaseTest.cmake.in ENH: Add test for new find_* command HINTS option. 2008-06-09 15:09:14 -04:00
GetFilenameComponentRealpathTest.cmake.in Fix get_filename_component(... REALPATH) work dir 2009-11-18 10:56:40 -05:00
GetPrerequisitesTest.cmake.in STYLE: White space only change to see if continuous is working on new dashboard machine... 2009-03-31 13:50:26 -04:00
IfTest.cmake.in Test if() boolean coersion and CMP0012 behaviors 2009-10-27 09:08:12 -04:00
ImplicitLinkInfoTest.cmake.in Check Mac linker lines in ImplicitLinkInfo test 2009-11-05 12:17:21 -05:00
IncludeTest.cmake.in ENH: fix it 2007-06-06 13:43:46 -04:00
ListTest.cmake.in ENH: add REMOVE_DUPLICATES subcommand to LIST command (and test). Remove duplicates from a list (keep the ordering) 2008-03-12 17:02:10 -04:00
MathTest.cmake.in Add tests for uncovered bits of the math and cmake_minimum_required cmake functions. 2009-10-05 16:50:21 -04:00
MathTestScript.cmake Add tests for uncovered bits of the math and cmake_minimum_required cmake functions. 2009-10-05 16:50:21 -04:00
MessageTest.cmake.in ENH: Teach message() how to display warnings 2009-03-06 10:04:06 -05:00
MessageTestScript.cmake ENH: Teach message() how to display warnings 2009-03-06 10:04:06 -05:00
ModuleNoticesTest.cmake.in Better CMake.ModulesNotice test regex 2009-10-01 14:22:58 -04:00
SeparateArgumentsTest.cmake.in ENH: Teach separate_arguments() to parse commands 2009-07-14 10:15:47 -04:00
StringTest.cmake.in Add a few more cases to the new StringTest for even better coverage. Re-factor the scripts to make it easier to add new cases to this test. Re-factoring also enables the test driver in ExecuteScriptTests to be re-used when adding new tests in the future. 2009-10-03 12:01:10 -04:00
StringTestScript.cmake Fix issue #9851 - only seed the random number generator on the first call to STRING(RANDOM or if given the new RANDOM_SEED argument. Add test and documentation of new argument. 2009-11-06 10:07:10 -05:00
ToolchainTest.cmake.in BUG: fix test to work with new restrictions that cross compiling must be on 2008-09-08 20:21:35 -04:00
VariableWatchTest.cmake.in BUG: Teach VariableWatch test to check results 2009-07-24 16:57:38 -04:00
VersionTest.cmake.in ENH: Overhaul CMake version numbering 2009-03-05 15:17:07 -05:00