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.
21 lines
549 B
21 lines
549 B
#!/usr/bin/env bash
|
|
|
|
### Install requisites
|
|
|
|
pip3.6 install pybind11 --user
|
|
pip3.6 install https://github.com/facebookresearch/fastText/archive/0.2.0.zip --user
|
|
|
|
### Test slither-simil
|
|
|
|
DIR_TESTS="tests/simil"
|
|
slither-simil info "" --filename $DIR_TESTS/../complex_func.sol --contract Complex --fname complexExternalWrites --solc solc-0.4.25 > test_1.txt 2>&1
|
|
DIFF=$(diff test_1.txt "$DIR_TESTS/test_1.txt")
|
|
if [ "$DIFF" != "" ]
|
|
then
|
|
echo "slither-simil failed"
|
|
cat test_1.txt
|
|
cat "$DIR_TESTS/test_1.txt"
|
|
exit -1
|
|
fi
|
|
|
|
rm test_1.txt
|
|
|