aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/test
diff options
context:
space:
mode:
authorBrad Richardson <everythingfunctional@protonmail.com>2020-10-28 12:33:07 -0500
committerBrad Richardson <everythingfunctional@protonmail.com>2020-10-28 12:33:07 -0500
commit7b191a773d3a1f91131943a4ed84b285839bdf35 (patch)
tree3ecdc229226e7e90e46323239ead1981b51479db /bootstrap/test
parent9dee51cc486ae213188d8248515b5d010b976644 (diff)
downloadfpm-7b191a773d3a1f91131943a4ed84b285839bdf35.tar.gz
fpm-7b191a773d3a1f91131943a4ed84b285839bdf35.zip
Add command line options to specify the compiler
Diffstat (limited to 'bootstrap/test')
-rw-r--r--bootstrap/test/Spec.hs7
1 files changed, 7 insertions, 0 deletions
diff --git a/bootstrap/test/Spec.hs b/bootstrap/test/Spec.hs
index c1f7108..ac72b07 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
+ , runCompiler = "gfortran"
, runTarget = Nothing
, runArgs = Nothing
}
@@ -28,6 +29,7 @@ testHelloComplex :: IO ()
testHelloComplex =
withCurrentDirectory (example_path </> "hello_complex") $ start $ Test
{ testRelease = False
+ , testCompiler = "gfortran"
, testTarget = Nothing
, testArgs = Nothing
}
@@ -36,6 +38,7 @@ testHelloFpm :: IO ()
testHelloFpm =
withCurrentDirectory (example_path </> "hello_fpm") $ start $ Run
{ runRelease = False
+ , runCompiler = "gfortran"
, runTarget = Nothing
, runArgs = Nothing
}
@@ -44,6 +47,7 @@ testCircular :: IO ()
testCircular =
withCurrentDirectory (example_path </> "circular_example") $ start $ Test
{ testRelease = False
+ , testCompiler = "gfortran"
, testTarget = Nothing
, testArgs = Nothing
}
@@ -52,12 +56,14 @@ testWithMakefile :: IO ()
testWithMakefile =
withCurrentDirectory (example_path </> "with_makefile") $ start $ Build
{ buildRelease = False
+ , buildCompiler = "gfortran"
}
testMakefileComplex :: IO ()
testMakefileComplex =
withCurrentDirectory (example_path </> "makefile_complex") $ start $ Run
{ runRelease = False
+ , runCompiler = "gfortran"
, runTarget = Nothing
, runArgs = Nothing
}
@@ -66,4 +72,5 @@ testSubmodule :: IO ()
testSubmodule =
withCurrentDirectory (example_path </> "submodules") $ start $ Build
{ buildRelease = False
+ , buildCompiler = "gfortran"
}