enabled python in tests

This commit is contained in:
sveneh 2015-02-05 12:09:35 +01:00
parent 2e2e36cc72
commit 5235124460

View File

@ -1,23 +1,24 @@
#!/bin/bash #!/bin/bash
# create random virtual machine test # 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 ] while [ 1 ]
do 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" # echo "$TEST"
# test pyethereum # test pyethereum
#OUTPUT_PYTHON="$(python ./tests/test_vm.py "$TEST")" OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner "$TEST")"
#RESULT_PYTHON=$? RESULT_PYTHON=$?
# test go # test go
OUTPUT_GO="$(docker run --rm go "$TEST")" OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")"
RESULT_GO=$? RESULT_GO=$?
# test cpp-jit # test cpp-jit
OUTPUT_CPPJIT="$(docker run --rm cppjit "$TEST")" OUTPUT_CPPJIT="$(docker run --rm ethereum/cppjit-testrunner "$TEST")"
RESULT_CPPJIT=$? RESULT_CPPJIT=$?
# go fails # go fails
@ -32,15 +33,15 @@ do
fi fi
# python fails # python fails
#if [ "$RESULT_PYTHON" -ne 0 ]; then if [ "$RESULT_PYTHON" -ne 0 ]; then
# echo Failed: echo Failed:
# echo Output_PYTHON: echo Output_PYTHON:
# echo $OUTPUT_PYTHON echo $OUTPUT_PYTHON
# echo Test: echo Test:
# echo "$TEST" echo "$TEST"
# echo "$TEST" > FailedTest.json echo "$TEST" > FailedTest.json
# mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")PYTHON.json mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")PYTHON.json
#fi fi
# cppjit fails # cppjit fails
if [ "$RESULT_CPPJIT" -ne 0 ]; then if [ "$RESULT_CPPJIT" -ne 0 ]; then