diff options
author | Brad Richardson <everythingfunctional@protonmail.com> | 2020-11-12 12:09:13 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-12 12:09:13 -0600 |
commit | 26f2fd3d3ee0cce09a880ec273a5e5f4914d8b35 (patch) | |
tree | ee62b672036ad9fe1a566b5552831dd6f44772e6 /bootstrap/test/Spec.hs | |
parent | e1af93fad218e0d81ecf0f3303e6bba0816d1bbf (diff) | |
parent | 5ae9d75cbe87590baddf6b233286b6221b74657e (diff) | |
download | fpm-26f2fd3d3ee0cce09a880ec273a5e5f4914d8b35.tar.gz fpm-26f2fd3d3ee0cce09a880ec273a5e5f4914d8b35.zip |
Merge pull request #220 from everythingfunctional/compiler_and_flags
Compiler and flags
Diffstat (limited to 'bootstrap/test/Spec.hs')
-rw-r--r-- | bootstrap/test/Spec.hs | 74 |
1 files changed, 45 insertions, 29 deletions
diff --git a/bootstrap/test/Spec.hs b/bootstrap/test/Spec.hs index 4e660e7..dfa73df 100644 --- a/bootstrap/test/Spec.hs +++ b/bootstrap/test/Spec.hs @@ -1,6 +1,5 @@ import Development.Shake.FilePath ( (</>) ) import Fpm ( Arguments(..) - , Command(..) , start ) import System.Directory ( withCurrentDirectory ) @@ -19,49 +18,66 @@ main = do testHelloWorld :: IO () testHelloWorld = - withCurrentDirectory (example_path </> "hello_world") $ start $ Arguments - (Run "") - False - "" + withCurrentDirectory (example_path </> "hello_world") $ start $ Run + { runRelease = False + , runCompiler = "gfortran" + , runFlags = [] + , runTarget = Nothing + , runArgs = Nothing + } testHelloComplex :: IO () testHelloComplex = - withCurrentDirectory (example_path </> "hello_complex") $ start $ Arguments - (Test "") - False - "" + withCurrentDirectory (example_path </> "hello_complex") $ start $ Test + { testRelease = False + , testCompiler = "gfortran" + , testFlags = [] + , testTarget = Nothing + , testArgs = Nothing + } testHelloFpm :: IO () testHelloFpm = - withCurrentDirectory (example_path </> "hello_fpm") $ start $ Arguments - (Run "") - False - "" + withCurrentDirectory (example_path </> "hello_fpm") $ start $ Run + { runRelease = False + , runCompiler = "gfortran" + , runFlags = [] + , runTarget = Nothing + , runArgs = Nothing + } testCircular :: IO () testCircular = - withCurrentDirectory (example_path </> "circular_example") $ start $ Arguments - (Test "") - False - "" + withCurrentDirectory (example_path </> "circular_example") $ start $ Test + { testRelease = False + , testCompiler = "gfortran" + , testFlags = [] + , testTarget = Nothing + , testArgs = Nothing + } testWithMakefile :: IO () testWithMakefile = - withCurrentDirectory (example_path </> "with_makefile") $ start $ Arguments - (Build) - False - "" + withCurrentDirectory (example_path </> "with_makefile") $ start $ Build + { buildRelease = False + , buildCompiler = "gfortran" + , buildFlags = [] + } testMakefileComplex :: IO () testMakefileComplex = - withCurrentDirectory (example_path </> "makefile_complex") $ start $ Arguments - (Run "") - False - "" + withCurrentDirectory (example_path </> "makefile_complex") $ start $ Run + { runRelease = False + , runCompiler = "gfortran" + , runFlags = [] + , runTarget = Nothing + , runArgs = Nothing + } testSubmodule :: IO () testSubmodule = - withCurrentDirectory (example_path </> "submodules") $ start $ Arguments - (Build) - False - "" + withCurrentDirectory (example_path </> "submodules") $ start $ Build + { buildRelease = False + , buildCompiler = "gfortran" + , buildFlags = [] + } |