Static Analyzer for Solidity
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.
slither/scripts/ci_test_find_paths.sh

18 lines
437 B

#!/usr/bin/env bash
2 years ago
### Test slither-check-upgradeability
DIR_TESTS="tests/possible_paths"
4 years ago
solc-select use "0.5.0"
2 years ago
slither-find-paths "$DIR_TESTS/paths.sol" A.destination > test_possible_paths.txt 2>&1
DIFF=$(diff test_possible_paths.txt "$DIR_TESTS/paths.txt")
if [ "$DIFF" != "" ]
then
echo "slither-find-paths failed"
cat test_possible_paths.txt
cat "$DIR_TESTS/paths.txt"
exit 255
fi
rm test_possible_paths.txt