Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
YottaChain
YTBP
提交
82f45296
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,发现更多精彩内容 >>
提交
82f45296
编写于
7月 25, 2018
作者:
P
Paul Calabrese
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add test support for bnet
上级
ce5c3c2b
变更
3
显示空白变更内容
内联
并排
Showing
3 changed file
with
13 addition
and
5 deletion
+13
-5
tests/CMakeLists.txt
tests/CMakeLists.txt
+7
-1
tests/nodeos_run_test.py
tests/nodeos_run_test.py
+3
-2
tests/nodeos_voting_test.py
tests/nodeos_voting_test.py
+3
-2
未找到文件。
tests/CMakeLists.txt
浏览文件 @
82f45296
...
...
@@ -46,6 +46,7 @@ add_test(NAME plugin_test COMMAND plugin_test --report_level=detailed --color_ou
add_test
(
NAME nodeos_sanity_test COMMAND tests/nodeos_run_test.py -v --sanity-test --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_test
(
NAME nodeos_run_test COMMAND tests/nodeos_run_test.py -v --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_test
(
NAME bnet_nodeos_run_test COMMAND tests/nodeos_run_test.py -v --clean-run --p2p-plugin bnet --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
add_test
(
NAME p2p_dawn515_test COMMAND tests/p2p_tests/dawn_515/test.sh WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
if
(
BUILD_MONGO_DB_PLUGIN
)
...
...
@@ -62,6 +63,8 @@ add_test(NAME validate_dirty_db_test COMMAND tests/validate-dirty-db.py -v --cle
# Long running tests
add_test
(
NAME nodeos_sanity_lr_test COMMAND tests/nodeos_run_test.py -v --sanity-test --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_property
(
TEST nodeos_sanity_lr_test PROPERTY LABELS long_running_tests
)
add_test
(
NAME bnet_nodeos_sanity_lr_test COMMAND tests/nodeos_run_test.py -v --sanity-test --p2p-plugin bnet --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_property
(
TEST bnet_nodeos_sanity_lr_test PROPERTY LABELS long_running_tests
)
#add_test(NAME distributed_transactions_lr_test COMMAND tests/distributed-transactions-test.py -d 2 -p 21 -n 21 -v --clean-run --dump-error-detail WORKING_DIRECTORY ${CMAKE_BINARY_DIR})
#set_property(TEST distributed_transactions_lr_test PROPERTY LABELS long_running_tests)
...
...
@@ -69,6 +72,9 @@ set_property(TEST nodeos_sanity_lr_test PROPERTY LABELS long_running_tests)
add_test
(
NAME nodeos_voting_lr_test COMMAND tests/nodeos_voting_test.py -v --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_property
(
TEST nodeos_voting_lr_test PROPERTY LABELS long_running_tests
)
add_test
(
NAME bnet_nodeos_voting_lr_test COMMAND tests/nodeos_voting_test.py -v --p2p-plugin bnet --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_property
(
TEST bnet_nodeos_voting_lr_test PROPERTY LABELS long_running_tests
)
add_test
(
NAME nodeos_under_min_avail_ram_lr_test COMMAND tests/nodeos_under_min_avail_ram.py -v --clean-run --dump-error-detail WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
set_property
(
TEST nodeos_under_min_avail_ram_lr_test PROPERTY LABELS long_running_tests
)
...
...
@@ -90,7 +96,7 @@ if(ENABLE_COVERAGE_TESTING)
endif
()
# NOT GENHTML_PATH
# no spaces allowed within tests list
set
(
ctest_tests 'plugin_test|p2p_dawn515_test|nodeos_run_test|distributed-transactions-test|restart-scenarios-test_resync'
)
set
(
ctest_tests 'plugin_test|p2p_dawn515_test|nodeos_run_test|
bnet_nodeos_run_test|
distributed-transactions-test|restart-scenarios-test_resync'
)
set
(
ctest_exclude_tests 'nodeos_run_remote_test|nodeos_run_test-mongodb|distributed-transactions-remote-test|restart-scenarios-test_replay'
)
# Setup target
...
...
tests/nodeos_run_test.py
浏览文件 @
82f45296
...
...
@@ -22,7 +22,7 @@ from core_symbol import CORE_SYMBOL
args
=
TestHelper
.
parse_args
({
"--host"
,
"--port"
,
"--prod-count"
,
"--defproducera_prvt_key"
,
"--defproducerb_prvt_key"
,
"--mongodb"
,
"--dump-error-details"
,
"--dont-launch"
,
"--keep-logs"
,
"-v"
,
"--leave-running"
,
"--only-bios"
,
"--clean-run"
,
"--sanity-test"
})
,
"--sanity-test"
,
"--p2p-plugin"
})
server
=
args
.
host
port
=
args
.
port
debug
=
args
.
v
...
...
@@ -37,6 +37,7 @@ prodCount=args.prod_count
onlyBios
=
args
.
only_bios
killAll
=
args
.
clean_run
sanityTest
=
args
.
sanity_test
p2pPlugin
=
args
.
p2p_plugin
Utils
.
Debug
=
debug
localTest
=
True
if
server
==
TestHelper
.
LOCAL_HOST
else
False
...
...
@@ -67,7 +68,7 @@ try:
cluster
.
killall
(
allInstances
=
killAll
)
cluster
.
cleanup
()
Print
(
"Stand up cluster"
)
if
cluster
.
launch
(
prodCount
=
prodCount
,
onlyBios
=
onlyBios
,
dontKill
=
dontKill
,
dontBootstrap
=
dontBootstrap
)
is
False
:
if
cluster
.
launch
(
prodCount
=
prodCount
,
onlyBios
=
onlyBios
,
dontKill
=
dontKill
,
dontBootstrap
=
dontBootstrap
,
p2pPlugin
=
p2pPlugin
)
is
False
:
cmdError
(
"launcher"
)
errorExit
(
"Failed to stand up eos cluster."
)
else
:
...
...
tests/nodeos_voting_test.py
浏览文件 @
82f45296
...
...
@@ -184,7 +184,7 @@ errorExit=Utils.errorExit
from
core_symbol
import
CORE_SYMBOL
args
=
TestHelper
.
parse_args
({
"--prod-count"
,
"--dump-error-details"
,
"--keep-logs"
,
"-v"
,
"--leave-running"
,
"--clean-run"
})
args
=
TestHelper
.
parse_args
({
"--prod-count"
,
"--dump-error-details"
,
"--keep-logs"
,
"-v"
,
"--leave-running"
,
"--clean-run"
,
"--p2p-plugin"
})
Utils
.
Debug
=
args
.
v
totalNodes
=
4
cluster
=
Cluster
(
walletd
=
True
)
...
...
@@ -193,6 +193,7 @@ keepLogs=args.keep_logs
dontKill
=
args
.
leave_running
prodCount
=
args
.
prod_count
killAll
=
args
.
clean_run
p2pPlugin
=
args
.
p2p_plugin
walletMgr
=
WalletMgr
(
True
)
testSuccessful
=
False
...
...
@@ -208,7 +209,7 @@ try:
cluster
.
killall
(
allInstances
=
killAll
)
cluster
.
cleanup
()
Print
(
"Stand up cluster"
)
if
cluster
.
launch
(
prodCount
=
prodCount
,
onlyBios
=
False
,
dontKill
=
dontKill
,
pnodes
=
totalNodes
,
totalNodes
=
totalNodes
,
totalProducers
=
totalNodes
*
21
)
is
False
:
if
cluster
.
launch
(
prodCount
=
prodCount
,
onlyBios
=
False
,
dontKill
=
dontKill
,
pnodes
=
totalNodes
,
totalNodes
=
totalNodes
,
totalProducers
=
totalNodes
*
21
,
p2pPlugin
=
p2pPlugin
)
is
False
:
Utils
.
cmdError
(
"launcher"
)
errorExit
(
"Failed to stand up eos cluster."
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录