Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
c56e55d2
Commit
c56e55d2
authored
Aug 13, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updata
parent
27843129
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
15 deletions
+12
-15
publicTest.sh
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
+4
-5
test-rpc.sh
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
+8
-10
No files found.
plugin/dapp/x2ethereum/cmd/build/publicTest.sh
View file @
c56e55d2
...
@@ -25,9 +25,9 @@ function exit_cp_file() {
...
@@ -25,9 +25,9 @@ function exit_cp_file() {
for
name
in
a b c d
;
do
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
:/root/logs/x2Ethereum_relayer.log
"
$
dirName
/ebrelayer
$name
.log"
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_1"
:/root/logs/x2Ethereum_relayer.log
"
$
{
dirName
}
/ebrelayer
${
name
}
.log"
done
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
dirName
/chain33.log"
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
{
dirName
}
/chain33.log"
exit
1
exit
1
}
}
...
@@ -46,9 +46,9 @@ function copyErrLogs() {
...
@@ -46,9 +46,9 @@ function copyErrLogs() {
for
name
in
a b c d
;
do
for
name
in
a b c d
;
do
# shellcheck disable=SC2154
# shellcheck disable=SC2154
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
:/root/logs/x2Ethereum_relayer.log
"
$
dirName
/ebrelayer
$name
_rpc
.log"
docker
cp
"
${
dockerNamePrefix
}
_ebrelayer
${
name
}
_rpc_1"
:/root/logs/x2Ethereum_relayer.log
"
$
{
dirName
}
/ebrelayer
${
name
}
_rpc.log"
done
done
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
dirName
/chain33_rpc.log"
docker
cp
"
${
dockerNamePrefix
}
_chain33_1"
:/root/logs/chain33.log
"
$
{
dirName
}
/chain33_rpc.log"
fi
fi
}
}
...
@@ -492,7 +492,6 @@ function updata_relayer_toml_rpc() {
...
@@ -492,7 +492,6 @@ function updata_relayer_toml_rpc() {
local
pushHost
=
$(
get_inet_addr
)
local
pushHost
=
$(
get_inet_addr
)
if
[[
${
pushHost
}
==
""
]]
;
then
if
[[
${
pushHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
pushHost is empty
${
NOC
}
"
echo
-e
"
${
RED
}
pushHost is empty
${
NOC
}
"
copyErrLogs
fi
fi
# shellcheck disable=SC2155
# shellcheck disable=SC2155
...
...
plugin/dapp/x2ethereum/cmd/test/test-rpc.sh
View file @
c56e55d2
...
@@ -44,7 +44,6 @@ function queryExecBalance() {
...
@@ -44,7 +44,6 @@ function queryExecBalance() {
local
balance
=
$(
echo
"
$resp
"
| jq
-r
".result"
| jq
".[].balance"
)
local
balance
=
$(
echo
"
$resp
"
| jq
-r
".result"
| jq
".[].balance"
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryExecBalance"
"1"
"
${
balance
}
!=
${
2
}
"
echo_rst
"queryExecBalance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
fi
}
}
...
@@ -56,7 +55,6 @@ function queryChain33Balance() {
...
@@ -56,7 +55,6 @@ function queryChain33Balance() {
local
balance
=
$(
echo
$resp
| jq
-r
".result.execAccount"
| jq
".[].account.balance"
)
local
balance
=
$(
echo
$resp
| jq
-r
".result.execAccount"
| jq
".[].account.balance"
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryChain33Balance"
"1"
"
${
balance
}
!=
${
2
}
"
echo_rst
"queryChain33Balance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
fi
}
}
...
@@ -76,7 +74,6 @@ function queryChain33X2ethBalance() {
...
@@ -76,7 +74,6 @@ function queryChain33X2ethBalance() {
local
balance
=
$(
echo
"
${
RETURN_RESP
}
"
| jq
-r
".res"
| jq
".[].balance"
|
sed
's/\"//g'
)
local
balance
=
$(
echo
"
${
RETURN_RESP
}
"
| jq
-r
".res"
| jq
".[].balance"
|
sed
's/\"//g'
)
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
if
[
"
${
balance
}
"
!=
"
${
2
}
"
]
;
then
echo_rst
"queryChain33X2ethBalance"
"1"
"
${
balance
}
!=
${
2
}
"
echo_rst
"queryChain33X2ethBalance"
"1"
"
${
balance
}
!=
${
2
}
"
copyErrLogs
fi
fi
}
}
...
@@ -125,7 +122,6 @@ function StartRelayerAndDeploy() {
...
@@ -125,7 +122,6 @@ function StartRelayerAndDeploy() {
ebrelayeraRpcHost
=
$(
get_docker_addr
"
${
dockerNamePrefix
}
_ebrelayera_rpc_1"
)
ebrelayeraRpcHost
=
$(
get_docker_addr
"
${
dockerNamePrefix
}
_ebrelayera_rpc_1"
)
if
[[
${
ebrelayeraRpcHost
}
==
""
]]
;
then
if
[[
${
ebrelayeraRpcHost
}
==
""
]]
;
then
echo
-e
"
${
RED
}
ebrelayeraRpcHost a is empty
${
NOC
}
"
echo
-e
"
${
RED
}
ebrelayeraRpcHost a is empty
${
NOC
}
"
copyErrLogs
fi
fi
CLIA_HTTP
=
"http://
${
ebrelayeraRpcHost
}
:9901"
CLIA_HTTP
=
"http://
${
ebrelayeraRpcHost
}
:9901"
...
@@ -408,13 +404,15 @@ function rpc_test() {
...
@@ -408,13 +404,15 @@ function rpc_test() {
if
[
"
$ispara
"
==
false
]
;
then
if
[
"
$ispara
"
==
false
]
;
then
# init
# init
StartRelayerAndDeploy
StartRelayerAndDeploy
InitChain33Vilators
# InitChain33Vilators
EthImportKey
# EthImportKey
#
# # test
# TestChain33ToEthAssets
# TestETH2Chain33Assets
# TestETH2Chain33Erc20
# test
copyErrLogs
TestChain33ToEthAssets
TestETH2Chain33Assets
TestETH2Chain33Erc20
# docker-compose -f ./x2ethereum/docker-compose-x2ethereum.yml down
# docker-compose -f ./x2ethereum/docker-compose-x2ethereum.yml down
fi
fi
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment