Skip to content

Commit 0251991

Browse files
committed
tests: test verify also with bitwuzla
1 parent ed090fc commit 0251991

File tree

2 files changed

+12
-4
lines changed

2 files changed

+12
-4
lines changed

src/test/Tests/Symbolic.hs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,21 @@ import Common (testContract', solcV, solved, verified)
55
import Echidna.Types.Worker (WorkerType(..))
66

77
symbolicTests :: TestTree
8-
symbolicTests = testGroup "Symbolic tests"
9-
[ testContract' "symbolic/verify.sol" Nothing (Just (>= solcV (0,6,9))) (Just "symbolic/verify.yaml") True SymbolicWorker
8+
symbolicTests = testGroup "Symbolic tests" $
9+
map (\conf ->
10+
testContract' "symbolic/verify.sol" Nothing (Just (>= solcV (0,6,9))) (Just conf) True SymbolicWorker
1011
[ ("simple passed", solved "simple")
1112
, ("array passed", solved "array")
1213
, ("negative passed", solved "negative")
1314
, ("close passed", solved "close")
1415
, ("far not verified", verified "far")
1516
, ("correct not verified", verified "correct")
16-
]
17+
]
18+
) ["symbolic/verify.yaml", "symbolic/verify.bitwuzla.yaml"]
19+
++ ([
1720
-- This test is commented out because it requires a specific setup where both the FuzzWorker and SymbolicWorker are used.
1821
-- If you run the symbolic worker alone, it will hang indefinitely.
1922
--, testContract' "symbolic/explore.sol" Nothing Nothing (Just "symbolic/explore.yaml") True SymbolicWorker
2023
-- [ ("f passed", solved "f")
2124
--]
22-
]
25+
] :: [TestTree])
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
testMode: assertion
2+
symExec: true
3+
symExecSMTSolver: bitwuzla
4+
workers: 0
5+
seqLen: 1

0 commit comments

Comments
 (0)