未验证 提交 4a2a3975 编写于 作者: K Kevin Heifner 提交者: GitHub

Merge pull request #1454 from cj-oci/eosiodRemoteTestMacFix

Fix eosiod_run_remote_test.py on mac platform
......@@ -59,7 +59,7 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/restart-scenarios-test.py ${CMAKE_CUR
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/testUtils.py ${CMAKE_CURRENT_BINARY_DIR}/testUtils.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/eosiod_run_test.py ${CMAKE_CURRENT_BINARY_DIR}/eosiod_run_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/eosiod_run_remote_test.py ${CMAKE_CURRENT_BINARY_DIR}/eosiod_run_remote_test.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/consensusValidationMaliciousProducers.py ${CMAKE_CURRENT_BINARY_DIR}/consensusValidationMaliciousProducers.py COPYONLY)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/consensus-validation-malicious-producers.py ${CMAKE_CURRENT_BINARY_DIR}/consensus-validation-malicious-producers.py COPYONLY)
add_test(chain_test chain_test --report_level=detailed)
add_test(NAME eosiod_run_test COMMAND tests/eosiod_run_test.py -v --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
......@@ -76,8 +76,9 @@ endif()
# TODO: add_test(NAME trans_sync_across_mixed_cluster_test COMMAND tests/trans_sync_across_mixed_cluster_test.sh -p 1 -n 2 WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME distributed-transactions-test COMMAND tests/distributed-transactions-test.py -p 1 -n 4 --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME distributed-transactions-remote-test COMMAND tests/distributed-transactions-remote-test.py --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME restart-scenarios-test_resync COMMAND tests/restart-scenarios-test.py -c resync -p3 --dumpErrorDetails WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME restart-scenarios-test_replay COMMAND tests/restart-scenarios-test.py -c replay -p3 --dumpErrorDetails WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME restart-scenarios-test_resync COMMAND tests/restart-scenarios-test.py -c resync -p3 --dump-error-details WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME restart-scenarios-test_replay COMMAND tests/restart-scenarios-test.py -c replay -p3 --dump-error-details WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
# TODO: add_test(NAME consensus-validation-malicious-producers COMMAND tests/consensus-validation-malicious-producers.py -w 80 --dump-error-details WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
if(ENABLE_COVERAGE_TESTING)
......
#!/usr/bin/python3
#!/usr/bin/env python3
import testUtils
......@@ -206,23 +206,23 @@ tests=[1,2,3]
parser.add_argument("-t", "--tests", type=str, help="1|2|3 1=run no malicious producers test, 2=minority malicious, 3=majority malicious.", default=None)
parser.add_argument("-w", type=int, help="system wait time", default=testUtils.Utils.systemWaitTimeout)
parser.add_argument("-v", help="verbose logging", action='store_true')
parser.add_argument("--dumpErrorDetails",
parser.add_argument("--dump-error-details",
help="Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout",
action='store_true')
parser.add_argument("--keepLogs", help="Don't delete tn_data_* folders upon test completion",
parser.add_argument("--keep-logs", help="Don't delete tn_data_* folders upon test completion",
action='store_true')
parser.add_argument("--not-noon", help="This is not the Noon branch.", action='store_true')
parser.add_argument("--dontKill", help="Leave cluster running after test finishes", action='store_true')
parser.add_argument("--dont-kill", help="Leave cluster running after test finishes", action='store_true')
args = parser.parse_args()
testsArg=args.tests
debug=args.v
waitTimeout=args.w
dumpErrorDetails=args.dumpErrorDetails
keepLogs=args.keepLogs
dumpErrorDetails=args.dump-error-details
keepLogs=args.keep-logs
amINoon=not args.not_noon
killEosInstances= not args.dontKill
killWallet= not args.dontKill
killEosInstances= not args.dont-kill
killWallet= not args.dont-kill
testUtils.Utils.Debug=debug
......
#!/usr/bin/python3
#!/usr/bin/env python3
import testUtils
......
#!/usr/bin/python3
#!/usr/bin/env python3
import testUtils
......
#!/usr/bin/python3
#!/usr/bin/env python3
import testUtils
......
......@@ -9,8 +9,8 @@ import re
###############################################################
# eosiod_run_test
# --dumpErrorDetails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keepLogs <Don't delete tn_data_* folders upon test completion>
# --dump-error-details <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep-logs <Don't delete tn_data_* folders upon test completion>
###############################################################
Print=testUtils.Utils.Print
......
#!/usr/bin/python3
#!/usr/bin/env python3
import testUtils
......@@ -14,11 +14,11 @@ import signal
# -s <topology>
# -d <delay between nodes startup>
# -v <verbose logging>
# --killSig <kill signal [term|kill]>
# --killCount <Eosiod instances to kill>
# --dontKill <Leave cluster running after test finishes>
# --dumpErrorDetails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keepLogs <Don't delete tn_data_* folders upon test completion>
# --kill-sig <kill signal [term|kill]>
# --kill-count <Eosiod instances to kill>
# --dont-kill <Leave cluster running after test finishes>
# --dump-error-details <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep-logs <Don't delete tn_data_* folders upon test completion>
###############################################################
......@@ -36,16 +36,16 @@ parser.add_argument("-s", type=str, help="topology", default="mesh")
parser.add_argument("-c", type=str, help="chain strategy[%s|%s|%s]" %
(testUtils.Utils.SyncResyncTag, testUtils.Utils.SyncReplayTag, testUtils.Utils.SyncNoneTag),
default=testUtils.Utils.SyncResyncTag)
parser.add_argument("--killSig", type=str, help="kill signal[%s|%s]" %
parser.add_argument("--kill-sig", type=str, help="kill signal[%s|%s]" %
(testUtils.Utils.SigKillTag, testUtils.Utils.SigTermTag), default=testUtils.Utils.SigKillTag)
parser.add_argument("--killCount", type=int, help="eosiod instances to kill", default=-1)
parser.add_argument("--kill-count", type=int, help="eosiod instances to kill", default=-1)
parser.add_argument("-v", help="verbose logging", action='store_true')
parser.add_argument("--dontKill", help="Leave cluster running after test finishes", action='store_true')
parser.add_argument("--dont-kill", help="Leave cluster running after test finishes", action='store_true')
parser.add_argument("--not-noon", help="This is not the Noon branch.", action='store_true')
parser.add_argument("--dumpErrorDetails",
parser.add_argument("--dump-error-details",
help="Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout",
action='store_true')
parser.add_argument("--keepLogs", help="Don't delete tn_data_* folders upon test completion",
parser.add_argument("--keep-logs", help="Don't delete tn_data_* folders upon test completion",
action='store_true')
args = parser.parse_args()
......@@ -55,11 +55,11 @@ delay=args.d
chainSyncStrategyStr=args.c
debug=args.v
total_nodes = pnodes
killCount=args.killCount if args.killCount > 0 else int(round((DefaultKillPercent/100.0)*total_nodes))
killSignal=args.killSig
killEosInstances= not args.dontKill
dumpErrorDetails=args.dumpErrorDetails
keepLogs=args.keepLogs
killCount=args.kill-count if args.kill-count > 0 else int(round((DefaultKillPercent/100.0)*total_nodes))
killSignal=args.kill-sig
killEosInstances= not args.dont-kill
dumpErrorDetails=args.dump_error_details
keepLogs=args.keep-logs
amINoon=not args.not_noon
testUtils.Utils.Debug=debug
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册