go-ethereum/tests/files/ansible/test-files/testrunner.sh
Jeffrey Wilcke dc2e34ddf3 core, core/state, trie: Hardfork EIP155, EIP161, EIP170
This commit implements EIP158 part 1, 2, 3 & 4

1. If an account is empty it's no longer written to the trie. An empty
  account is defined as (balance=0, nonce=0, storage=0, code=0).
2. Delete an empty account if it's touched
3. An empty account is redefined as either non-existent or empty.
4. Zero value calls and zero value suicides no longer consume the 25k
  reation costs.

params: moved core/config to params

Signed-off-by: Jeffrey Wilcke <jeffrey@ethereum.org>
2016-11-15 12:40:36 +01:00

57 lines
1.3 KiB
Bash

#!/bin/bash
# create random virtual machine test
mkdir --parents ~/testout
cd ~/testout
export EVMJIT="-cache=0"
while [ 1 ]
do
TEST="$(docker run --rm --entrypoint=\"/cpp-ethereum/build/test/createRandomStateTest\" ethereum/cppjit-testrunner)"
# echo "$TEST"
# test pyethereum
OUTPUT_PYTHON="$(docker run --rm ethereum/python-testrunner --notrace <<< "$TEST")"
RESULT_PYTHON=$?
# test go
OUTPUT_GO="$(docker run --rm ethereum/go-testrunner "$TEST")"
RESULT_GO=$?
# test cpp-jit
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
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
done