diff --git a/test/EVM/Test/Utils.hs b/test/EVM/Test/Utils.hs index 1db329676..e44b75534 100644 --- a/test/EVM/Test/Utils.hs +++ b/test/EVM/Test/Utils.hs @@ -84,7 +84,7 @@ callProcessCwd cmd args cwd = do compile :: App m => ProjectType -> FilePath -> FilePath -> m (Either String BuildOutput) compile CombinedJSON _root _src = internalError "unsupported compile type: CombinedJSON" -compile _ root src = do +compile Foundry root src = do liftIO $ createDirectory (root "src") liftIO $ writeFile (root "src" "unit-tests.t.sol") =<< readFile =<< Paths.getDataFileName src liftIO $ initLib (root "lib" "tokens") ("test" "contracts" "lib" "erc20.sol") "erc20.sol" diff --git a/test/test.hs b/test/test.hs index 140859d22..c49d46cfc 100644 --- a/test/test.hs +++ b/test/test.hs @@ -1479,8 +1479,7 @@ tests = testGroup "hevm" runSolidityTest testFile "prove_add" >>= assertEqualM "test result" False runSolidityTestCustom testFile "prove_smtTimeout" (Just 1) Nothing False Nothing Foundry >>= assertEqualM "test result" False runSolidityTest testFile "prove_multi" >>= assertEqualM "test result" False - -- TODO: implement overflow checking optimizations and enable, currently this runs forever - -- runSolidityTest testFile "prove_distributivity" >>= assertEqualM "test result" False + runSolidityTest testFile "prove_distributivity" >>= assertEqualM "test result" False , test "Loop-Tests" $ do let testFile = "test/contracts/pass/loops.sol" runSolidityTestCustom testFile "prove_loop" Nothing (Just 10) False Nothing Foundry >>= assertEqualM "test result" True