diff options
-rw-r--r-- | hello_world/.gitignore | 1 | ||||
-rw-r--r-- | hello_world/app/main.f90 | 3 | ||||
-rw-r--r-- | hello_world/fpm.toml | 2 | ||||
-rw-r--r-- | test/Spec.hs | 4 |
4 files changed, 10 insertions, 0 deletions
diff --git a/hello_world/.gitignore b/hello_world/.gitignore new file mode 100644 index 0000000..a007fea --- /dev/null +++ b/hello_world/.gitignore @@ -0,0 +1 @@ +build/* diff --git a/hello_world/app/main.f90 b/hello_world/app/main.f90 new file mode 100644 index 0000000..d16022b --- /dev/null +++ b/hello_world/app/main.f90 @@ -0,0 +1,3 @@ +program hello_world + print *, "Hello, World!" +end program hello_world diff --git a/hello_world/fpm.toml b/hello_world/fpm.toml new file mode 100644 index 0000000..d715850 --- /dev/null +++ b/hello_world/fpm.toml @@ -0,0 +1,2 @@ +name = "hello_world" +compiler = "gfortran" diff --git a/test/Spec.hs b/test/Spec.hs index fe6f99c..2fd2364 100644 --- a/test/Spec.hs +++ b/test/Spec.hs @@ -9,3 +9,7 @@ main = do testExampleProject :: IO () testExampleProject = withCurrentDirectory "example_project" $ callCommand "stack run -- build" + +testHelloWorld :: IO () +testHelloWorld = + withCurrentDirectory "hello_world" $ callCommand "stack run -- run" |