mirror of
https://github.com/crytic/slither.git
synced 2026-10-12 02:12:39 +00:00
- Rename travis_ to ci_ - Move shared code to scripts/ci_tests.sh - Rename _4 /_5 to detectors_4 / detectors_5 - Rename generation scripts - Create solidity 6 / 7 scripts (but there is no test for now) - Use solc-select - Update CONTRIBUTING.md guidelines
21 lines
366 B
Bash
Executable File
21 lines
366 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
### Test slither-check-erc
|
|
|
|
DIR_TESTS="tests/check-erc"
|
|
|
|
solc use 0.5.0
|
|
slither-check-erc "$DIR_TESTS/erc20.sol" ERC20 > 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 255
|
|
fi
|
|
|
|
|
|
rm test_1.txt
|