#!/usr/bin/env bash #------------------------------------------------------------------------------ # Script used for cross-platform comparison as part of the travis automation. # Splits all test source code into multiple files, generates bytecode and # uploads the bytecode into github.com/ethereum/solidity-test-bytecode where # another travis job is triggered to do the actual comparison. # # ------------------------------------------------------------------------------ # This file is part of solidity. # # solidity is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # solidity is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with solidity. If not, see # # (c) 2017 solidity contributors. #------------------------------------------------------------------------------ set -e SCRIPTDIR=$(dirname "$0") SCRIPTDIR=$(realpath "${SCRIPTDIR}") echo "Compiling all test contracts into bytecode..." TMPDIR=$(mktemp -d) ( cd "${TMPDIR}" "${SCRIPTDIR}/isolate_tests.py" /src/test/ cat > solc < /tmp/report.txt ) rm -rf "$TMPDIR"