aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/Spec.hs10
-rw-r--r--test/example_packages/circular_example/.gitignore (renamed from circular_example/.gitignore)0
-rw-r--r--test/example_packages/circular_example/fpm.toml (renamed from circular_example/fpm.toml)0
-rw-r--r--test/example_packages/circular_example/src/greet_m.f90 (renamed from circular_example/src/greet_m.f90)0
-rw-r--r--test/example_packages/circular_example/tests/main.f90 (renamed from circular_example/tests/main.f90)0
-rw-r--r--test/example_packages/circular_test/.gitignore (renamed from circular_test/.gitignore)0
-rw-r--r--test/example_packages/circular_test/fpm.toml (renamed from circular_test/fpm.toml)0
-rw-r--r--test/example_packages/circular_test/src/hello_test.f90 (renamed from circular_test/src/hello_test.f90)0
-rw-r--r--test/example_packages/hello_complex/.gitignore (renamed from hello_complex/.gitignore)0
-rw-r--r--test/example_packages/hello_complex/apps/say_goodbye/say_goodbye.f90 (renamed from hello_complex/apps/say_goodbye/say_goodbye.f90)0
-rw-r--r--test/example_packages/hello_complex/apps/say_hello/say_hello.f90 (renamed from hello_complex/apps/say_hello/say_hello.f90)0
-rw-r--r--test/example_packages/hello_complex/fpm.toml (renamed from hello_complex/fpm.toml)0
-rw-r--r--test/example_packages/hello_complex/source/farewell_m.f90 (renamed from hello_complex/source/farewell_m.f90)0
-rw-r--r--test/example_packages/hello_complex/source/greet_m.f90 (renamed from hello_complex/source/greet_m.f90)0
-rw-r--r--test/example_packages/hello_complex/tests/farewell/farewell_test.f90 (renamed from hello_complex/tests/farewell/farewell_test.f90)0
-rw-r--r--test/example_packages/hello_complex/tests/greet/greet_test.f90 (renamed from hello_complex/tests/greet/greet_test.f90)0
-rw-r--r--test/example_packages/hello_fpm/.gitignore (renamed from hello_fpm/.gitignore)0
-rw-r--r--test/example_packages/hello_fpm/app/main.f90 (renamed from hello_fpm/app/main.f90)0
-rw-r--r--test/example_packages/hello_fpm/fpm.toml (renamed from hello_fpm/fpm.toml)0
-rw-r--r--test/example_packages/hello_world/.gitignore (renamed from hello_world/.gitignore)0
-rw-r--r--test/example_packages/hello_world/app/main.f90 (renamed from hello_world/app/main.f90)0
-rw-r--r--test/example_packages/hello_world/fpm.toml (renamed from hello_world/fpm.toml)0
22 files changed, 6 insertions, 4 deletions
diff --git a/test/Spec.hs b/test/Spec.hs
index 2808af9..604d8af 100644
--- a/test/Spec.hs
+++ b/test/Spec.hs
@@ -5,6 +5,8 @@ import Fpm ( Arguments(..)
)
import System.Directory ( withCurrentDirectory )
+example_path = "test" </> "example_packages"
+
main :: IO ()
main = do
testHelloWorld
@@ -14,16 +16,16 @@ main = do
testHelloWorld :: IO ()
testHelloWorld =
- withCurrentDirectory "hello_world" $ start $ Arguments Run False
+ withCurrentDirectory (example_path </> "hello_world") $ start $ Arguments Run False
testHelloComplex :: IO ()
testHelloComplex =
- withCurrentDirectory "hello_complex" $ start $ Arguments Test False
+ withCurrentDirectory (example_path </> "hello_complex") $ start $ Arguments Test False
testHelloFpm :: IO ()
testHelloFpm =
- withCurrentDirectory "hello_fpm" $ start $ Arguments Run False
+ withCurrentDirectory (example_path </> "hello_fpm") $ start $ Arguments Run False
testCircular :: IO ()
testCircular =
- withCurrentDirectory "circular_example" $ start $ Arguments Test False
+ withCurrentDirectory (example_path </> "circular_example") $ start $ Arguments Test False
diff --git a/circular_example/.gitignore b/test/example_packages/circular_example/.gitignore
index a007fea..a007fea 100644
--- a/circular_example/.gitignore
+++ b/test/example_packages/circular_example/.gitignore
diff --git a/circular_example/fpm.toml b/test/example_packages/circular_example/fpm.toml
index 034ec57..034ec57 100644
--- a/circular_example/fpm.toml
+++ b/test/example_packages/circular_example/fpm.toml
diff --git a/circular_example/src/greet_m.f90 b/test/example_packages/circular_example/src/greet_m.f90
index 2372f9a..2372f9a 100644
--- a/circular_example/src/greet_m.f90
+++ b/test/example_packages/circular_example/src/greet_m.f90
diff --git a/circular_example/tests/main.f90 b/test/example_packages/circular_example/tests/main.f90
index 5b7d803..5b7d803 100644
--- a/circular_example/tests/main.f90
+++ b/test/example_packages/circular_example/tests/main.f90
diff --git a/circular_test/.gitignore b/test/example_packages/circular_test/.gitignore
index a007fea..a007fea 100644
--- a/circular_test/.gitignore
+++ b/test/example_packages/circular_test/.gitignore
diff --git a/circular_test/fpm.toml b/test/example_packages/circular_test/fpm.toml
index 56cfa2e..56cfa2e 100644
--- a/circular_test/fpm.toml
+++ b/test/example_packages/circular_test/fpm.toml
diff --git a/circular_test/src/hello_test.f90 b/test/example_packages/circular_test/src/hello_test.f90
index 5a591c6..5a591c6 100644
--- a/circular_test/src/hello_test.f90
+++ b/test/example_packages/circular_test/src/hello_test.f90
diff --git a/hello_complex/.gitignore b/test/example_packages/hello_complex/.gitignore
index a007fea..a007fea 100644
--- a/hello_complex/.gitignore
+++ b/test/example_packages/hello_complex/.gitignore
diff --git a/hello_complex/apps/say_goodbye/say_goodbye.f90 b/test/example_packages/hello_complex/apps/say_goodbye/say_goodbye.f90
index 6966e79..6966e79 100644
--- a/hello_complex/apps/say_goodbye/say_goodbye.f90
+++ b/test/example_packages/hello_complex/apps/say_goodbye/say_goodbye.f90
diff --git a/hello_complex/apps/say_hello/say_hello.f90 b/test/example_packages/hello_complex/apps/say_hello/say_hello.f90
index cc648f2..cc648f2 100644
--- a/hello_complex/apps/say_hello/say_hello.f90
+++ b/test/example_packages/hello_complex/apps/say_hello/say_hello.f90
diff --git a/hello_complex/fpm.toml b/test/example_packages/hello_complex/fpm.toml
index d185745..d185745 100644
--- a/hello_complex/fpm.toml
+++ b/test/example_packages/hello_complex/fpm.toml
diff --git a/hello_complex/source/farewell_m.f90 b/test/example_packages/hello_complex/source/farewell_m.f90
index 9fc75b9..9fc75b9 100644
--- a/hello_complex/source/farewell_m.f90
+++ b/test/example_packages/hello_complex/source/farewell_m.f90
diff --git a/hello_complex/source/greet_m.f90 b/test/example_packages/hello_complex/source/greet_m.f90
index 2372f9a..2372f9a 100644
--- a/hello_complex/source/greet_m.f90
+++ b/test/example_packages/hello_complex/source/greet_m.f90
diff --git a/hello_complex/tests/farewell/farewell_test.f90 b/test/example_packages/hello_complex/tests/farewell/farewell_test.f90
index 0f21b18..0f21b18 100644
--- a/hello_complex/tests/farewell/farewell_test.f90
+++ b/test/example_packages/hello_complex/tests/farewell/farewell_test.f90
diff --git a/hello_complex/tests/greet/greet_test.f90 b/test/example_packages/hello_complex/tests/greet/greet_test.f90
index 41fa508..41fa508 100644
--- a/hello_complex/tests/greet/greet_test.f90
+++ b/test/example_packages/hello_complex/tests/greet/greet_test.f90
diff --git a/hello_fpm/.gitignore b/test/example_packages/hello_fpm/.gitignore
index a007fea..a007fea 100644
--- a/hello_fpm/.gitignore
+++ b/test/example_packages/hello_fpm/.gitignore
diff --git a/hello_fpm/app/main.f90 b/test/example_packages/hello_fpm/app/main.f90
index 5df6d64..5df6d64 100644
--- a/hello_fpm/app/main.f90
+++ b/test/example_packages/hello_fpm/app/main.f90
diff --git a/hello_fpm/fpm.toml b/test/example_packages/hello_fpm/fpm.toml
index d94d904..d94d904 100644
--- a/hello_fpm/fpm.toml
+++ b/test/example_packages/hello_fpm/fpm.toml
diff --git a/hello_world/.gitignore b/test/example_packages/hello_world/.gitignore
index a007fea..a007fea 100644
--- a/hello_world/.gitignore
+++ b/test/example_packages/hello_world/.gitignore
diff --git a/hello_world/app/main.f90 b/test/example_packages/hello_world/app/main.f90
index d16022b..d16022b 100644
--- a/hello_world/app/main.f90
+++ b/test/example_packages/hello_world/app/main.f90
diff --git a/hello_world/fpm.toml b/test/example_packages/hello_world/fpm.toml
index b80e8d1..b80e8d1 100644
--- a/hello_world/fpm.toml
+++ b/test/example_packages/hello_world/fpm.toml