]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Remove check-TEST target which cannot work.
authorMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 19 Jan 2009 01:06:42 +0000 (20:06 -0500)
committerMichihiro NAKAJIMA <ggcueroad@gmail.com>
Mon, 19 Jan 2009 01:06:42 +0000 (20:06 -0500)
SVN-Revision: 449

CMakeLists.txt

index bf9fb10303aedad229bf5163df07ba4349764d0a..745fc645f00e0d541e7ea0119a795447c877704f 100644 (file)
@@ -767,48 +767,3 @@ IF(ENABLE_CPIO AND ENABLE_TEST)
 
 ENDIF(ENABLE_CPIO AND ENABLE_TEST)
 
-############################################
-#
-# check-TESTS for Windows
-#
-# XXXXX Is this really needed?  Why is the ADD_TEST(), etc, setup
-# above not sufficient?
-#
-IF (WIN32)
-  #
-  # On Windows, we should make a command script for running test programs.
-  #
-  ADD_CUSTOM_TARGET(check-TESTS VERBATIM)
-  ADD_CUSTOM_COMMAND(TARGET check-TESTS POST_BUILD
-        COMMAND "${CMAKE_CURRENT_BINARY_DIR}/check-TESTS.CMD"
-                $(ConfigurationName))
-  SET(_testcmd "${CMAKE_CURRENT_BINARY_DIR}/check-TESTS.CMD")
-  IF (NOT EXISTS "${_testcmd}" OR
-     ${CMAKE_CURRENT_LIST_FILE} IS_NEWER_THAN "${_testcmd}")
-    MESSAGE(STATUS "Generating check-TESTS.CMD")
-    FILE(WRITE  ${_testcmd} "@rem This file generated by cmake.\n")
-    FILE(APPEND ${_testcmd} "@echo off\n")
-    FILE(APPEND ${_testcmd} "IF \"%1\" == \"Release\" goto test\n")
-    FILE(APPEND ${_testcmd} "IF \"%1\" == \"release\" goto test\n")
-    FILE(APPEND ${_testcmd} "IF \"%1\" == \"Debug\" goto test\n")
-    FILE(APPEND ${_testcmd} "IF \"%1\" == \"debug\" goto test\n")
-    FILE(APPEND ${_testcmd} "goto error\n")
-    FILE(APPEND ${_testcmd} ":test\n")
-    FOREACH(_test_prog ${check_program})
-      GET_PROPERTY(_test_envs TARGET ${_test_prog} PROPERTY ENVIRONMENT)
-      FILE(APPEND ${_testcmd} "setlocal\n")
-      FOREACH(_test_env ${_test_envs})
-        FILE(APPEND ${_testcmd} "SET ${_test_env}\n")
-      ENDFOREACH(_test_env)
-      FILE(APPEND ${_testcmd}
-          "${CMAKE_CURRENT_BINARY_DIR}/%1/${_test_prog}.exe\n")
-      FILE(APPEND ${_testcmd} "endlocal\n")
-    ENDFOREACH(_test_prog)
-    FILE(APPEND ${_testcmd} "goto end\n")
-    FILE(APPEND ${_testcmd} ":error\n")
-    FILE(APPEND ${_testcmd} " echo You have to choose Debug or Release\n")
-    FILE(APPEND ${_testcmd} ":end\n")
-  ENDIF (NOT EXISTS "${_testcmd}" OR
-     ${CMAKE_CURRENT_LIST_FILE} IS_NEWER_THAN "${_testcmd}")
-ENDIF (WIN32)
-