aboutsummaryrefslogtreecommitdiff
path: root/test/Spec.hs
blob: ccb3b24ffea90f6a4b249572bd3d6b0b3c2a60b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import           Development.Shake.FilePath     ( (</>) )
import           Fpm                            ( Arguments(..)
                                                , Command(..)
                                                , start
                                                )
import           System.Directory               ( withCurrentDirectory )

main :: IO ()
main = do
  testExampleProject

testExampleProject :: IO ()
testExampleProject =
  withCurrentDirectory "example_project" $ start $ Arguments Build False

testHelloWorld :: IO ()
testHelloWorld =
  withCurrentDirectory "hello_world" $ start $ Arguments Run False