github.com/ylsGit/go-ethereum@v1.6.5/tests/files/ansible/test-files/testrunner.sh (about) 1 #!/bin/bash 2 3 # create random virtual machine test 4 5 mkdir --parents ~/testout 6 cd ~/testout 7 export EVMJIT="-cache=0" 8 while [ 1 ] 9 do 10 TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)" 11 # echo "$TEST" 12 13 # test pyethereum 14 OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")" 15 RESULT_PYTHON=$? 16 17 # test go 18 OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")" 19 RESULT_GO=$? 20 21 # test cpp-jit 22 OUTPUT_CPPJIT="$(docker run --rm ethereum/cppjit-testrunner "$TEST")" 23 RESULT_CPPJIT=$? 24 25 # go fails 26 if [ "$RESULT_GO" -ne 0 ]; then 27 echo Failed: 28 echo Output_GO: 29 echo $OUTPUT_GO 30 echo Test: 31 echo "$TEST" 32 echo "$TEST" > FailedTest.json 33 mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")GO.json # replace with scp to central server 34 fi 35 36 # python fails 37 if [ "$RESULT_PYTHON" -ne 0 ]; then 38 echo Failed: 39 echo Output_PYTHON: 40 echo $OUTPUT_PYTHON 41 echo Test: 42 echo "$TEST" 43 echo "$TEST" > FailedTest.json 44 mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")PYTHON.json 45 fi 46 47 # cppjit fails 48 if [ "$RESULT_CPPJIT" -ne 0 ]; then 49 echo Failed: 50 echo Output_CPPJIT: 51 echo $OUTPUT_CPPJIT 52 echo Test: 53 echo "$TEST" 54 echo "$TEST" > FailedTest.json 55 mv FailedTest.json $(date -d "today" +"%Y%m%d%H%M")CPPJIT.json 56 fi 57 done