aboutsummaryrefslogtreecommitdiff
path: root/test/Spec.hs
diff options
context:
space:
mode:
Diffstat (limited to 'test/Spec.hs')
-rw-r--r--test/Spec.hs19
1 files changed, 5 insertions, 14 deletions
diff --git a/test/Spec.hs b/test/Spec.hs
index c9ec08c..fe6f99c 100644
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -1,20 +1,11 @@
import Development.Shake.FilePath ( (</>) )
+import System.Directory ( withCurrentDirectory )
import System.Process ( callCommand )
main :: IO ()
main = do
- someFunc
- someFunc2
+ testExampleProject
-someFunc :: IO ()
-someFunc = do
- putStrLn "someFunc"
- a <- callCommand "gfortran test/test1.f90 -o test1"
- a <- callCommand $ "." </> "test1"
- return ()
-
-someFunc2 :: IO ()
-someFunc2 = do
- putStrLn "example"
- a <- callCommand "cd example_project && stack run -- build"
- return ()
+testExampleProject :: IO ()
+testExampleProject =
+ withCurrentDirectory "example_project" $ callCommand "stack run -- build"