diff options
Diffstat (limited to 'bootstrap/unit_test/ModuleToCompileInfoTest.hs')
-rw-r--r-- | bootstrap/unit_test/ModuleToCompileInfoTest.hs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/bootstrap/unit_test/ModuleToCompileInfoTest.hs b/bootstrap/unit_test/ModuleToCompileInfoTest.hs index 5a1f0a8..08cd67c 100644 --- a/bootstrap/unit_test/ModuleToCompileInfoTest.hs +++ b/bootstrap/unit_test/ModuleToCompileInfoTest.hs @@ -3,7 +3,8 @@ module ModuleToCompileInfoTest ) where -import BuildModel ( CompileTimeInfo(..) +import BuildModel ( AvailableModule(..) + , CompileTimeInfo(..) , Source(..) , constructCompileTimeInfo ) @@ -43,10 +44,12 @@ exampleModule = Module moduleSourceFileName' :: FilePath moduleSourceFileName' = "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" |