Skip to content

Commit

Permalink
More fixing up tests...
Browse files Browse the repository at this point in the history
  • Loading branch information
Lee Pike committed Dec 31, 2011
1 parent 317f067 commit aadab6e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Examples/Examples.hs
Expand Up @@ -10,8 +10,9 @@ module Examples ( examples ) where

import qualified Prelude as P
import Language.Copilot hiding (even, odd)
import Copilot.Compile.C99
--import Copilot.Compile.C99
import qualified Copilot.Tools.CBMC as C

--------------------------------------------------------------------------------

--
Expand Down
8 changes: 7 additions & 1 deletion Examples/Test.hs
Expand Up @@ -6,7 +6,10 @@

module Main where

import System.Directory (removeDirectoryRecursive, doesDirectoryExist)
import System.Directory ( removeDirectoryRecursive
, doesDirectoryExist
, doesFileExist
, removeFile )
import qualified Copilot.Compile.C99 as C99
import qualified Copilot.Compile.SBV as SBV
import Control.Monad (when)
Expand Down Expand Up @@ -99,5 +102,8 @@ cleanup = do
when b0 (removeDirectoryRecursive SBV.sbvDirName)
b1 <- doesDirectoryExist C99.c99DirName
when b1 (removeDirectoryRecursive C99.c99DirName)
let cbmc = "cbmc_driver.c"
b2 <- doesFileExist cbmc
when b2 (removeFile cbmc)

--------------------------------------------------------------------------------
1 change: 0 additions & 1 deletion copilot.cabal
Expand Up @@ -48,6 +48,5 @@ executable copilot-regression
, copilot-sbv
, copilot-cbmc
, copilot-c99 >= 0.2

, directory >= 1.1
, random

0 comments on commit aadab6e

Please sign in to comment.