diff options
author | Brad Richardson <brichardson@structint.com> | 2020-04-13 19:16:43 -0500 |
---|---|---|
committer | Brad Richardson <brichardson@structint.com> | 2020-04-29 19:08:05 -0700 |
commit | eafba7a95131c34821c7bb725f1e26552c01271b (patch) | |
tree | 6a38af171c6dffb67629a1593445480743d989f9 | |
parent | 32af0dea4bfa1aa30525048ddcd91f74727e2a52 (diff) | |
download | fpm-eafba7a95131c34821c7bb725f1e26552c01271b.tar.gz fpm-eafba7a95131c34821c7bb725f1e26552c01271b.zip |
Create simplest possible hello_world project
-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" |