diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2020-12-09 11:19:26 +0100 |
---|---|---|
committer | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2020-12-10 18:14:26 +0100 |
commit | 39a30ad5eae3628e788ae944ccf698411140dee3 (patch) | |
tree | 675eaca57e27094a919b32b847f5502cf5d2da09 /bootstrap/test | |
parent | 4eeab74dd007d9476f3b862f79c623e457a7dad1 (diff) | |
download | fpm-39a30ad5eae3628e788ae944ccf698411140dee3.tar.gz fpm-39a30ad5eae3628e788ae944ccf698411140dee3.zip |
Implement example executables also for Haskell fpm
Diffstat (limited to 'bootstrap/test')
-rw-r--r-- | bootstrap/test/Spec.hs | 15 |
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 |