diff options
| author | David Seifert <soap@gentoo.org> | 2018-08-25 23:24:23 +0200 |
|---|---|---|
| committer | David Seifert <soap@gentoo.org> | 2018-08-25 23:24:23 +0200 |
| commit | 9edabe5400b81e731dcadefaaf2e8ba6e5f36a9b (patch) | |
| tree | 359c10dcd689c18d0c15a1fcf07b1d41cf7491c6 /dev-cpp/catch/files/catch-2.3.0-python-automagic.patch | |
| parent | a3bb3de8b35f81c239d2c3b85e6c7bbe335ebd50 (diff) | |
| download | gentoo-9edabe5400b81e731dcadefaaf2e8ba6e5f36a9b.tar.gz gentoo-9edabe5400b81e731dcadefaaf2e8ba6e5f36a9b.tar.bz2 gentoo-9edabe5400b81e731dcadefaaf2e8ba6e5f36a9b.zip | |
dev-cpp/catch: Version bump to 2.3.0
Package-Manager: Portage-2.3.44, Repoman-2.3.10
Diffstat (limited to 'dev-cpp/catch/files/catch-2.3.0-python-automagic.patch')
| -rw-r--r-- | dev-cpp/catch/files/catch-2.3.0-python-automagic.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/dev-cpp/catch/files/catch-2.3.0-python-automagic.patch b/dev-cpp/catch/files/catch-2.3.0-python-automagic.patch new file mode 100644 index 000000000000..c7fa4c6d22f6 --- /dev/null +++ b/dev-cpp/catch/files/catch-2.3.0-python-automagic.patch @@ -0,0 +1,25 @@ +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -36,7 +36,11 @@ + set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /ENTRY:wmainCRTStartup") + endif() + ++find_package(PythonInterp) + if (BUILD_TESTING AND CATCH_BUILD_TESTING AND NOT_SUBPROJECT) ++ if (NOT PYTHONINTERP_FOUND) ++ message(FATAL_ERROR "Python not found, but required for tests") ++ endif() + add_subdirectory(projects) + endif() + +--- a/projects/CMakeLists.txt ++++ b/projects/CMakeLists.txt +@@ -317,7 +317,7 @@ + set_tests_properties(NoTest PROPERTIES PASS_REGULAR_EXPRESSION "No test cases matched") + + # AppVeyor has a Python 2.7 in path, but doesn't have .py files as autorunnable +-add_test(NAME ApprovalTests COMMAND python ${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") + + if (CATCH_USE_VALGRIND) |
