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
379 B
18 lines
379 B
5 years ago
|
#!/bin/bash
|
||
|
|
||
|
DIR_TESTS="tests/check-kspec"
|
||
|
|
||
4 years ago
|
solc use "0.5.0"
|
||
|
slither-check-kspec "$DIR_TESTS/safeAdd/safeAdd.sol" "$DIR_TESTS/safeAdd/spec.md" > test_1.txt 2>&1
|
||
5 years ago
|
DIFF=$(diff test_1.txt "$DIR_TESTS/test_1.txt")
|
||
4 years ago
|
if [ "$DIFF" != "" ]
|
||
5 years ago
|
then
|
||
|
echo "slither-check-upgradeability 1 failed"
|
||
|
cat test_1.txt
|
||
|
echo ""
|
||
|
cat "$DIR_TESTS/test_1.txt"
|
||
4 years ago
|
exit 255
|
||
5 years ago
|
fi
|
||
|
|
||
|
rm test_1.txt
|