mirror of https://github.com/ethereum/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
1.3 KiB
58 lines
1.3 KiB
10 years ago
|
#!/bin/bash
|
||
|
|
||
|
# create random virtual machine test
|
||
10 years ago
|
|
||
|
mkdir --parents ~/testout
|
||
|
cd ~/testout
|
||
10 years ago
|
export EVMJIT="-cache=0"
|
||
10 years ago
|
while [ 1 ]
|
||
|
do
|
||
10 years ago
|
TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)"
|
||
10 years ago
|
# echo "$TEST"
|
||
|
|
||
10 years ago
|
# test pyethereum
|
||
10 years ago
|
OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")"
|
||
10 years ago
|
RESULT_PYTHON=$?
|
||
10 years ago
|
|
||
|
# test go
|
||
10 years ago
|
OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")"
|
||
10 years ago
|
RESULT_GO=$?
|
||
|
|
||
10 years ago
|
# test cpp-jit
|
||
10 years ago
|
OUTPUT_CPPJIT="$(docker run --rm ethereum/cppjit-testrunner "$TEST")"
|
||
10 years ago
|
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
|
||
10 years ago
|
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
|
||
10 years ago
|
|
||
|
# 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
|
||
10 years ago
|
done
|