diff options
author | Felix Lange <fjl@twurst.com> | 2016-11-14 17:52:02 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-14 17:52:02 +0800 |
commit | ca73dea3b9bcdf3b5424b5c48c70817439e2e304 (patch) | |
tree | 670e2833878e72555644fbbd81db6c5a1b44493f /tests/files/ansible/test-files/testrunner.sh | |
parent | 21701190ac0a838e347f31b7a918bb0a60c1e8c1 (diff) | |
parent | 648bd22427000b6e20a5e1a9c397005aa1ad4f9b (diff) | |
download | dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar.gz dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar.bz2 dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar.lz dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar.xz dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.tar.zst dexon-ca73dea3b9bcdf3b5424b5c48c70817439e2e304.zip |
Merge pull request #3179 from obscuren/eip-158
EIP158 & 160 Hardfork
Diffstat (limited to 'tests/files/ansible/test-files/testrunner.sh')
-rw-r--r-- | tests/files/ansible/test-files/testrunner.sh | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/tests/files/ansible/test-files/testrunner.sh b/tests/files/ansible/test-files/testrunner.sh new file mode 100644 index 000000000..c7763b1f1 --- /dev/null +++ b/tests/files/ansible/test-files/testrunner.sh @@ -0,0 +1,57 @@ +#!/bin/bash + +# create random virtual machine test + +mkdir --parents ~/testout +cd ~/testout +export EVMJIT="-cache=0" +while [ 1 ] +do + TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)" + # echo "$TEST" + + # test pyethereum + OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")" + RESULT_PYTHON=$? + + # test go + OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")" + RESULT_GO=$? + + # test cpp-jit + OUTPUT_CPPJIT="$(docker run --rm ethereum/cppjit-testrunner "$TEST")" + RESULT_CPPJIT=$? + + # go fails + if [ "$RESULT_GO" -ne 0 ]; then + echo Failed: + echo Output_GO: + echo $OUTPUT_GO + echo Test: + echo "$TEST" + echo "$TEST" > FailedTest.json + mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")GO.json # replace with scp to central server + 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 + + # cppjit fails + if [ "$RESULT_CPPJIT" -ne 0 ]; then + echo Failed: + echo Output_CPPJIT: + echo $OUTPUT_CPPJIT + echo Test: + echo "$TEST" + echo "$TEST" > FailedTest.json + mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")CPPJIT.json + fi +done |