mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Remove traces of aleth and IPC.
This commit is contained in:
@@ -55,42 +55,3 @@ safe_kill()
|
||||
kill -9 $PID
|
||||
fi
|
||||
}
|
||||
|
||||
# Ensures aleth executable and exposes the following information:
|
||||
#
|
||||
# - env var ALETH_PATH: to point to the aleth executable.
|
||||
# - directory /tmp/test if needed. No cleanup is done on this directory
|
||||
function download_aleth()
|
||||
{
|
||||
if which aleth &>/dev/null; then
|
||||
ALETH_PATH=`which aleth`
|
||||
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
||||
ALETH_PATH="$(realpath $(dirname "$0")/..)/aleth"
|
||||
elif [ "$CIRCLECI" ] || [ -z $CI ]; then
|
||||
ALETH_PATH="aleth"
|
||||
else
|
||||
ALETH_PATH="/tmp/test/bin/aleth"
|
||||
mkdir -p /tmp/test
|
||||
# Any time the hash is updated here, the "Running the compiler tests" section in contributing.rst should also be updated.
|
||||
local ALETH_HASH="7f7004e1563299bc57882e32b32e4a195747dfb6"
|
||||
local ALETH_VERSION="1.6.0"
|
||||
wget -q -O /tmp/test/aleth.tar.gz https://github.com/ethereum/aleth/releases/download/v${ALETH_VERSION}/aleth-${ALETH_VERSION}-linux-x86_64.tar.gz
|
||||
test "$(shasum /tmp/test/aleth.tar.gz)" = "$ALETH_HASH /tmp/test/aleth.tar.gz"
|
||||
tar -xf /tmp/test/aleth.tar.gz -C /tmp/test
|
||||
sync
|
||||
chmod +x $ALETH_PATH
|
||||
sync # Otherwise we might get a "text file busy" error
|
||||
fi
|
||||
}
|
||||
|
||||
# Executes aleth in the background and echos its PID.
|
||||
function run_aleth()
|
||||
{
|
||||
$ALETH_PATH --db memorydb --test -d "${WORKDIR}" &> /dev/null &
|
||||
echo $!
|
||||
|
||||
# Wait until the IPC endpoint is available.
|
||||
while [ ! -S "${WORKDIR}/geth.ipc" ] ; do sleep 1; done
|
||||
sleep 2
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user