Skip to content

Commit 7163680

Browse files
committed
Immerse tests in the main text package
1 parent 14f2143 commit 7163680

File tree

9 files changed

+36
-229
lines changed

9 files changed

+36
-229
lines changed

cabal.project

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
-- See http://cabal.readthedocs.io/en/latest/nix-local-build-overview.html
21
packages: .
3-
packages: tests
42
packages: benchmarks
53
tests: True
4+
constraints: semigroups -text -hashable -unordered-containers

cabal.tests.project

Lines changed: 0 additions & 5 deletions
This file was deleted.

tests/.ghci

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/LICENSE

Lines changed: 0 additions & 1 deletion
This file was deleted.

tests/Makefile

Lines changed: 0 additions & 45 deletions
This file was deleted.

tests/cabal.config

Lines changed: 0 additions & 6 deletions
This file was deleted.

tests/scripts/cover-stdio.sh

Lines changed: 0 additions & 62 deletions
This file was deleted.

tests/text-tests.cabal

Lines changed: 0 additions & 99 deletions
This file was deleted.

text.cabal

Lines changed: 35 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,8 @@ extra-source-files:
7676
include/*.h
7777
scripts/*.hs
7878
tests-and-benchmarks.markdown
79-
tests/*.hs
80-
tests/.ghci
81-
tests/Makefile
82-
tests/Tests/*.hs
83-
tests/Tests/Properties/*.hs
84-
tests/cabal.config
85-
tests/scripts/*.sh
86-
tests/text-tests.cabal
79+
tests/literal-rule-test.sh
80+
tests/LiteralRuleTest.hs
8781

8882
flag bytestring-builder
8983
description:
@@ -227,3 +221,36 @@ source-repository head
227221
source-repository head
228222
type: mercurial
229223
location: https://bitbucket.org/bos/text
224+
225+
test-suite tests
226+
type: exitcode-stdio-1.0
227+
ghc-options:
228+
-Wall -threaded -rtsopts
229+
230+
hs-source-dirs: tests
231+
main-is: Tests.hs
232+
other-modules:
233+
Tests.Lift
234+
Tests.Properties
235+
Tests.Properties.Mul
236+
Tests.QuickCheckUtils
237+
Tests.Regressions
238+
Tests.SlowFunctions
239+
Tests.Utils
240+
241+
build-depends:
242+
QuickCheck >= 2.14.1 && < 2.15,
243+
base <5,
244+
bytestring,
245+
deepseq,
246+
directory,
247+
quickcheck-unicode >= 1.0.1.0,
248+
random,
249+
tasty,
250+
tasty-hunit,
251+
tasty-quickcheck,
252+
template-haskell,
253+
text
254+
255+
default-language: Haskell2010
256+
default-extensions: NondecreasingIndentation

0 commit comments

Comments
 (0)