diff options
author | Sebastian Ehlert <28669218+awvwgk@users.noreply.github.com> | 2021-03-31 16:13:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-31 16:13:58 +0200 |
commit | d9dc9f2ae5f196c15a7d35cddabc805c40ff86ce (patch) | |
tree | 6f61952c630b023edec391daae2747063703d489 /bootstrap/test | |
parent | 5422ec57f4081bf2225f5dde5cc07999bf8010f9 (diff) | |
download | fpm-d9dc9f2ae5f196c15a7d35cddabc805c40ff86ce.tar.gz fpm-d9dc9f2ae5f196c15a7d35cddabc805c40ff86ce.zip |
Phase out Haskell fpm (#420)
- remove bootstrap directory from repository
- remove stack-build from CI workflow
- move Fortran fpm to project root
- adjust install script and bootstrap instructions
Diffstat (limited to 'bootstrap/test')
-rw-r--r-- | bootstrap/test/Spec.hs | 103 | ||||
l--------- | bootstrap/test/example_packages | 1 |
2 files changed, 0 insertions, 104 deletions
diff --git a/bootstrap/test/Spec.hs b/bootstrap/test/Spec.hs deleted file mode 100644 index 6e9daa2..0000000 --- a/bootstrap/test/Spec.hs +++ /dev/null @@ -1,103 +0,0 @@ -import Development.Shake.FilePath ( (</>) ) -import Fpm ( Arguments(..) - , start - ) -import System.Directory ( withCurrentDirectory ) - -example_path = "test" </> "example_packages" - -main :: IO () -main = do - testHelloWorld - testHelloComplex - testHelloFpm - testCircular - testWithMakefile - testMakefileComplex - testSubmodule - -testHelloWorld :: IO () -testHelloWorld = - withCurrentDirectory (example_path </> "hello_world") $ start $ Run - { runRelease = False - , runExample = False - , runCompiler = "gfortran" - , runFlags = [] - , runRunner = Nothing - , runTarget = Nothing - , runArgs = Nothing - } - -testHelloComplex :: IO () -testHelloComplex = - withCurrentDirectory (example_path </> "hello_complex") $ start $ Test - { testRelease = False - , testCompiler = "gfortran" - , testFlags = [] - , testRunner = Nothing - , testTarget = Nothing - , testArgs = Nothing - } - -testHelloFpm :: IO () -testHelloFpm = - withCurrentDirectory (example_path </> "hello_fpm") $ start $ Run - { runRelease = False - , runExample = False - , runCompiler = "gfortran" - , runFlags = [] - , runRunner = Nothing - , runTarget = Nothing - , runArgs = Nothing - } - -testWithExamples :: IO () -testWithExamples = - withCurrentDirectory (example_path </> "with_examples") $ start $ Run - { runRelease = False - , runExample = True - , runCompiler = "gfortran" - , runFlags = [] - , runRunner = Nothing - , runTarget = Nothing - , runArgs = Nothing - } - -testCircular :: IO () -testCircular = - withCurrentDirectory (example_path </> "circular_example") $ start $ Test - { testRelease = False - , testCompiler = "gfortran" - , testFlags = [] - , testRunner = Nothing - , testTarget = Nothing - , testArgs = Nothing - } - -testWithMakefile :: IO () -testWithMakefile = - withCurrentDirectory (example_path </> "with_makefile") $ start $ Build - { buildRelease = False - , buildCompiler = "gfortran" - , buildFlags = [] - } - -testMakefileComplex :: IO () -testMakefileComplex = - withCurrentDirectory (example_path </> "makefile_complex") $ start $ Run - { runRelease = False - , runExample = False - , runCompiler = "gfortran" - , runFlags = [] - , runRunner = Nothing - , runTarget = Nothing - , runArgs = Nothing - } - -testSubmodule :: IO () -testSubmodule = - withCurrentDirectory (example_path </> "submodules") $ start $ Build - { buildRelease = False - , buildCompiler = "gfortran" - , buildFlags = [] - } diff --git a/bootstrap/test/example_packages b/bootstrap/test/example_packages deleted file mode 120000 index b7c12dc..0000000 --- a/bootstrap/test/example_packages +++ /dev/null @@ -1 +0,0 @@ -../../example_packages
\ No newline at end of file |