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.
52 lines
2.1 KiB
52 lines
2.1 KiB
6 years ago
|
#!/usr/bin/env bash
|
||
|
|
||
4 years ago
|
source "$(dirname "$0")""/ci_test.sh"
|
||
|
|
||
|
solc use "0.5.1"
|
||
6 years ago
|
|
||
5 years ago
|
test_slither tests/void-cst.sol "void-cst"
|
||
6 years ago
|
test_slither tests/solc_version_incorrect_05.ast.json "solc-version"
|
||
6 years ago
|
test_slither tests/unchecked_lowlevel-0.5.1.sol "unchecked-lowlevel"
|
||
|
test_slither tests/unchecked_send-0.5.1.sol "unchecked-send"
|
||
6 years ago
|
test_slither tests/uninitialized-0.5.1.sol "uninitialized-state"
|
||
6 years ago
|
test_slither tests/backdoor.sol "backdoor"
|
||
|
test_slither tests/backdoor.sol "suicidal"
|
||
|
test_slither tests/old_solc.sol.json "solc-version"
|
||
6 years ago
|
test_slither tests/reentrancy-0.5.1.sol "reentrancy-eth"
|
||
5 years ago
|
test_slither tests/reentrancy-0.5.1-events.sol "reentrancy-events"
|
||
6 years ago
|
test_slither tests/tx_origin-0.5.1.sol "tx-origin"
|
||
6 years ago
|
test_slither tests/unused_state.sol "unused-state"
|
||
6 years ago
|
test_slither tests/locked_ether-0.5.1.sol "locked-ether"
|
||
|
test_slither tests/arbitrary_send-0.5.1.sol "arbitrary-send"
|
||
|
test_slither tests/inline_assembly_contract-0.5.1.sol "assembly"
|
||
|
test_slither tests/inline_assembly_library-0.5.1.sol "assembly"
|
||
6 years ago
|
test_slither tests/low_level_calls.sol "low-level-calls"
|
||
|
test_slither tests/const_state_variables.sol "constable-states"
|
||
|
test_slither tests/external_function.sol "external-function"
|
||
6 years ago
|
test_slither tests/external_function_2.sol "external-function"
|
||
6 years ago
|
test_slither tests/naming_convention.sol "naming-convention"
|
||
6 years ago
|
#test_slither tests/complex_func.sol "complex-function"
|
||
6 years ago
|
test_slither tests/controlled_delegatecall.sol "controlled-delegatecall"
|
||
5 years ago
|
test_slither tests/constant-0.5.1.sol "constant-function-asm"
|
||
|
test_slither tests/constant-0.5.1.sol "constant-function-state"
|
||
6 years ago
|
test_slither tests/unused_return.sol "unused-return"
|
||
6 years ago
|
test_slither tests/timestamp.sol "timestamp"
|
||
6 years ago
|
test_slither tests/incorrect_equality.sol "incorrect-equality"
|
||
6 years ago
|
test_slither tests/too_many_digits.sol "too-many-digits"
|
||
|
|
||
6 years ago
|
|
||
6 years ago
|
### Test scripts
|
||
|
|
||
4 years ago
|
if ! python examples/scripts/functions_called.py examples/scripts/functions_called.sol; then
|
||
6 years ago
|
exit 1
|
||
|
fi
|
||
|
|
||
4 years ago
|
if ! python examples/scripts/functions_writing.py examples/scripts/functions_writing.sol; then
|
||
6 years ago
|
exit 1
|
||
|
fi
|
||
|
|
||
4 years ago
|
if ! python examples/scripts/variable_in_condition.py examples/scripts/variable_in_condition.sol; then
|
||
6 years ago
|
exit 1
|
||
|
fi
|
||
6 years ago
|
exit 0
|