mirror of https://github.com/crytic/slither
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
525 B
24 lines
525 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
6 years ago
|
### Install requisites
|
||
|
|
||
6 years ago
|
pip3.6 install pybind11
|
||
|
pip3.6 install https://github.com/facebookresearch/fastText/archive/0.2.0.zip
|
||
6 years ago
|
|
||
6 years ago
|
### Test slither-simil
|
||
|
|
||
4 years ago
|
solc use "0.4.25"
|
||
|
|
||
6 years ago
|
DIR_TESTS="tests/simil"
|
||
4 years ago
|
slither-simil info "" --filename $DIR_TESTS/../complex_func.sol --fname Complex.complexExternalWrites > test_1.txt 2>&1
|
||
6 years ago
|
DIFF=$(diff test_1.txt "$DIR_TESTS/test_1.txt")
|
||
4 years ago
|
if [ "$DIFF" != "" ]
|
||
6 years ago
|
then
|
||
|
echo "slither-simil failed"
|
||
|
cat test_1.txt
|
||
|
cat "$DIR_TESTS/test_1.txt"
|
||
4 years ago
|
exit 255
|
||
6 years ago
|
fi
|
||
|
|
||
|
rm test_1.txt
|