Skip to content

Commit 5b1d14e

Browse files
more medusa configs
1 parent f4ffffa commit 5b1d14e

File tree

5 files changed

+87
-3
lines changed

5 files changed

+87
-3
lines changed

.github/workflows/medusa.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,28 +84,28 @@ jobs:
8484
- name: Multi
8585
workdir: program-analysis/echidna/example/
8686
files: multi.sol
87+
contract: C
8788
config: filter.yaml
8889
outcome: failure
8990
expected: 'echidna_state4:\s*failed'
9091
- name: Assert
9192
workdir: program-analysis/echidna/example/
9293
files: assert.sol
9394
config: assert.yaml
95+
contract: Incrementor
9496
outcome: failure
9597
expected: 'inc(uint256):\s*failed'
9698
- name: PopsicleBroken
9799
workdir: program-analysis/echidna/example/
98100
files: PopsicleBroken.sol
99101
solc-version: 0.8.4
100-
config: Popsicle.yaml
101102
contract: PopsicleBroken
102103
outcome: failure
103104
expected: '\"PopsicleBroken.totalBalanceAfterTransferIsPreserved(address,uint256)\" resulted in an assertion failure after the following call sequence'
104105
- name: PopsicleFixed
105106
workdir: program-analysis/echidna/example/
106107
files: PopsicleFixed.sol
107108
solc-version: 0.8.4
108-
config: Popsicle.yaml
109109
contract: PopsicleFixed
110110
outcome: success
111111
expected: '\[PASSED\] Assertion Test: PopsicleFixed.totalBalanceAfterTransferIsPreserved(address,uint256)'
@@ -171,7 +171,7 @@ jobs:
171171
run: |
172172
solc-select install ${{ matrix.solc-version || '0.8.0' }}
173173
solc-select use ${{ matrix.solc-version || '0.8.0' }}
174-
medusa fuzz --compilation-target ${{ matrix.files }} --target-contracts ${{ matrix.contract }} --no-color --config medusa.json > ${{ matrix.files }}.out || true
174+
medusa fuzz --compilation-target ${{ matrix.files }} --target-contracts ${{ matrix.contract }} --no-color --test-limit 10000 --config medusa.json > ${{ matrix.files }}.out || true
175175
176176
- name: Verify that the output is correct
177177
working-directory: ${{ matrix.workdir }}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fuzzing": {
3+
"testing": {
4+
"propertyTesting": {
5+
"enabled": true,
6+
"testPrefixes": [
7+
"echidna_"
8+
]
9+
}
10+
}
11+
},
12+
"compilation": {
13+
"platform": "crytic-compile",
14+
"platformConfig": {
15+
"target": ".",
16+
"solcVersion": "",
17+
"exportDirectory": "",
18+
"args": []
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fuzzing": {
3+
"testing": {
4+
"propertyTesting": {
5+
"enabled": true,
6+
"testPrefixes": [
7+
"echidna_"
8+
]
9+
}
10+
}
11+
},
12+
"compilation": {
13+
"platform": "crytic-compile",
14+
"platformConfig": {
15+
"target": ".",
16+
"solcVersion": "",
17+
"exportDirectory": "",
18+
"args": []
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fuzzing": {
3+
"testing": {
4+
"propertyTesting": {
5+
"enabled": true,
6+
"testPrefixes": [
7+
"echidna_"
8+
]
9+
}
10+
}
11+
},
12+
"compilation": {
13+
"platform": "crytic-compile",
14+
"platformConfig": {
15+
"target": ".",
16+
"solcVersion": "",
17+
"exportDirectory": "",
18+
"args": []
19+
}
20+
}
21+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"fuzzing": {
3+
"testing": {
4+
"propertyTesting": {
5+
"enabled": true,
6+
"testPrefixes": [
7+
"echidna_"
8+
]
9+
}
10+
}
11+
},
12+
"compilation": {
13+
"platform": "crytic-compile",
14+
"platformConfig": {
15+
"target": ".",
16+
"solcVersion": "",
17+
"exportDirectory": "",
18+
"args": []
19+
}
20+
}
21+
}

0 commit comments

Comments
 (0)