diff options
author | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-11-09 06:07:44 +0800 |
---|---|---|
committer | Jeffrey Wilcke <jeffrey@ethereum.org> | 2016-11-14 06:26:07 +0800 |
commit | a91908e5678397a466060aa614081974a4a36455 (patch) | |
tree | 978be70e63397722f6bec971f045418096995fab /tests/files/ansible/test-files/testrunner.sh | |
parent | ae33883c2fd72b960e774833708deb1ce10e3fe4 (diff) | |
download | go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.gz go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.bz2 go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.lz go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.xz go-tangerine-a91908e5678397a466060aa614081974a4a36455.tar.zst go-tangerine-a91908e5678397a466060aa614081974a4a36455.zip |
tests: updated
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 |