aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Richardson <brichardson@structint.com>2020-04-13 19:16:43 -0500
committerBrad Richardson <brichardson@structint.com>2020-04-29 19:08:05 -0700
commiteafba7a95131c34821c7bb725f1e26552c01271b (patch)
tree6a38af171c6dffb67629a1593445480743d989f9
parent32af0dea4bfa1aa30525048ddcd91f74727e2a52 (diff)
downloadfpm-eafba7a95131c34821c7bb725f1e26552c01271b.tar.gz
fpm-eafba7a95131c34821c7bb725f1e26552c01271b.zip
Create simplest possible hello_world project
-rw-r--r--hello_world/.gitignore1
-rw-r--r--hello_world/app/main.f903
-rw-r--r--hello_world/fpm.toml2
-rw-r--r--test/Spec.hs4
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"