Skip to content

Commit

Permalink
minor tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjitjhala committed Jul 24, 2015
1 parent 17c6d24 commit 3e8ef20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tests/test.hs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,7 @@ mkTest code dir file
assertEqual "" True True
else do
createDirectoryIfMissing True $ takeDirectory log
testPath <- getExecutablePath
let liquid = (takeDirectory $ takeDirectory testPath) </> "liquid" </> "liquid"
liquid <- binPath "liquid"
withFile log WriteMode $ \h -> do
let cmd = testCmd liquid dir file smt opts
(_,_,_,ph) <- createProcess $ (shell cmd) {std_out = UseHandle h, std_err = UseHandle h}
Expand All @@ -129,6 +128,10 @@ mkTest code dir file
test = dir </> file
log = "tests/logs/cur" </> test <.> "log"

binPath pkgName = do
testPath <- getExecutablePath
return $ (takeDirectory $ takeDirectory testPath) </> pkgName </> pkgName

knownToFail CVC4 = [ "tests/pos/linspace.hs", "tests/pos/RealProps.hs", "tests/pos/RealProps1.hs", "tests/pos/initarray.hs"
, "tests/pos/maps.hs", "tests/pos/maps1.hs", "tests/neg/maps.hs"
, "tests/pos/Product.hs" ]
Expand Down

0 comments on commit 3e8ef20

Please sign in to comment.