Skip to content

Commit a19c87a

Browse files
committed
Update medusa config file, fix multi.sol medusa test
1 parent b3bb943 commit a19c87a

File tree

2 files changed

+36
-13
lines changed

2 files changed

+36
-13
lines changed

.github/workflows/medusa.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,13 +84,11 @@ jobs:
8484
workdir: program-analysis/echidna/example/
8585
files: multi.sol
8686
contract: C
87-
config: filter.yaml
8887
outcome: failure
8988
expected: 'echidna_state4()\" failed after the following call sequence'
9089
- name: Assert
9190
workdir: program-analysis/echidna/example/
9291
files: assert.sol
93-
config: assert.yaml
9492
contract: Incrementor
9593
outcome: failure
9694
expected: 'inc(uint256)\" resulted in an assertion failure after the following call sequence'
@@ -112,7 +110,6 @@ jobs:
112110
workdir: program-analysis/echidna/example/
113111
files: TestDepositWithPermit.sol
114112
solc-version: 0.8.0
115-
config: testdeposit.yaml
116113
contract: TestDepositWithPermit
117114
outcome: success
118115
expected: '\[PASSED\] Assertion Test: TestDepositWithPermit.testERC20PermitDeposit(uint256)'
@@ -162,7 +159,7 @@ jobs:
162159
go build -o medusa -v .
163160
go install -v .
164161
sudo cp medusa /usr/bin
165-
pip install crytic-compile solc-select
162+
pip install crytic-compile solc-select slither-analyzer
166163
167164
- name: Run Medusa
168165
continue-on-error: true

program-analysis/echidna/example/medusa.json

Lines changed: 35 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,36 @@
66
"testLimit": 0,
77
"shrinkLimit": 5000,
88
"callSequenceLength": 100,
9+
"pruneFrequency": 5,
910
"corpusDirectory": "",
1011
"coverageEnabled": true,
11-
"coverageFormats": ["html", "lcov"],
12+
"coverageFormats": [
13+
"html",
14+
"lcov"
15+
],
16+
"revertReporterEnabled": false,
1217
"targetContracts": [],
1318
"predeployedContracts": {},
1419
"targetContractsBalances": [],
1520
"constructorArgs": {},
1621
"deployerAddress": "0x30000",
17-
"senderAddresses": ["0x10000", "0x20000", "0x30000"],
22+
"senderAddresses": [
23+
"0x10000",
24+
"0x20000",
25+
"0x30000"
26+
],
1827
"blockNumberDelayMax": 60480,
1928
"blockTimestampDelayMax": 604800,
20-
"blockGasLimit": 125000000,
2129
"transactionGasLimit": 12500000,
2230
"testing": {
2331
"stopOnFailedTest": true,
2432
"stopOnFailedContractMatching": false,
2533
"stopOnNoTests": true,
2634
"testAllContracts": false,
27-
"traceAll": false,
35+
"testViewMethods": true,
36+
"verbosity": 1,
2837
"assertionTesting": {
2938
"enabled": true,
30-
"testViewMethods": false,
3139
"panicCodeConfig": {
3240
"failOnCompilerInsertedPanic": false,
3341
"failOnAssertion": true,
@@ -43,22 +51,35 @@
4351
},
4452
"propertyTesting": {
4553
"enabled": true,
46-
"testPrefixes": ["echidna_"]
54+
"testPrefixes": [
55+
"echidna_"
56+
]
4757
},
4858
"optimizationTesting": {
4959
"enabled": true,
50-
"testPrefixes": ["optimize_"]
60+
"testPrefixes": [
61+
"optimize_"
62+
]
5163
},
5264
"targetFunctionSignatures": [],
53-
"excludeFunctionSignatures": []
65+
"excludeFunctionSignatures": [
66+
"C.reset1()",
67+
"C.reset2()"
68+
]
5469
},
5570
"chainConfig": {
5671
"codeSizeCheckDisabled": true,
5772
"cheatCodes": {
5873
"cheatCodesEnabled": true,
5974
"enableFFI": false
6075
},
61-
"skipAccountChecks": true
76+
"skipAccountChecks": true,
77+
"forkConfig": {
78+
"forkModeEnabled": false,
79+
"rpcUrl": "",
80+
"rpcBlock": 1,
81+
"poolSize": 20
82+
}
6283
}
6384
},
6485
"compilation": {
@@ -70,6 +91,11 @@
7091
"args": []
7192
}
7293
},
94+
"slither": {
95+
"useSlither": true,
96+
"cachePath": "slither_results.json",
97+
"args": []
98+
},
7399
"logging": {
74100
"level": "info",
75101
"logDirectory": "",

0 commit comments

Comments
 (0)