mirror of https://github.com/crytic/slither
- tests_cli: tests some of the cli flags - test_pritners: call all the printers - test_slither_config: test the --config flag Additionally: - "all" can be selected for printers (all the printers are then run) - 'ignore_return_value' can be set in the config filepull/208/head
parent
12cdcc2e87
commit
97b4f5cc7c
@ -0,0 +1,24 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
### Test |
||||
|
||||
slither "tests/*.json" --solc-ast --ignore-return-value |
||||
|
||||
if [ $? -ne 0 ]; then |
||||
echo "--solc-ast failed" |
||||
exit 1 |
||||
fi |
||||
|
||||
slither "tests/*.sol" --solc-disable-warnings --ignore-return-value |
||||
|
||||
if [ $? -ne 0 ]; then |
||||
echo "--solc-ast failed" |
||||
exit 1 |
||||
fi |
||||
|
||||
slither "tests/*.sol" --disable-color --ignore-return-value |
||||
|
||||
if [ $? -ne 0 ]; then |
||||
echo "--disable-color failed" |
||||
exit 1 |
||||
fi |
@ -0,0 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
### Test printer |
||||
|
||||
slither "tests/*.json" --print all |
||||
|
||||
if [ $? -ne 0 ]; then |
||||
echo "Printer tests failed" |
||||
exit 1 |
||||
fi |
||||
|
@ -0,0 +1,11 @@ |
||||
#!/usr/bin/env bash |
||||
|
||||
### Test |
||||
|
||||
slither "tests/*.json" --config "tests/config/slither.config.json" |
||||
|
||||
if [ $? -ne 0 ]; then |
||||
echo "Config failed" |
||||
exit 1 |
||||
fi |
||||
|
@ -0,0 +1,6 @@ |
||||
{ |
||||
"detectors_to_run": "all", |
||||
"exclude_informational": true, |
||||
"exclude_low": true, |
||||
"ignore_return_value": true |
||||
} |
Loading…
Reference in new issue