on master help sign in
Get in-place tests working "properly"
0d5fc85Bryan O'Sullivan
text.cabal+16−5
@@ -149,16 +149,15 @@ library
149 cpp-options: -DINTEGER_GMP
149 cpp-options: -DINTEGER_GMP
150 build-depends: integer-gmp >= 0.2
150 build-depends: integer-gmp >= 0.2
151
151
152−
153 if impl(ghc >= 6.9) && impl(ghc < 6.11)
152 if impl(ghc >= 6.9) && impl(ghc < 6.11)
154 cpp-options: -DINTEGER_GMP
153 cpp-options: -DINTEGER_GMP
155 build-depends: integer >= 0.1 && < 0.2
154 build-depends: integer >= 0.1 && < 0.2
156
155
157test-suite tests
156test-suite tests
158 type: exitcode-stdio-1.0
157 type: exitcode-stdio-1.0
159− hs-source-dirs: tests
158+ hs-source-dirs: tests .
160 main-is: Tests.hs
159 main-is: Tests.hs
161− -- c-sources: cbits/cbits.c
160+ c-sources: cbits/cbits.c
162
161
163 ghc-options:
162 ghc-options:
164 -Wall -threaded -O0 -rtsopts
163 -Wall -threaded -O0 -rtsopts
@@ -169,6 +168,7 @@ test-suite tests
169 build-depends:
168 build-depends:
170 HUnit >= 1.2,
169 HUnit >= 1.2,
171 QuickCheck >= 2.4,
170 QuickCheck >= 2.4,
171+ array,
172 base,
172 base,
173 bytestring,
173 bytestring,
174 deepseq,
174 deepseq,
@@ -177,8 +177,19 @@ test-suite tests
177 random,
177 random,
178 test-framework >= 0.4,
178 test-framework >= 0.4,
179 test-framework-hunit >= 0.2,
179 test-framework-hunit >= 0.2,
180− test-framework-quickcheck2 >= 0.2,
180+ test-framework-quickcheck2 >= 0.2
181− text
181+
182+ if impl(ghc >= 6.11)
183+ if flag(integer-simple)
184+ cpp-options: -DINTEGER_SIMPLE
185+ build-depends: integer-simple >= 0.1 && < 0.5
186+ else
187+ cpp-options: -DINTEGER_GMP
188+ build-depends: integer-gmp >= 0.2
189+
190+ if impl(ghc >= 6.9) && impl(ghc < 6.11)
191+ cpp-options: -DINTEGER_GMP
192+ build-depends: integer >= 0.1 && < 0.2
182
193
183source-repository head
194source-repository head
184 type: git
195 type: git