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.
20 lines
370 B
20 lines
370 B
#!/usr/bin/env bash
|
|
|
|
### Test slither-check-erc
|
|
|
|
DIR_TESTS="tests/check-erc"
|
|
|
|
slither-check-erc "$DIR_TESTS/erc20.sol" ERC20 --solc solc-0.5.0 > test_1.txt 2>&1
|
|
DIFF=$(diff test_1.txt "$DIR_TESTS/test_1.txt")
|
|
if [ "$DIFF" != "" ]
|
|
then
|
|
echo "slither-check-erc 1 failed"
|
|
cat test_1.txt
|
|
echo ""
|
|
cat "$DIR_TESTS/test_1.txt"
|
|
exit -1
|
|
fi
|
|
|
|
|
|
rm test_1.txt
|
|
|
|
|