diff options
author | obscuren <geffobscura@gmail.com> | 2015-03-02 23:34:03 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-03-02 23:34:03 +0800 |
commit | b13735b40024ccc704a4c343b2985165a3bc66f4 (patch) | |
tree | a814196fe4c154f886ba0c6a9ba4348c9268b849 /tests/files/ansible/test-files/testrunner.sh | |
parent | b383ff0b96a1cf3df0b56f13b8d303ae4d4977ad (diff) | |
download | dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar.gz dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar.bz2 dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar.lz dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar.xz dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.tar.zst dexon-b13735b40024ccc704a4c343b2985165a3bc66f4.zip |
updated tests
Diffstat (limited to 'tests/files/ansible/test-files/testrunner.sh')
-rwxr-xr-x | tests/files/ansible/test-files/testrunner.sh | 33 |
1 files changed, 17 insertions, 16 deletions
diff --git a/tests/files/ansible/test-files/testrunner.sh b/tests/files/ansible/test-files/testrunner.sh index 5d7779109..30a813e12 100755 --- a/tests/files/ansible/test-files/testrunner.sh +++ b/tests/files/ansible/test-files/testrunner.sh @@ -1,23 +1,24 @@ #!/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 |