@@ -1102,18 +1102,14 @@ endif()
1102
1102
#Make the tests work when building out of the source tree
1103
1103
get_filename_component (CACHE_PATH ${CMAKE_CURRENT_LIST_DIR} /../../CMakeCache.txt ABSOLUTE )
1104
1104
if (NOT ${CMAKE_BINARY_DIR} /CMakeCache.txt STREQUAL ${CACHE_PATH} )
1105
- file (RELATIVE_PATH BUILD_DIR_RELATIVE ${CMAKE_SOURCE_DIR} ${CMAKE_BINARY_DIR} /CMakeCache.txt )
1106
- string (REPLACE "/CMakeCache.txt" "" BUILD_DIR_RELATIVE ${BUILD_DIR_RELATIVE} )
1107
1105
#Setting the build directory in test-lib.sh before running tests
1108
1106
file (WRITE ${CMAKE_BINARY_DIR} /CTestCustom.cmake
1109
- "file(STRINGS ${CMAKE_SOURCE_DIR} /t/test-lib.sh GIT_BUILD_DIR_REPL REGEX \" GIT_BUILD_DIR=(.*)\" )\n "
1110
- "file(STRINGS ${CMAKE_SOURCE_DIR} /t/test-lib.sh content NEWLINE_CONSUME)\n "
1111
- "string(REPLACE \"\$ {GIT_BUILD_DIR_REPL}\" \" GIT_BUILD_DIR=\\\" $TEST_DIRECTORY/../${BUILD_DIR_RELATIVE} \\\"\" content \"\$ {content}\" )\n "
1112
- "file(WRITE ${CMAKE_SOURCE_DIR} /t/test-lib.sh \$ {content})" )
1107
+ "file(WRITE ${CMAKE_SOURCE_DIR} /GIT-BUILD-DIR \" ${CMAKE_BINARY_DIR} \" )" )
1113
1108
#misc copies
1114
1109
file (COPY ${CMAKE_SOURCE_DIR} /t/chainlint.sed DESTINATION ${CMAKE_BINARY_DIR} /t/ )
1115
1110
file (COPY ${CMAKE_SOURCE_DIR} /po/is.po DESTINATION ${CMAKE_BINARY_DIR} /po/ )
1116
- file (COPY ${CMAKE_SOURCE_DIR} /mergetools/tkdiff DESTINATION ${CMAKE_BINARY_DIR} /mergetools/ )
1111
+ file (GLOB mergetools "${CMAKE_SOURCE_DIR} /mergetools/*" )
1112
+ file (COPY ${mergetools} DESTINATION ${CMAKE_BINARY_DIR} /mergetools/ )
1117
1113
file (COPY ${CMAKE_SOURCE_DIR} /contrib/completion/git-prompt.sh DESTINATION ${CMAKE_BINARY_DIR} /contrib/completion/ )
1118
1114
file (COPY ${CMAKE_SOURCE_DIR} /contrib/completion/git-completion.bash DESTINATION ${CMAKE_BINARY_DIR} /contrib/completion/ )
1119
1115
endif ()
@@ -1123,8 +1119,12 @@ file(GLOB test_scipts "${CMAKE_SOURCE_DIR}/t/t[0-9]*.sh")
1123
1119
#test
1124
1120
foreach (tsh ${test_scipts} )
1125
1121
add_test (NAME ${tsh}
1126
- COMMAND ${SH_EXE} ${tsh}
1122
+ COMMAND ${SH_EXE} ${tsh} --no-bin-wrappers --no-chain-lint -vx
1127
1123
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR} /t )
1128
1124
endforeach ()
1129
1125
1126
+ # This test script takes an extremely long time and is known to time out even
1127
+ # on fast machines because it requires in excess of one hour to run
1128
+ set_tests_properties ("${CMAKE_SOURCE_DIR} /t/t7112-reset-submodule.sh" PROPERTIES TIMEOUT 4000 )
1129
+
1130
1130
endif ()#BUILD_TESTING
0 commit comments