Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
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
张蕾
Geth-Modification
Commits
69dfca2f
Commit
69dfca2f
authored
Jan 09, 2015
by
zelig
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor changes in integration tests
parent
3bdf28c1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
+8
-8
02.sh
eth/test/tests/02.sh
+3
-3
03.sh
eth/test/tests/03.sh
+2
-2
common.sh
eth/test/tests/common.sh
+3
-3
No files found.
eth/test/tests/02.sh
View file @
69dfca2f
...
@@ -12,8 +12,8 @@ EOF
...
@@ -12,8 +12,8 @@ EOF
peer 11 01
peer 11 01
peer 12 02
peer 12 02
P1
3
ID
=
$PID
P1
2
ID
=
$PID
test_node
$NAME
""
-loglevel
5
$JSFILE
test_node
$NAME
""
-loglevel
5
$JSFILE
sleep
0.
5
sleep
0.
3
kill
$P1
3
ID
kill
$P1
2
ID
eth/test/tests/03.sh
View file @
69dfca2f
#!/bin/bash
#!/bin/bash
TIMEOUT
=
35
TIMEOUT
=
12
cat
>>
$JSFILE
<<
EOF
cat
>>
$JSFILE
<<
EOF
eth.addPeer("localhost:30311");
eth.addPeer("localhost:30311");
sleep(
3
0000);
sleep(
1
0000);
eth.export("
$CHAIN_TEST
");
eth.export("
$CHAIN_TEST
");
EOF
EOF
...
...
eth/test/tests/common.sh
View file @
69dfca2f
...
@@ -3,14 +3,14 @@
...
@@ -3,14 +3,14 @@
# launched by run.sh
# launched by run.sh
function
test_node
{
function
test_node
{
rm
-rf
$DIR
/
$1
rm
-rf
$DIR
/
$1
ARGS
=
"-datadir
$DIR
/
$1
-debug debug -seed=false -shh=false -id test
$1
"
ARGS
=
"-datadir
$DIR
/
$1
-debug debug -seed=false -shh=false -id test
$1
-port 303
$1
"
if
[
""
!=
"
$2
"
]
;
then
if
[
""
!=
"
$2
"
]
;
then
chain
=
"chains/
$2
.chain"
chain
=
"chains/
$2
.chain"
echo
"import chain
$chain
"
echo
"import chain
$chain
"
$ETH
$ARGS
-loglevel
3
-chain
$chain
|
grep
CLI |grep import
$ETH
$ARGS
-loglevel
3
-chain
$chain
|
grep
CLI |grep import
fi
fi
echo
"starting test node
$1
with
extra args
${
@
:3
}
"
echo
"starting test node
$1
with
args
$ARGS
${
@
:3
}
"
$ETH
$ARGS
-port
303
$1
${
@
:3
}
&
$ETH
$ARGS
${
@
:3
}
&
PID
=
$!
PID
=
$!
PIDS
=
"
$PIDS
$PID
"
PIDS
=
"
$PIDS
$PID
"
}
}
...
...
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