@@ -1074,18 +1074,14 @@ endif()
1074
1074
#Make the tests work when building out of the source tree
1075
1075
get_filename_component (CACHE_PATH ${CMAKE_CURRENT_LIST_DIR} /../../CMakeCache.txt ABSOLUTE )
1076
1076
if (NOT ${CMAKE_BINARY_DIR} /CMakeCache.txt STREQUAL ${CACHE_PATH} )
1077
- file (RELATIVE_PATH BUILD_DIR_RELATIVE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} /CMakeCache.txt )
1078
- string (REPLACE "/CMakeCache.txt" "" BUILD_DIR_RELATIVE ${BUILD_DIR_RELATIVE} )
1079
1077
#Setting the build directory in test-lib.sh before running tests
1080
1078
file (WRITE ${CMAKE_BINARY_DIR} /CTestCustom.cmake
1081
- "file(STRINGS ${CMAKE_SOURCE_DIR} /t/test-lib.sh GIT_BUILD_DIR_REPL REGEX \" GIT_BUILD_DIR=(.*)\" )\n "
1082
- "file(STRINGS ${CMAKE_SOURCE_DIR} /t/test-lib.sh content NEWLINE_CONSUME)\n "
1083
- "string(REPLACE \"\$ {GIT_BUILD_DIR_REPL}\" \" GIT_BUILD_DIR=\\\" $TEST_DIRECTORY/../${BUILD_DIR_RELATIVE} \\\"\" content \"\$ {content}\" )\n "
1084
- "file(WRITE ${CMAKE_SOURCE_DIR} /t/test-lib.sh \$ {content})" )
1079
+ "file(WRITE ${CMAKE_SOURCE_DIR} /GIT-BUILD-DIR \" ${CMAKE_BINARY_DIR} \" )" )
1085
1080
#misc copies
1086
1081
file (COPY ${CMAKE_SOURCE_DIR} /t/chainlint.pl DESTINATION ${CMAKE_BINARY_DIR} /t/ )
1087
1082
file (COPY ${CMAKE_SOURCE_DIR} /po/is.po DESTINATION ${CMAKE_BINARY_DIR} /po/ )
1088
- file (COPY ${CMAKE_SOURCE_DIR} /mergetools/tkdiff DESTINATION ${CMAKE_BINARY_DIR} /mergetools/ )
1083
+ file (GLOB mergetools "${CMAKE_SOURCE_DIR} /mergetools/*" )
1084
+ file (COPY ${mergetools} DESTINATION ${CMAKE_BINARY_DIR} /mergetools/ )
1089
1085
file (COPY ${CMAKE_SOURCE_DIR} /contrib/completion/git-prompt.sh DESTINATION ${CMAKE_BINARY_DIR} /contrib/completion/ )
1090
1086
file (COPY ${CMAKE_SOURCE_DIR} /contrib/completion/git-completion.bash DESTINATION ${CMAKE_BINARY_DIR} /contrib/completion/ )
1091
1087
endif ()
@@ -1095,8 +1091,12 @@ file(GLOB test_scipts "${CMAKE_SOURCE_DIR}/t/t[0-9]*.sh")
1095
1091
#test
1096
1092
foreach (tsh ${test_scipts} )
1097
1093
add_test (NAME ${tsh}
1098
- COMMAND ${SH_EXE} ${tsh}
1094
+ COMMAND ${SH_EXE} ${tsh} --no-bin-wrappers --no-chain-lint -vx
1099
1095
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /t )
1100
1096
endforeach ()
1101
1097
1098
+ # This test script takes an extremely long time and is known to time out even
1099
+ # on fast machines because it requires in excess of one hour to run
1100
+ set_tests_properties ("${CMAKE_SOURCE_DIR} /t/t7112-reset-submodule.sh" PROPERTIES TIMEOUT 4000 )
1101
+
1102
1102
endif ()#BUILD_TESTING
0 commit comments