Compare commits

...

5 Commits

Author SHA1 Message Date
73b5c7eed3 Fix priority 2019-07-19 20:57:40 +02:00
48772027ea Fix check instead 2019-07-19 20:53:12 +02:00
e96dc2d22d remove pointless check 2019-07-19 20:45:40 +02:00
61a315b622 Try using Python 3 on Windows 2019-07-19 19:36:06 +02:00
0e805512e5 Brute force casing 2019-07-19 13:29:16 +02:00
3 changed files with 5 additions and 4 deletions

View File

@ -42,8 +42,8 @@ if(USE_WMAIN)
endif()
if (BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT)
find_package(PythonInterp)
if (NOT PYTHONINTERP_FOUND)
find_package(Python COMPONENTS Interpreter)
if (NOT Python_Interpreter_FOUND)
message(FATAL_ERROR "Python not found, but required for tests")
endif()
add_subdirectory(projects)

View File

@ -402,7 +402,7 @@ add_test(NAME FilteredSection-2 COMMAND $<TARGET_FILE:SelfTest> \#1394\ nested -
set_tests_properties(FilteredSection-2 PROPERTIES FAIL_REGULAR_EXPRESSION "No tests ran")
# AppVeyor has a Python 2.7 in path, but doesn't have .py files as autorunnable
add_test(NAME ApprovalTests COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/scripts/approvalTests.py $<TARGET_FILE:SelfTest>)
add_test(NAME ApprovalTests COMMAND ${Python_EXECUTABLE} ${CATCH_DIR}/scripts/approvalTests.py $<TARGET_FILE:SelfTest>)
set_tests_properties(ApprovalTests PROPERTIES FAIL_REGULAR_EXPRESSION "Results differed")
add_test(NAME RegressionCheck-1670 COMMAND $<TARGET_FILE:SelfTest> "#1670 regression check" -c A -r compact)

View File

@ -92,9 +92,10 @@ def diffFiles(fileA, fileB):
def normalizeFilepath(line):
if catchPathSymbolic in line:
if catchPathSymbolic in line or catchPathSymbolic.lower() in line:
# make paths relative to Catch root
line = line.replace(catchPathSymbolic + os.sep, '')
line = line.replace(catchPathSymbolic.lower() + os.sep, '')
m = langFilenameParser.match(line)
if m: