aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test/Spec.hs
diff options
context:
space:
mode:
authorSebastian Ehlert <28669218+awvwgk@users.noreply.github.com>2020-12-10 18:45:22 +0100
committerGitHub <noreply@github.com>2020-12-10 18:45:22 +0100
commit6e6e6b52a464b873ecaddbdc094cf6344c85f97a (patch)
tree1268256cb5dbbc3a1e052e7395bb42ab3c6713ac /bootstrap/test/Spec.hs
parent63a565fab4300e43fbd2d06b23d3c1f2a4e1976e (diff)
parentbc9638225ad7b696614e1c47335ec390ea268088 (diff)
downloadfpm-6e6e6b52a464b873ecaddbdc094cf6344c85f97a.tar.gz
fpm-6e6e6b52a464b873ecaddbdc094cf6344c85f97a.zip
Merge pull request #280 from awvwgk/example
Create specification for example section and implement example applications for Fortran and Haskell version
Diffstat (limited to 'bootstrap/test/Spec.hs')
-rw-r--r--bootstrap/test/Spec.hs15
1 files changed, 15 insertions, 0 deletions
diff --git a/bootstrap/test/Spec.hs b/bootstrap/test/Spec.hs
index 215024d..6e9daa2 100644
--- a/bootstrap/test/Spec.hs
+++ b/bootstrap/test/Spec.hs
@@ -20,6 +20,7 @@ testHelloWorld :: IO ()
testHelloWorld =
withCurrentDirectory (example_path </> "hello_world") $ start $ Run
{ runRelease = False
+ , runExample = False
, runCompiler = "gfortran"
, runFlags = []
, runRunner = Nothing
@@ -42,6 +43,19 @@ testHelloFpm :: IO ()
testHelloFpm =
withCurrentDirectory (example_path </> "hello_fpm") $ start $ Run
{ runRelease = False
+ , runExample = False
+ , runCompiler = "gfortran"
+ , runFlags = []
+ , runRunner = Nothing
+ , runTarget = Nothing
+ , runArgs = Nothing
+ }
+
+testWithExamples :: IO ()
+testWithExamples =
+ withCurrentDirectory (example_path </> "with_examples") $ start $ Run
+ { runRelease = False
+ , runExample = True
, runCompiler = "gfortran"
, runFlags = []
, runRunner = Nothing
@@ -72,6 +86,7 @@ testMakefileComplex :: IO ()
testMakefileComplex =
withCurrentDirectory (example_path </> "makefile_complex") $ start $ Run
{ runRelease = False
+ , runExample = False
, runCompiler = "gfortran"
, runFlags = []
, runRunner = Nothing