diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-02 23:43:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-02 23:43:12 +0800 |
commit | 0823254c3bc2560f8e0dd6f19d05f471f8af94f4 (patch) | |
tree | 56188e6c00336c34971839a90ece54a576483606 /tests/files/ansible/test-files/testrunner.sh | |
parent | 4f3f881c9be0b590e6e28fda295257e8d15d5f02 (diff) | |
parent | ce7204fa17560f6a76c7592bf5f23d29f22042d6 (diff) | |
download | go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar.gz go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar.bz2 go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar.lz go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar.xz go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.tar.zst go-tangerine-0823254c3bc2560f8e0dd6f19d05f471f8af94f4.zip |
Add 'tests/files/' from commit 'ce7204fa17560f6a76c7592bf5f23d29f22042d6'
git-subtree-dir: tests/files
git-subtree-mainline: 4f3f881c9be0b590e6e28fda295257e8d15d5f02
git-subtree-split: ce7204fa17560f6a76c7592bf5f23d29f22042d6
Diffstat (limited to 'tests/files/ansible/test-files/testrunner.sh')
-rwxr-xr-x | tests/files/ansible/test-files/testrunner.sh | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/tests/files/ansible/test-files/testrunner.sh b/tests/files/ansible/test-files/testrunner.sh new file mode 100755 index 000000000..30a813e12 --- /dev/null +++ b/tests/files/ansible/test-files/testrunner.sh @@ -0,0 +1,56 @@ +#!/bin/bash + +# create random virtual machine test + +mkdir --parents ~/testout +cd ~/testout +while [ 1 ] +do + TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomTest\" ethereum/cppjit-testrunner)" + # echo "$TEST" + + # test pyethereum + OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner "$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 |