From 91ee07e08c5a72536834960ecf2527fa90244046 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ho=C5=99e=C5=88ovsk=C3=BD?= Date: Fri, 6 Dec 2019 11:53:31 +0100 Subject: [PATCH] Moved scripts/ to tools/scripts/ --- .travis.yml | 2 +- docs/contributing.md | 2 +- docs/release-process.md | 2 +- tests/CMakeLists.txt | 2 +- {scripts => tools/scripts}/approvalTests.py | 0 {scripts => tools/scripts}/approve.py | 0 {scripts => tools/scripts}/benchmarkCompile.py | 0 {scripts => tools/scripts}/benchmarkRunner.py | 0 {scripts => tools/scripts}/developBuild.py | 0 {scripts => tools/scripts}/embed.py | 0 {scripts => tools/scripts}/embedClara.py | 0 {scripts => tools/scripts}/extractFeaturesFromReleaseNotes.py | 0 {scripts => tools/scripts}/fixWhitespace.py | 0 {scripts => tools/scripts}/generateSingleHeader.py | 0 {scripts => tools/scripts}/majorRelease.py | 0 {scripts => tools/scripts}/minorRelease.py | 0 {scripts => tools/scripts}/patchRelease.py | 0 {scripts => tools/scripts}/releaseCommon.py | 0 {scripts => tools/scripts}/releaseNotes.py | 0 {scripts => tools/scripts}/scriptCommon.py | 2 +- {scripts => tools/scripts}/updateDocumentToC.py | 0 {scripts => tools/scripts}/updateWandbox.py | 0 22 files changed, 5 insertions(+), 5 deletions(-) rename {scripts => tools/scripts}/approvalTests.py (100%) rename {scripts => tools/scripts}/approve.py (100%) rename {scripts => tools/scripts}/benchmarkCompile.py (100%) rename {scripts => tools/scripts}/benchmarkRunner.py (100%) rename {scripts => tools/scripts}/developBuild.py (100%) rename {scripts => tools/scripts}/embed.py (100%) rename {scripts => tools/scripts}/embedClara.py (100%) rename {scripts => tools/scripts}/extractFeaturesFromReleaseNotes.py (100%) rename {scripts => tools/scripts}/fixWhitespace.py (100%) rename {scripts => tools/scripts}/generateSingleHeader.py (100%) rename {scripts => tools/scripts}/majorRelease.py (100%) rename {scripts => tools/scripts}/minorRelease.py (100%) rename {scripts => tools/scripts}/patchRelease.py (100%) rename {scripts => tools/scripts}/releaseCommon.py (100%) rename {scripts => tools/scripts}/releaseNotes.py (100%) rename {scripts => tools/scripts}/scriptCommon.py (88%) rename {scripts => tools/scripts}/updateDocumentToC.py (100%) rename {scripts => tools/scripts}/updateWandbox.py (100%) diff --git a/.travis.yml b/.travis.yml index 837ec890..18766e52 100644 --- a/.travis.yml +++ b/.travis.yml @@ -175,7 +175,7 @@ before_script: - export CXX=${COMPILER} - cd ${TRAVIS_BUILD_DIR} # Regenerate single header file, so it is tested in the examples... - - python scripts/generateSingleHeader.py + - python tools/scripts/generateSingleHeader.py - | if [[ ${CPP17} -eq 1 ]]; then diff --git a/docs/contributing.md b/docs/contributing.md index 5429bf9d..2bfd2a92 100644 --- a/docs/contributing.md +++ b/docs/contributing.md @@ -35,7 +35,7 @@ While these files are not essential to compilation they help to keep the impleme At time of writing this set is not complete but has reasonable coverage. If you add additional headers please try to remember to add a surrogate cpp for it. -The other directories are `scripts` which contains a set of python scripts to help in testing Catch as well as +The other directories are `tools/scripts` which contains a set of python scripts to help in testing Catch as well as generating the single include, and `docs`, which contains the documentation as a set of markdown files. __When submitting a pull request please do not include changes to the single include, or to the version number file diff --git a/docs/release-process.md b/docs/release-process.md index ca48da03..1b39b1f2 100644 --- a/docs/release-process.md +++ b/docs/release-process.md @@ -1,7 +1,7 @@ # How to release -When enough changes have accumulated, it is time to release new version of Catch. This document describes the process in doing so, that no steps are forgotten. Note that all referenced scripts can be found in the `scripts/` directory. +When enough changes have accumulated, it is time to release new version of Catch. This document describes the process in doing so, that no steps are forgotten. Note that all referenced scripts can be found in the `tools/scripts/` directory. ## Necessary steps diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 9708fb0d..f65f5100 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -213,7 +213,7 @@ add_test(NAME FilteredSection-2 COMMAND $ \#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 $) +add_test(NAME ApprovalTests COMMAND ${PYTHON_EXECUTABLE} ${CATCH_DIR}/tools/scripts/approvalTests.py $) set_tests_properties(ApprovalTests PROPERTIES FAIL_REGULAR_EXPRESSION "Results differed") add_test(NAME RegressionCheck-1670 COMMAND $ "#1670 regression check" -c A -r compact) diff --git a/scripts/approvalTests.py b/tools/scripts/approvalTests.py similarity index 100% rename from scripts/approvalTests.py rename to tools/scripts/approvalTests.py diff --git a/scripts/approve.py b/tools/scripts/approve.py similarity index 100% rename from scripts/approve.py rename to tools/scripts/approve.py diff --git a/scripts/benchmarkCompile.py b/tools/scripts/benchmarkCompile.py similarity index 100% rename from scripts/benchmarkCompile.py rename to tools/scripts/benchmarkCompile.py diff --git a/scripts/benchmarkRunner.py b/tools/scripts/benchmarkRunner.py similarity index 100% rename from scripts/benchmarkRunner.py rename to tools/scripts/benchmarkRunner.py diff --git a/scripts/developBuild.py b/tools/scripts/developBuild.py similarity index 100% rename from scripts/developBuild.py rename to tools/scripts/developBuild.py diff --git a/scripts/embed.py b/tools/scripts/embed.py similarity index 100% rename from scripts/embed.py rename to tools/scripts/embed.py diff --git a/scripts/embedClara.py b/tools/scripts/embedClara.py similarity index 100% rename from scripts/embedClara.py rename to tools/scripts/embedClara.py diff --git a/scripts/extractFeaturesFromReleaseNotes.py b/tools/scripts/extractFeaturesFromReleaseNotes.py similarity index 100% rename from scripts/extractFeaturesFromReleaseNotes.py rename to tools/scripts/extractFeaturesFromReleaseNotes.py diff --git a/scripts/fixWhitespace.py b/tools/scripts/fixWhitespace.py similarity index 100% rename from scripts/fixWhitespace.py rename to tools/scripts/fixWhitespace.py diff --git a/scripts/generateSingleHeader.py b/tools/scripts/generateSingleHeader.py similarity index 100% rename from scripts/generateSingleHeader.py rename to tools/scripts/generateSingleHeader.py diff --git a/scripts/majorRelease.py b/tools/scripts/majorRelease.py similarity index 100% rename from scripts/majorRelease.py rename to tools/scripts/majorRelease.py diff --git a/scripts/minorRelease.py b/tools/scripts/minorRelease.py similarity index 100% rename from scripts/minorRelease.py rename to tools/scripts/minorRelease.py diff --git a/scripts/patchRelease.py b/tools/scripts/patchRelease.py similarity index 100% rename from scripts/patchRelease.py rename to tools/scripts/patchRelease.py diff --git a/scripts/releaseCommon.py b/tools/scripts/releaseCommon.py similarity index 100% rename from scripts/releaseCommon.py rename to tools/scripts/releaseCommon.py diff --git a/scripts/releaseNotes.py b/tools/scripts/releaseNotes.py similarity index 100% rename from scripts/releaseNotes.py rename to tools/scripts/releaseNotes.py diff --git a/scripts/scriptCommon.py b/tools/scripts/scriptCommon.py similarity index 88% rename from scripts/scriptCommon.py rename to tools/scripts/scriptCommon.py index eadf9ff3..a6930063 100644 --- a/scripts/scriptCommon.py +++ b/tools/scripts/scriptCommon.py @@ -3,7 +3,7 @@ import sys import subprocess -catchPath = os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0]))) +catchPath = os.path.dirname(os.path.dirname(os.path.realpath( os.path.dirname(sys.argv[0])))) def getBuildExecutable(): if os.name == 'nt': diff --git a/scripts/updateDocumentToC.py b/tools/scripts/updateDocumentToC.py similarity index 100% rename from scripts/updateDocumentToC.py rename to tools/scripts/updateDocumentToC.py diff --git a/scripts/updateWandbox.py b/tools/scripts/updateWandbox.py similarity index 100% rename from scripts/updateWandbox.py rename to tools/scripts/updateWandbox.py