more approval tests script debugging

This commit is contained in:
Kosta 2013-08-05 13:29:42 +02:00
parent 0c8ad55a5b
commit c4863842c8
3 changed files with 3 additions and 9 deletions

View File

@ -16,5 +16,4 @@ install:
script:
- cd Build
- ./SelfTest
- ctest -VV
- ctest -V

View File

@ -33,4 +33,4 @@ add_executable(SelfTest ${SOURCES})
# configure unit tests via ctest
enable_testing()
add_test(NAME SelfTest_run COMMAND python ${SCRIPTS_DIR}/approvalTests.py "${CATCH_DIR}" "${CMAKE_CURRENT_BINARY_DIR}/SelfTest")
add_test(NAME SelfTest_run COMMAND python ${SCRIPTS_DIR}/approvalTests.py "${CMAKE_CURRENT_BINARY_DIR}/SelfTest")

View File

@ -15,12 +15,7 @@ baselinesPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/approvedRe
rawResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/_rawResults.tmp' )
filteredResultsPath = os.path.join( catchPath, 'projects/SelfTest/Baselines/unapprovedResults.txt' )
print "len(sys.argv) = " + str(len(sys.argv))
print "sys.argv[0] = |" + sys.argv[0] + "|"
print "sys.argv[1] = |" + sys.argv[1] + "|"
print "sys.argv[2] = |" + sys.argv[2] + "|"
if len(sys.argv) == 2:
if len(sys.argv) >= 2:
cmdPath = sys.argv[1]
else:
cmdPath = os.path.join( catchPath, 'projects/XCode4/CatchSelfTest/DerivedData/CatchSelfTest/Build/Products/Debug/CatchSelfTest' )