mirror of https://github.com/ConsenSys/mythril
blockchainethereumsmart-contractssoliditysecurityprogram-analysissecurity-analysissymbolic-execution
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
434 B
18 lines
434 B
3 years ago
|
import pytest
|
||
|
import json
|
||
|
import sys
|
||
|
|
||
2 years ago
|
from subprocess import STDOUT
|
||
3 years ago
|
from tests import PROJECT_DIR, TESTDATA
|
||
2 years ago
|
from utils import output_of
|
||
3 years ago
|
|
||
|
MYTH = str(PROJECT_DIR / "myth")
|
||
|
|
||
|
|
||
|
def test_positive_solc_settings():
|
||
|
file_path = str(TESTDATA / "input_contracts" / "destruct_crlf.sol")
|
||
|
|
||
|
command = f"python3 {MYTH} analyze {file_path} --solv 0.5.0"
|
||
2 years ago
|
output = output_of(command, stderr=STDOUT)
|
||
3 years ago
|
assert "selfdestruct(addr)" in output
|