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
52351244
Commit
52351244
authored
Feb 05, 2015
by
sveneh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enabled python in tests
parent
2e2e36cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
16 deletions
+17
-16
testrunner.sh
ansible/test-files/testrunner.sh
+17
-16
No files found.
ansible/test-files/testrunner.sh
View file @
52351244
#!/bin/bash
# create random virtual machine test
#cd ~/software/Ethereum/pyethereum (python has local dependencies so only works from within the directory)
cd
~
mkdir
--parents
~/testout
cd
~/testout
while
[
1
]
do
TEST
=
"
$(
docker run
--rm
--entrypoint
=
"/cpp-ethereum/build/test/createRandomTest"
cppjit
)
"
TEST
=
"
$(
docker run
--rm
--entrypoint
=
\"
/cpp-ethereum/build/test/createRandomTest
\"
ethereum/cppjit-testrunner
)
"
# echo "$TEST"
# test pyethereum
#OUTPUT_PYTHON="$(python ./tests/test_vm.py
"$TEST")"
#
RESULT_PYTHON=$?
OUTPUT_PYTHON
=
"
$(
docker run
--rm
ethereum/python-testrunner
"
$TEST
"
)
"
RESULT_PYTHON
=
$?
# test go
OUTPUT_GO
=
"
$(
docker run
--rm
go
"
$TEST
"
)
"
OUTPUT_GO
=
"
$(
docker run
--rm
ethereum/go-testrunner
"
$TEST
"
)
"
RESULT_GO
=
$?
# test cpp-jit
OUTPUT_CPPJIT
=
"
$(
docker run
--rm
cppjit
"
$TEST
"
)
"
OUTPUT_CPPJIT
=
"
$(
docker run
--rm
ethereum/cppjit-testrunner
"
$TEST
"
)
"
RESULT_CPPJIT
=
$?
# go fails
...
...
@@ -32,15 +33,15 @@ do
fi
# python fails
#
if [ "$RESULT_PYTHON" -ne 0 ]; then
#
echo Failed:
#
echo Output_PYTHON:
#
echo $OUTPUT_PYTHON
#
echo Test:
#
echo "$TEST"
#
echo "$TEST" > FailedTest.json
#
mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")PYTHON.json
#
fi
if
[
"
$RESULT_PYTHON
"
-ne
0
]
;
then
echo
Failed:
echo
Output_PYTHON:
echo
$OUTPUT_PYTHON
echo
Test:
echo
"
$TEST
"
echo
"
$TEST
"
>
FailedTest.json
mv
FailedTest.json
$(
date
-d
"today"
+
"%Y%m%d%H%M"
)
PYTHON.json
fi
# cppjit fails
if
[
"
$RESULT_CPPJIT
"
-ne
0
]
;
then
...
...
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