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.
18 lines
429 B
18 lines
429 B
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
|
### Test slither-check-upgradability
|
||
|
|
||
|
DIR_TESTS="tests/possible_paths"
|
||
|
|
||
4 years ago
|
solc use "0.5.0"
|
||
|
slither-find-paths "$DIR_TESTS/paths.sol" A.destination > test_possible_paths.txt 2>&1
|
||
6 years ago
|
DIFF=$(diff test_possible_paths.txt "$DIR_TESTS/paths.txt")
|
||
4 years ago
|
if [ "$DIFF" != "" ]
|
||
6 years ago
|
then
|
||
|
echo "slither-find-paths failed"
|
||
|
cat test_possible_paths.txt
|
||
|
cat "$DIR_TESTS/paths.txt"
|
||
4 years ago
|
exit 255
|
||
6 years ago
|
fi
|
||
|
rm test_possible_paths.txt
|