diff options
author | David Cole <david.cole@kitware.com> | 2009-10-16 19:07:41 (GMT) |
---|---|---|
committer | David Cole <david.cole@kitware.com> | 2009-10-16 19:07:41 (GMT) |
commit | a65b1cc3b0d842c7a55fb046aece9808f262d3cf (patch) | |
tree | d402e4789c7f257fb7f116660919248825dcc2ec /Tests/CMakeTests/FileTest.cmake.in | |
parent | fe8da5a99f44a9d3a822e268f7bd2ef21fd491e6 (diff) | |
download | CMake-a65b1cc3b0d842c7a55fb046aece9808f262d3cf.zip CMake-a65b1cc3b0d842c7a55fb046aece9808f262d3cf.tar.gz CMake-a65b1cc3b0d842c7a55fb046aece9808f262d3cf.tar.bz2 |
Add more testing coverage of the FILE command.
Diffstat (limited to 'Tests/CMakeTests/FileTest.cmake.in')
-rw-r--r-- | Tests/CMakeTests/FileTest.cmake.in | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Tests/CMakeTests/FileTest.cmake.in b/Tests/CMakeTests/FileTest.cmake.in index b19ad0a..0652ab2 100644 --- a/Tests/CMakeTests/FileTest.cmake.in +++ b/Tests/CMakeTests/FileTest.cmake.in @@ -23,3 +23,22 @@ check_cmake_test(File Copy-NoDest Copy-NoFile ) + +# Also execute each test listed in FileTestScript.cmake: +# +set(scriptname "@CMAKE_CURRENT_SOURCE_DIR@/FileTestScript.cmake") +set(number_of_tests_expected 27) + +include("@CMAKE_CURRENT_SOURCE_DIR@/ExecuteScriptTests.cmake") +execute_all_script_tests(${scriptname} number_of_tests_executed) + +# And verify that number_of_tests_executed is at least as many as we know +# about as of this writing... +# +message(STATUS "scriptname='${scriptname}'") +message(STATUS "number_of_tests_executed='${number_of_tests_executed}'") +message(STATUS "number_of_tests_expected='${number_of_tests_expected}'") + +if(number_of_tests_executed LESS number_of_tests_expected) + message(FATAL_ERROR "error: some test cases were skipped") +endif() |