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
e8808e5a
Commit
e8808e5a
authored
May 13, 2020
by
QM
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Ropsten test
parent
da782525
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
109 additions
and
53 deletions
+109
-53
RopstenTest.sh
plugin/dapp/x2Ethereum/cmd/build/RopstenTest.sh
+47
-53
publicTest.sh
plugin/dapp/x2Ethereum/testsh/publicTest.sh
+62
-0
No files found.
plugin/dapp/x2Ethereum/cmd/build/RopstenTest.sh
View file @
e8808e5a
This diff is collapsed.
Click to expand it.
plugin/dapp/x2Ethereum/testsh/publicTest.sh
View file @
e8808e5a
...
@@ -131,6 +131,68 @@ function start_ebrelayer() {
...
@@ -131,6 +131,68 @@ function start_ebrelayer() {
done
done
}
}
# 后台启动 ebrelayer 进程 $1 A B C D
function
start_ebrelayer_and_unlock
()
{
start_ebrelayer
"./
${
1
}
/ebrelayer"
"./
${
1
}
/ebrelayer.log"
sleep
2
local
CLI
=
"./ebcli_
$1
"
local
count
=
0
while
true
;
do
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj | jq
-r
.isOK
)
if
[[
${
result
}
==
"true"
]]
;
then
break
fi
count
=
$((
count
+
1
))
if
[[
${
count
}
==
5
]]
;
then
echo
-e
"
${
RED
}
failed to unlock
${
NOC
}
"
exit
1
fi
sleep
1
done
}
# 后台启动 ebrelayer 进程 $1 A B C D
function
start_ebrelayer_and_setpwd_unlock
()
{
start_ebrelayer
"./
${
1
}
/ebrelayer"
"./
${
1
}
/ebrelayer.log"
sleep
2
local
CLI
=
"./ebcli_
$1
"
local
count
=
0
while
true
;
do
result
=
$(${
CLI
}
relayer set_pwd
-n
123456hzj
-o
kk | jq
-r
.isOK
)
if
[[
${
result
}
==
"true"
]]
;
then
break
fi
count
=
$((
count
+
1
))
if
[[
${
count
}
==
5
]]
;
then
echo
-e
"
${
RED
}
failed to set_pwd
${
NOC
}
"
exit
1
fi
sleep
1
done
count
=
0
while
true
;
do
result
=
$(${
CLI
}
relayer unlock
-p
123456hzj | jq
-r
.isOK
)
if
[[
${
result
}
==
"true"
]]
;
then
break
fi
count
=
$((
count
+
1
))
if
[[
${
count
}
==
5
]]
;
then
echo
-e
"
${
RED
}
failed to unlock
${
NOC
}
"
exit
1
fi
sleep
1
done
}
# 杀死进程ebrelayer 进程 $1进程名称
# 杀死进程ebrelayer 进程 $1进程名称
function
kill_ebrelayer
()
{
function
kill_ebrelayer
()
{
pid
=
$(
ps
-ef
|
grep
"
${
1
}
"
|
grep
-v
'grep'
|
awk
'{print $2}'
)
pid
=
$(
ps
-ef
|
grep
"
${
1
}
"
|
grep
-v
'grep'
|
awk
'{print $2}'
)
...
...
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