Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
4a2a3975
Y
YTBP
项目概览
YottaChain
/
YTBP
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
Y
YTBP
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
4a2a3975
编写于
2月 21, 2018
作者:
K
Kevin Heifner
提交者:
GitHub
2月 21, 2018
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #1454 from cj-oci/eosiodRemoteTestMacFix
Fix eosiod_run_remote_test.py on mac platform
上级
68af8fe1
ddaa22ff
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
33 addition
and
32 deletion
+33
-32
tests/CMakeLists.txt
tests/CMakeLists.txt
+4
-3
tests/consensus-validation-malicious-producers.py
tests/consensus-validation-malicious-producers.py
+8
-8
tests/distributed-transactions-remote-test.py
tests/distributed-transactions-remote-test.py
+1
-1
tests/distributed-transactions-test.py
tests/distributed-transactions-test.py
+1
-1
tests/eosiod_run_remote_test.py
tests/eosiod_run_remote_test.py
+1
-1
tests/eosiod_run_test.py
tests/eosiod_run_test.py
+2
-2
tests/restart-scenarios-test.py
tests/restart-scenarios-test.py
+16
-16
未找到文件。
tests/CMakeLists.txt
浏览文件 @
4a2a3975
...
...
@@ -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
}
/consensus
ValidationMaliciousProducers.py
${
CMAKE_CURRENT_BINARY_DIR
}
/consensusValidationMaliciousP
roducers.py COPYONLY
)
configure_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/consensus
-validation-malicious-producers.py
${
CMAKE_CURRENT_BINARY_DIR
}
/consensus-validation-malicious-p
roducers.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
)
...
...
tests/consensus
ValidationMaliciousP
roducers.py
→
tests/consensus
-validation-malicious-p
roducers.py
浏览文件 @
4a2a3975
#!/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
(
"--dump
ErrorD
etails"
,
parser
.
add_argument
(
"--dump
-error-d
etails"
,
help
=
"Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout"
,
action
=
'store_true'
)
parser
.
add_argument
(
"--keep
L
ogs"
,
help
=
"Don't delete tn_data_* folders upon test completion"
,
parser
.
add_argument
(
"--keep
-l
ogs"
,
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
(
"--dont
K
ill"
,
help
=
"Leave cluster running after test finishes"
,
action
=
'store_true'
)
parser
.
add_argument
(
"--dont
-k
ill"
,
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
.
dump
ErrorD
etails
keepLogs
=
args
.
keep
L
ogs
dumpErrorDetails
=
args
.
dump
-
error
-
d
etails
keepLogs
=
args
.
keep
-
l
ogs
amINoon
=
not
args
.
not_noon
killEosInstances
=
not
args
.
dont
K
ill
killWallet
=
not
args
.
dont
K
ill
killEosInstances
=
not
args
.
dont
-
k
ill
killWallet
=
not
args
.
dont
-
k
ill
testUtils
.
Utils
.
Debug
=
debug
...
...
tests/distributed-transactions-remote-test.py
浏览文件 @
4a2a3975
#!/usr/bin/python3
#!/usr/bin/
env
python3
import
testUtils
...
...
tests/distributed-transactions-test.py
浏览文件 @
4a2a3975
#!/usr/bin/python3
#!/usr/bin/
env
python3
import
testUtils
...
...
tests/eosiod_run_remote_test.py
浏览文件 @
4a2a3975
#!/usr/bin/python3
#!/usr/bin/
env
python3
import
testUtils
...
...
tests/eosiod_run_test.py
浏览文件 @
4a2a3975
...
...
@@ -9,8 +9,8 @@ import re
###############################################################
# eosiod_run_test
# --dump
ErrorD
etails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep
L
ogs <Don't delete tn_data_* folders upon test completion>
# --dump
-error-d
etails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep
-l
ogs <Don't delete tn_data_* folders upon test completion>
###############################################################
Print
=
testUtils
.
Utils
.
Print
...
...
tests/restart-scenarios-test.py
浏览文件 @
4a2a3975
#!/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>
# --kill
S
ig <kill signal [term|kill]>
# --kill
C
ount <Eosiod instances to kill>
# --dont
K
ill <Leave cluster running after test finishes>
# --dump
ErrorD
etails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep
L
ogs <Don't delete tn_data_* folders upon test completion>
# --kill
-s
ig <kill signal [term|kill]>
# --kill
-c
ount <Eosiod instances to kill>
# --dont
-k
ill <Leave cluster running after test finishes>
# --dump
-error-d
etails <Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout>
# --keep
-l
ogs <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
(
"--kill
S
ig"
,
type
=
str
,
help
=
"kill signal[%s|%s]"
%
parser
.
add_argument
(
"--kill
-s
ig"
,
type
=
str
,
help
=
"kill signal[%s|%s]"
%
(
testUtils
.
Utils
.
SigKillTag
,
testUtils
.
Utils
.
SigTermTag
),
default
=
testUtils
.
Utils
.
SigKillTag
)
parser
.
add_argument
(
"--kill
C
ount"
,
type
=
int
,
help
=
"eosiod instances to kill"
,
default
=-
1
)
parser
.
add_argument
(
"--kill
-c
ount"
,
type
=
int
,
help
=
"eosiod instances to kill"
,
default
=-
1
)
parser
.
add_argument
(
"-v"
,
help
=
"verbose logging"
,
action
=
'store_true'
)
parser
.
add_argument
(
"--dont
K
ill"
,
help
=
"Leave cluster running after test finishes"
,
action
=
'store_true'
)
parser
.
add_argument
(
"--dont
-k
ill"
,
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
(
"--dump
ErrorD
etails"
,
parser
.
add_argument
(
"--dump
-error-d
etails"
,
help
=
"Upon error print tn_data_*/config.ini and tn_data_*/stderr.log to stdout"
,
action
=
'store_true'
)
parser
.
add_argument
(
"--keep
L
ogs"
,
help
=
"Don't delete tn_data_* folders upon test completion"
,
parser
.
add_argument
(
"--keep
-l
ogs"
,
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
.
kill
Count
if
args
.
killC
ount
>
0
else
int
(
round
((
DefaultKillPercent
/
100.0
)
*
total_nodes
))
killSignal
=
args
.
kill
S
ig
killEosInstances
=
not
args
.
dont
K
ill
dumpErrorDetails
=
args
.
dump
ErrorD
etails
keepLogs
=
args
.
keep
L
ogs
killCount
=
args
.
kill
-
count
if
args
.
kill
-
c
ount
>
0
else
int
(
round
((
DefaultKillPercent
/
100.0
)
*
total_nodes
))
killSignal
=
args
.
kill
-
s
ig
killEosInstances
=
not
args
.
dont
-
k
ill
dumpErrorDetails
=
args
.
dump
_error_d
etails
keepLogs
=
args
.
keep
-
l
ogs
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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录