aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/unit_test/ProgramToCompileInfoTest.hs
diff options
context:
space:
mode:
authorLaurence Kedward <laurence.kedward@bristol.ac.uk>2020-12-07 11:08:17 +0000
committerGitHub <noreply@github.com>2020-12-07 11:08:17 +0000
commited6222b080d56c7768ec413bef631520a553ee42 (patch)
tree087135218a9313bd4e9d7a813743075f43957798 /bootstrap/unit_test/ProgramToCompileInfoTest.hs
parent7f1611d55d3fd431401008121a3cdf93e7d3968d (diff)
parent447b4b2a39d69a19ac1a4bcae22e30372a23c859 (diff)
downloadfpm-ed6222b080d56c7768ec413bef631520a553ee42.tar.gz
fpm-ed6222b080d56c7768ec413bef631520a553ee42.zip
Merge branch 'master' into fix-window-run-test
Diffstat (limited to 'bootstrap/unit_test/ProgramToCompileInfoTest.hs')
-rw-r--r--bootstrap/unit_test/ProgramToCompileInfoTest.hs11
1 files changed, 7 insertions, 4 deletions
diff --git a/bootstrap/unit_test/ProgramToCompileInfoTest.hs b/bootstrap/unit_test/ProgramToCompileInfoTest.hs
index f17a3df..a9ad39b 100644
--- a/bootstrap/unit_test/ProgramToCompileInfoTest.hs
+++ b/bootstrap/unit_test/ProgramToCompileInfoTest.hs
@@ -3,7 +3,8 @@ module ProgramToCompileInfoTest
)
where
-import BuildModel ( CompileTimeInfo(..)
+import BuildModel ( AvailableModule(..)
+ , CompileTimeInfo(..)
, Source(..)
, constructCompileTimeInfo
)
@@ -42,10 +43,12 @@ exampleProgram = Program
programSourceFileName' :: FilePath
programSourceFileName' = "some" </> "file" </> "somewhere.f90"
-availableModules :: [String]
-availableModules = ["module1", "module3"]
+availableModules :: [AvailableModule]
+availableModules = [ AvailableModule {availableModuleName = "module1", availableModuleFile = "build_dir" </> "module1.mod"}
+ , AvailableModule {availableModuleName = "module3", availableModuleFile = "build_dir" </> "module3.mod"}
+ ]
-doCompileTimeTransformation :: (Source, [String]) -> CompileTimeInfo
+doCompileTimeTransformation :: (Source, [AvailableModule]) -> CompileTimeInfo
doCompileTimeTransformation (programSource, otherSources) =
constructCompileTimeInfo programSource otherSources "build_dir"