Skip to content

Commit 0e13bc4

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

File tree

2 files changed

+18
-9
lines changed

2 files changed

+18
-9
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: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
"testLimit": 0,
77
"shrinkLimit": 5000,
88
"callSequenceLength": 100,
9+
"pruneFrequency": 5,
910
"corpusDirectory": "",
1011
"coverageEnabled": true,
1112
"coverageFormats": ["html", "lcov"],
13+
"revertReporterEnabled": false,
1214
"targetContracts": [],
1315
"predeployedContracts": {},
1416
"targetContractsBalances": [],
@@ -17,17 +19,16 @@
1719
"senderAddresses": ["0x10000", "0x20000", "0x30000"],
1820
"blockNumberDelayMax": 60480,
1921
"blockTimestampDelayMax": 604800,
20-
"blockGasLimit": 125000000,
2122
"transactionGasLimit": 12500000,
2223
"testing": {
2324
"stopOnFailedTest": true,
2425
"stopOnFailedContractMatching": false,
2526
"stopOnNoTests": true,
2627
"testAllContracts": false,
27-
"traceAll": false,
28+
"testViewMethods": true,
29+
"verbosity": 1,
2830
"assertionTesting": {
2931
"enabled": true,
30-
"testViewMethods": false,
3132
"panicCodeConfig": {
3233
"failOnCompilerInsertedPanic": false,
3334
"failOnAssertion": true,
@@ -50,15 +51,21 @@
5051
"testPrefixes": ["optimize_"]
5152
},
5253
"targetFunctionSignatures": [],
53-
"excludeFunctionSignatures": []
54+
"excludeFunctionSignatures": ["C.reset1()", "C.reset2()"]
5455
},
5556
"chainConfig": {
5657
"codeSizeCheckDisabled": true,
5758
"cheatCodes": {
5859
"cheatCodesEnabled": true,
5960
"enableFFI": false
6061
},
61-
"skipAccountChecks": true
62+
"skipAccountChecks": true,
63+
"forkConfig": {
64+
"forkModeEnabled": false,
65+
"rpcUrl": "",
66+
"rpcBlock": 1,
67+
"poolSize": 20
68+
}
6269
}
6370
},
6471
"compilation": {
@@ -70,6 +77,11 @@
7077
"args": []
7178
}
7279
},
80+
"slither": {
81+
"useSlither": true,
82+
"cachePath": "slither_results.json",
83+
"args": []
84+
},
7385
"logging": {
7486
"level": "info",
7587
"logDirectory": "",

0 commit comments

Comments
 (0)