quorum/tests/files/ansible/test-files/testrunner.sh

58 lines
1.3 KiB
Bash
Raw Normal View History

2015-01-14 08:03:37 -08:00
#!/bin/bash
# create random virtual machine test
2015-02-05 03:09:35 -08:00
mkdir --parents ~/testout
cd ~/testout
export EVMJIT="-cache=0"
2015-01-14 08:03:37 -08:00
while [ 1 ]
do
Squashed 'tests/files/' changes from 0749546..641ebaa 641ebaa Merge branch 'develop' of https://github.com/ethereum/tests into develop 8e44fd4 possibility to launch more than one machine 5498fd5 2 more python fails 99268f3 update random test simulation files 170485e Merge remote-tracking branch 'origin/develop' into develop 4fcdf8f new python fails e67b68a Merge branch 'develop' of https://github.com/ethereum/tests into develop 3f45f18 BlockRLPTests block fields prefixed with 0000 9fa9bbd Merge pull request #78 from wanderer/develop 222c2b4 update block tests 9d844dd python fails 05233a4 update blockchaintests 7dc0aa2 update JS_API_Test blockchain 6daf1cc added JS_API_test blockchain e878f7e consitant address format 0e246ce python fail 57ea9a0 random failures 95934e0 add test for callcode to 0 13b8cd2 new python failures 9e60453 remove empty tests ca6dfa9 uncle older than 6 generation test cf7e950 some random failures 282090e update gas limits + uncle generation test bb4c1f4 cppjit failure cda9d4c more random failures 31ac17a add calldataload big offset test f6b8e28 remove seedhash and update blockchain tests ad69f9d add addmod test in order toc check that nothing get downcasted inbetween 38b7db2 a failing test b9149b5 Merge remote-tracking branch 'origin/develop' into develop 5bea708 more failing tests 478a07d fix missing comma 6d82797 Merge remote-tracking branch 'origin/develop' into develop 2f380e2 random fails 3cd0ce7 Merge pull request #75 from romanman/develop afa0a43 Update crypto.json 1b9b7b8 Introduce ECIES crypto test git-subtree-dir: tests/files git-subtree-split: 641ebaa3cf257c08838c707bebb481d61e708f95
2015-03-17 04:02:49 -07:00
TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)"
2015-01-14 08:03:37 -08:00
# echo "$TEST"
# test pyethereum
OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")"
2015-02-05 03:09:35 -08:00
RESULT_PYTHON=$?
2015-01-14 08:03:37 -08:00
# test go
2015-02-05 03:09:35 -08:00
OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")"
RESULT_GO=$?
2015-01-14 08:03:37 -08:00
# test cpp-jit
2015-02-05 03:09:35 -08:00
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
2015-02-05 03:09:35 -08:00
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
2015-01-14 09:06:28 -08:00
done