diff options
author | sveneh <sven@ethdev.com> | 2015-01-15 00:03:37 +0800 |
---|---|---|
committer | sveneh <sven@ethdev.com> | 2015-01-15 00:03:37 +0800 |
commit | 9326d0a6dd902435ad13fe23c21d7b8f30fb35ce (patch) | |
tree | 63e8394001b62c14fa9f8d0bc584e3608b5e4dd3 /ansible/test-files/testrunner.sh | |
parent | 74faa30af6349a7f87959dcf907092b98af735ec (diff) | |
download | dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.gz dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.bz2 dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.lz dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.xz dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.tar.zst dexon-tests-9326d0a6dd902435ad13fe23c21d7b8f30fb35ce.zip |
Dockers for go, cpp
Diffstat (limited to 'ansible/test-files/testrunner.sh')
-rw-r--r-- | ansible/test-files/testrunner.sh | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ansible/test-files/testrunner.sh b/ansible/test-files/testrunner.sh new file mode 100644 index 000000000..08b21c88e --- /dev/null +++ b/ansible/test-files/testrunner.sh @@ -0,0 +1,55 @@ +#!/bin/bash + +# create random virtual machine test +#cd ~/software/Ethereum/pyethereum (python has local dependencies so only works from within the directory) +while [ 1 ] +do + TEST="$(~/software/Ethereum/cpp-ethereum/build/test/createRandomTest)" + # echo "$TEST" + + # test pyethereum + + #OUTPUT_PYTHON="$(python ./tests/test_vm.py "$TEST")" + #RESULT_PYTHON=$? + + # test go + OUTPUT_GO="$(ethtest "$TEST")" + RESULT_GO=$? + + # test cpp-jit + #OUTPUT_CPPJIT="$(~/software/Ethereum/cpp-ethereum/build/test/checkRandomTest "$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 + |