Strips commonly used helper functions in scripts into its own file to be shared with scripts along with minor syntax cleanup.

Also includes first bits for valgrind testing.
This commit is contained in:
Christian Parpart
2019-04-24 16:14:42 +02:00
parent eac0048176
commit 1a3c31a926
3 changed files with 108 additions and 56 deletions
+1 -11
View File
@@ -36,16 +36,7 @@ SOLC="$REPO_ROOT/build/solc/solc"
FULLARGS="--optimize --ignore-missing --combined-json abi,asm,ast,bin,bin-runtime,compact-format,devdoc,hashes,interface,metadata,opcodes,srcmap,srcmap-runtime,userdoc"
## FUNCTIONS
if [ "$CIRCLECI" ]
then
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput setaf 7)"; }
function printError() { echo "$(tput setaf 1)$1$(tput setaf 7)"; }
else
function printTask() { echo "$(tput bold)$(tput setaf 2)$1$(tput sgr0)"; }
function printError() { echo "$(tput setaf 1)$1$(tput sgr0)"; }
fi
source "${REPO_ROOT}/scripts/functions.sh"
function compileFull()
{
@@ -199,7 +190,6 @@ function test_solc_behaviour()
fi
}
function test_solc_assembly_output()
{
local input="${1}"