mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Moved scripts into their own folder
This commit is contained in:
parent
f155366cf2
commit
f4254b8622
@ -7,14 +7,14 @@ filenameParser = re.compile( r'\s*.*/(.*\..pp)(.*)' )
|
|||||||
hexParser = re.compile( r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)' )
|
hexParser = re.compile( r'(.*)\b(0[xX][0-9a-fA-F]+)\b(.*)' )
|
||||||
|
|
||||||
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||||
baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/approvedResults.txt' )
|
baselinesPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/approvedResults.txt' )
|
||||||
rawResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/_rawResults.tmp' )
|
rawResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/_rawResults.tmp' )
|
||||||
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/unapprovedResults.txt' )
|
filteredResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/unapprovedResults.txt' )
|
||||||
|
|
||||||
if len(sys.argv) == 2:
|
if len(sys.argv) == 2:
|
||||||
cmdPath = sys.argv[1]
|
cmdPath = sys.argv[1]
|
||||||
else:
|
else:
|
||||||
cmdPath = "projects/XCode4/CatchSelfTest/DerivedData/CatchSelfTest/Build/Products/Debug/CatchSelfTest"
|
cmdPath = "../projects/XCode4/CatchSelfTest/DerivedData/CatchSelfTest/Build/Products/Debug/CatchSelfTest"
|
||||||
|
|
||||||
f = open( rawResultsPath, 'w' )
|
f = open( rawResultsPath, 'w' )
|
||||||
subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "console" ], stdout=f, stderr=f )
|
subprocess.call([ cmdPath, "~dummy", "-s", "-w", "NoAssertions", "-r", "console" ], stdout=f, stderr=f )
|
@ -3,8 +3,8 @@ import sys
|
|||||||
import shutil
|
import shutil
|
||||||
|
|
||||||
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||||
baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/approvedResults.txt' )
|
baselinesPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/approvedResults.txt' )
|
||||||
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/unapprovedResults.txt' )
|
filteredResultsPath = os.path.join( catchPath, '../projects/SelfTest/Baselines/unapprovedResults.txt' )
|
||||||
|
|
||||||
if os.path.isfile( filteredResultsPath ):
|
if os.path.isfile( filteredResultsPath ):
|
||||||
os.remove( baselinesPath )
|
os.remove( baselinesPath )
|
@ -12,9 +12,9 @@ commentParser2 = re.compile( r'^\s*\*')
|
|||||||
blankParser = re.compile( r'^\s*$')
|
blankParser = re.compile( r'^\s*$')
|
||||||
seenHeaders = set([])
|
seenHeaders = set([])
|
||||||
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
catchPath = os.path.realpath(os.path.dirname(sys.argv[0]))
|
||||||
rootPath = os.path.join( catchPath, 'include/' )
|
rootPath = os.path.join( catchPath, '../include/' )
|
||||||
versionPath = os.path.join( rootPath, "internal/catch_version.hpp" )
|
versionPath = os.path.join( rootPath, "internal/catch_version.hpp" )
|
||||||
readmePath = os.path.join( catchPath, "README.md" )
|
readmePath = os.path.join( catchPath, "../README.md" )
|
||||||
#outputPath = os.path.join( catchPath, 'single_include/catch.hpp' )
|
#outputPath = os.path.join( catchPath, 'single_include/catch.hpp' )
|
||||||
|
|
||||||
bumpVersion = len(sys.argv) < 2 or sys.argv[1] <> "nobump"
|
bumpVersion = len(sys.argv) < 2 or sys.argv[1] <> "nobump"
|
Loading…
Reference in New Issue
Block a user