aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Richardson <everythingfunctional@protonmail.com>2020-10-14 10:53:18 -0500
committerBrad Richardson <everythingfunctional@protonmail.com>2020-10-14 10:53:18 -0500
commit3b99bdf29c1ce031db897f142feb680bc8e9b040 (patch)
treef641913549926c4714993ef447e3a7580cda3e42
parentb5b16cf826d468e79b4087500192a4a9e07c140f (diff)
downloadfpm-3b99bdf29c1ce031db897f142feb680bc8e9b040.tar.gz
fpm-3b99bdf29c1ce031db897f142feb680bc8e9b040.zip
stub out a unit test
-rw-r--r--bootstrap/package.yaml11
-rw-r--r--bootstrap/stack.yaml6
-rw-r--r--bootstrap/stack.yaml.lock23
-rw-r--r--bootstrap/unit_test/SourceConstructionTest.hs11
-rw-r--r--bootstrap/unit_test/Trimmer.hs1
5 files changed, 49 insertions, 3 deletions
diff --git a/bootstrap/package.yaml b/bootstrap/package.yaml
index ec5ecf2..26a7f74 100644
--- a/bootstrap/package.yaml
+++ b/bootstrap/package.yaml
@@ -58,3 +58,14 @@ tests:
- -with-rtsopts=-N
dependencies:
- fpm
+ fpm-unittest:
+ main: Trimmer.hs
+ source-dirs: unit_test
+ ghc-options:
+ - -threaded
+ - -rtsopts
+ - -with-rtsopts=-N
+ dependencies:
+ - fpm
+ - hedge
+ - hedge-trimmer
diff --git a/bootstrap/stack.yaml b/bootstrap/stack.yaml
index 68dcaaa..6ad6693 100644
--- a/bootstrap/stack.yaml
+++ b/bootstrap/stack.yaml
@@ -42,6 +42,12 @@ packages:
extra-deps:
- git: https://github.com/kowainik/tomland.git
commit: 536a5e6ffb148d0dd4e4c4b120913a6744097676
+- git: https://gitlab.com/everythingfunctional/hedge.git
+ commit: 597b6475fd0b88369020e0de1de5885546d572f8
+ subdirs:
+ - .
+ - hedge-trimmer
+- quickcheck-with-counterexamples-1.1
# Override default flag values for local packages and extra-deps
# flags: {}
diff --git a/bootstrap/stack.yaml.lock b/bootstrap/stack.yaml.lock
index 15bfc22..3d42df2 100644
--- a/bootstrap/stack.yaml.lock
+++ b/bootstrap/stack.yaml.lock
@@ -5,9 +5,6 @@
packages:
- completed:
- cabal-file:
- size: 6802
- sha256: 85568a0280115b6e9a9f263cf4cfc72ad5a6eaeb2412875816adb82ea6a405bc
name: tomland
version: 1.3.0.0
git: https://github.com/kowainik/tomland.git
@@ -18,6 +15,26 @@ packages:
original:
git: https://github.com/kowainik/tomland.git
commit: 536a5e6ffb148d0dd4e4c4b120913a6744097676
+- completed:
+ subdir: hedge-trimmer
+ name: hedge-trimmer
+ version: 1.0.0.0
+ git: https://gitlab.com/everythingfunctional/hedge.git
+ pantry-tree:
+ size: 226
+ sha256: 19972f5b81c7627d6b66c852dfb7e0e67b3931ed4f418663c152717ce4ea267e
+ commit: 597b6475fd0b88369020e0de1de5885546d572f8
+ original:
+ subdir: hedge-trimmer
+ git: https://gitlab.com/everythingfunctional/hedge.git
+ commit: 597b6475fd0b88369020e0de1de5885546d572f8
+- completed:
+ hackage: quickcheck-with-counterexamples-1.1@sha256:14173d181172e6df51b617404945121fcf8c94ead238056efd9322648c4cff21,1688
+ pantry-tree:
+ size: 724
+ sha256: fb7f2d1e413554d40a50748b511d50789378e5ef477c9a68c5df44ee79f1ddef
+ original:
+ hackage: quickcheck-with-counterexamples-1.1
snapshots:
- completed:
size: 524996
diff --git a/bootstrap/unit_test/SourceConstructionTest.hs b/bootstrap/unit_test/SourceConstructionTest.hs
new file mode 100644
index 0000000..a3fdf68
--- /dev/null
+++ b/bootstrap/unit_test/SourceConstructionTest.hs
@@ -0,0 +1,11 @@
+module SourceConstructionTest
+ ( test
+ )
+where
+
+import Hedge ( Test
+ , describe
+ )
+
+test :: IO (Test ())
+test = return $ describe "something" []
diff --git a/bootstrap/unit_test/Trimmer.hs b/bootstrap/unit_test/Trimmer.hs
new file mode 100644
index 0000000..4e0f91d
--- /dev/null
+++ b/bootstrap/unit_test/Trimmer.hs
@@ -0,0 +1 @@
+{-# OPTIONS_GHC -F -pgmF hedge-trimmer #-}