Merge pull request #258 from rocky/all_tests-tweak

Check and report status of various required packages
pull/260/head
Bernhard Mueller 7 years ago committed by GitHub
commit 2eb933f26d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 31
      all_tests.sh

@ -1,10 +1,33 @@
#!/bin/sh #!/bin/sh
python3 --version echo -n "Checking Python version... "
echo "Please make sure you are using python 3.6.x" python -c 'import sys
print(sys.version)
assert sys.version_info[0:2] >= (3,6), \
"""Please make sure you are using Python 3.6.x.
You ran with {}""".format(sys.version)' || exit $?
solc --version echo "Checking solc version..."
echo "Please make sure you are using solc 0.4.21" out=$(solc --version) || {
echo 2>&1 "Please make sure you have solc installed, version 0.4.21 or greater"
}
case $out in
*Version:\ 0.4.2[1-9]* )
echo $out
break ;;
* )
echo $out
echo "Please make sure your solc version is at least 0.4.21"
exit 1
;;
esac
echo "Checking that truffle is installed..."
if ! which truffle ; then
echo "Please make sure you have etherum truffle installed (npm install -g truffle)"
exit 2
fi
rm -rf ./tests/testdata/outputs_current/ rm -rf ./tests/testdata/outputs_current/
mkdir -p ./tests/testdata/outputs_current/ mkdir -p ./tests/testdata/outputs_current/

Loading…
Cancel
Save