aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/tests.sh
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2017-01-21 02:48:53 +0800
committerchriseth <c@ethdev.com>2017-01-21 02:50:14 +0800
commit61a15bb92efd24b54dfa982d42a600b075ebad38 (patch)
tree0760dc9e2cfa4260beb0aa7803c28505d31ee917 /scripts/tests.sh
parent12b002b3b8575539f332c30691e880bcc2fac5bc (diff)
downloaddexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar.gz
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar.bz2
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar.lz
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar.xz
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.tar.zst
dexon-solidity-61a15bb92efd24b54dfa982d42a600b075ebad38.zip
Test that all constructible std contracts produce bytecode.
Diffstat (limited to 'scripts/tests.sh')
-rwxr-xr-xscripts/tests.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/tests.sh b/scripts/tests.sh
index dfbda734..21958288 100755
--- a/scripts/tests.sh
+++ b/scripts/tests.sh
@@ -45,6 +45,10 @@ do
test -z "$output" -a "$failed" -eq 0
done
+echo "Checking that StandardToken.sol, owned.sol and mortal.sol produce bytecode..."
+output=$("$REPO_ROOT"/build/solc/solc --bin "$REPO_ROOT"/std/*.sol 2>/dev/null | grep "ffff" | wc -l)
+test "$output" = "3"
+
# This conditional is only needed because we don't have a working Homebrew
# install for `eth` at the time of writing, so we unzip the ZIP file locally
# instead. This will go away soon.