on master help sign in
Reorganize tests subtree

--HG-- rename : tests/tests/.ghci => tests/.ghci rename : tests/tests/Makefile => tests/Makefile rename : tests/tests/src/Data/Text/Tests.hs => tests/Tests.hs rename : tests/tests/src/Data/Text/Tests/IO.hs => tests/Tests/IO.hs rename : tests/tests/src/Data/Text/Tests/Properties.hs => tests/Tests/Properties.hs rename : tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs => tests/Tests/QuickCheckUtils.hs rename : tests/tests/src/Data/Text/Tests/Regressions.hs => tests/Tests/Regressions.hs rename : tests/tests/src/Data/Text/Tests/SlowFunctions.hs => tests/Tests/SlowFunctions.hs rename : tests/tests/src/Data/Text/Tests/Utils.hs => tests/Tests/Utils.hs rename : tests/tests/scripts/cover-stdio.sh => tests/scripts/cover-stdio.sh rename : tests/tests/text-tests.cabal => tests/text-tests.cabal

commita827b2ead3697c530ab9ba7dc96c7fa00de3d3c3 authorBryan O'Sullivan <bos@serpentine.com> dateThu 28 Jun 2012, 21:16 (14 years ago) parent3ec6771
13 files changed+41−43
.hgignore+1−1 tests/tests/.ghci → tests/.ghci tests/tests/Makefile → tests/Makefile tests/tests/src/Data/Text/Tests.hs → tests/Tests.hs+2−2 tests/tests/src/Data/Text/Tests/IO.hs → tests/Tests/IO.hs tests/tests/src/Data/Text/Tests/Properties.hs → tests/Tests/Properties.hs+4−4 tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs → tests/Tests/QuickCheckUtils.hs+3−3 tests/tests/src/Data/Text/Tests/Regressions.hs → tests/Tests/Regressions.hs+2−2 tests/tests/src/Data/Text/Tests/SlowFunctions.hs → tests/Tests/SlowFunctions.hs+1−1 tests/tests/src/Data/Text/Tests/Utils.hs → tests/Tests/Utils.hs+1−1 tests/tests/scripts/cover-stdio.sh → tests/scripts/cover-stdio.sh tests/tests/text-tests.cabal → tests/text-tests.cabal+21−23 text.cabal+6−6
.hgignore+1−1
@@ -1,4 +1,4 @@
1−^(?:dist|benchmarks/dist|tests/tests/dist)$
1+^(?:dist|benchmarks/dist|tests/dist)$
22^benchmarks/.*\.txt$
33^tests/text-testdata.tar.bz2$
44^tests/(?:\.hpc|bm|qc|qc-hpc|stdio-hpc|text/test)$
tests/tests/.ghci → tests/.ghcirenamed

The content is the same.

tests/tests/Makefile → tests/Makefilerenamed

The content is the same.

tests/tests/src/Data/Text/Tests.hs → tests/Tests.hsrenamed+2−2
@@ -6,8 +6,8 @@ module Main
66
77import Test.Framework (defaultMain)
88
9−import qualified Data.Text.Tests.Properties as Properties
10−import qualified Data.Text.Tests.Regressions as Regressions
9+import qualified Tests.Properties as Properties
10+import qualified Tests.Regressions as Regressions
1111
1212main :: IO ()
1313main = defaultMain [Properties.tests, Regressions.tests]
tests/tests/src/Data/Text/Tests/IO.hs → tests/Tests/IO.hsrenamed

The content is the same.

tests/tests/src/Data/Text/Tests/Properties.hs → tests/Tests/Properties.hsrenamed+4−4
@@ -4,7 +4,7 @@
44 ScopedTypeVariables, TypeSynonymInstances, CPP #-}
55{-# OPTIONS_GHC -fno-enable-rewrite-rules #-}
66{-# OPTIONS_GHC -fno-warn-missing-signatures #-}
7−module Data.Text.Tests.Properties
7+module Tests.Properties
88 (
99 tests
1010 ) where
@@ -46,9 +46,9 @@ import qualified Data.Text.Lazy.Search as S (indices)
4646import qualified Data.Text.UnsafeShift as U
4747import qualified System.IO as IO
4848
49−import Data.Text.Tests.QuickCheckUtils
50−import Data.Text.Tests.Utils
51−import qualified Data.Text.Tests.SlowFunctions as Slow
49+import Tests.QuickCheckUtils
50+import Tests.Utils
51+import qualified Tests.SlowFunctions as Slow
5252
5353t_pack_unpack = (T.unpack . T.pack) `eq` id
5454tl_pack_unpack = (TL.unpack . TL.pack) `eq` id
tests/tests/src/Data/Text/Tests/QuickCheckUtils.hs → tests/Tests/QuickCheckUtils.hsrenamed+3−3
@@ -1,10 +1,10 @@
11-- | This module provides quickcheck utilities, e.g. arbitrary and show
22-- instances, and comparison functions, so we can focus on the actual properties
3−-- in the 'Data.Text.Tests.Properties' module.
3+-- in the 'Tests.Properties' module.
44--
55{-# LANGUAGE CPP, FlexibleInstances, TypeSynonymInstances #-}
66{-# OPTIONS_GHC -fno-warn-orphans #-}
7−module Data.Text.Tests.QuickCheckUtils
7+module Tests.QuickCheckUtils
88 (
99 genUnicode
1010 , unsquare
@@ -50,7 +50,7 @@ import qualified Data.Text.Lazy.Fusion as TLF
5050import qualified Data.Text.Lazy.Internal as TL
5151import qualified System.IO as IO
5252
53−import Data.Text.Tests.Utils
53+import Tests.Utils
5454
5555instance Random I16 where
5656 randomR = integralRandomR
tests/tests/src/Data/Text/Tests/Regressions.hs → tests/Tests/Regressions.hsrenamed+2−2
@@ -1,7 +1,7 @@
11-- | Regression tests for specific bugs.
22--
33{-# LANGUAGE OverloadedStrings, ScopedTypeVariables #-}
4−module Data.Text.Tests.Regressions
4+module Tests.Regressions
55 (
66 tests
77 ) where
@@ -18,7 +18,7 @@ import qualified Data.Text.Lazy.Encoding as LE
1818import qualified Test.Framework as F
1919import qualified Test.Framework.Providers.HUnit as F
2020
21−import Data.Text.Tests.Utils (withTempFile)
21+import Tests.Utils (withTempFile)
2222
2323-- Reported by Michael Snoyman: UTF-8 encoding a large lazy bytestring
2424-- caused either a segfault or attempt to allocate a negative number
tests/tests/src/Data/Text/Tests/SlowFunctions.hs → tests/Tests/SlowFunctions.hsrenamed+1−1
@@ -1,5 +1,5 @@
11{-# LANGUAGE BangPatterns #-}
2−module Data.Text.Tests.SlowFunctions
2+module Tests.SlowFunctions
33 (
44 indices
55 , splitOn
tests/tests/src/Data/Text/Tests/Utils.hs → tests/Tests/Utils.hsrenamed+1−1
@@ -1,7 +1,7 @@
11-- | Miscellaneous testing utilities
22--
33{-# LANGUAGE ScopedTypeVariables #-}
4−module Data.Text.Tests.Utils
4+module Tests.Utils
55 (
66 (=^=)
77 , withRedirect
tests/tests/scripts/cover-stdio.sh → tests/scripts/cover-stdio.shrenamed

The content is the same.

tests/tests/text-tests.cabal → tests/text-tests.cabalrenamed+21−23
@@ -4,7 +4,7 @@ synopsis: Functional tests for the text package
44description: Functional tests for the text package
55homepage: https://bitbucket.org/bos/text
66license: BSD3
7−license-file: ../../LICENSE
7+license-file: ../LICENSE
88author: Jasper Van der Jeugt <jaspervdj@gmail.com>,
99 Bryan O'Sullivan <bos@serpentine.com>,
1010 Tom Harper <rtomharper@googlemail.com>,
@@ -20,8 +20,7 @@ flag hpc
2020 default: False
2121
2222executable text-tests
23− hs-source-dirs: src
24− main-is: Data/Text/Tests.hs
23+ main-is: Tests.hs
2524
2625 ghc-options:
2726 -Wall -threaded -O0 -rtsopts
@@ -35,21 +34,20 @@ executable text-tests
3534 -DHAVE_DEEPSEQ
3635
3736 build-depends:
38− text-tests,
39− base >= 4 && < 5,
40− bytestring >= 0.9,
41− deepseq >= 1.1,
42− directory >= 1.1 && < 1.2,
43− random >= 1.0 && < 1.1,
44− QuickCheck >= 2.4 && < 2.5,
45− HUnit >= 1.2 && < 1.3,
46− test-framework >= 0.4 && < 0.5,
47− test-framework-quickcheck2 >= 0.2 && < 0.3,
48− test-framework-hunit >= 0.2 && < 0.3
37+ HUnit >= 1.2,
38+ QuickCheck >= 2.4,
39+ base == 4.*,
40+ bytestring,
41+ deepseq,
42+ directory,
43+ random,
44+ test-framework >= 0.4,
45+ test-framework-hunit >= 0.2,
46+ test-framework-quickcheck2 >= 0.2,
47+ text-tests
4948
5049executable text-tests-stdio
51− hs-source-dirs: src
52− main-is: Data/Text/Tests/IO.hs
50+ main-is: Tests/IO.hs
5351
5452 ghc-options:
5553 -Wall -threaded -rtsopts
@@ -64,8 +62,8 @@ executable text-tests-stdio
6462 base >= 4 && < 5
6563
6664library
67− hs-source-dirs: ../..
68− c-sources: ../../cbits/cbits.c
65+ hs-source-dirs: ..
66+ c-sources: ../cbits/cbits.c
6967 exposed-modules:
7068 Data.Text
7169 Data.Text.Array
@@ -117,8 +115,8 @@ library
117115
118116 build-depends:
119117 array,
120− base >= 4 && < 5,
121− bytestring >= 0.9,
122− deepseq >= 1.1,
123− integer-gmp >= 0.2 && < 0.3,
124− ghc-prim >= 0.2 && < 0.3
118+ base == 4.*,
119+ bytestring,
120+ deepseq,
121+ ghc-prim,
122+ integer-gmp
text.cabal+6−6
@@ -61,12 +61,12 @@ extra-source-files:
6161 benchmarks/text-benchmarks.cabal
6262 scripts/*.hs
6363 tests/README.markdown
64− tests/tests/.ghci
65− tests/tests/Makefile
66− tests/tests/scripts/*.sh
67− tests/tests/src/Data/Text/*.hs
68− tests/tests/src/Data/Text/Tests/*.hs
69− tests/tests/text-tests.cabal
64+ tests/.ghci
65+ tests/Makefile
66+ tests/scripts/*.sh
67+ tests/src/Data/Text/*.hs
68+ tests/src/Data/Text/Tests/*.hs
69+ tests/text-tests.cabal
7070
7171flag developer
7272 description: operate in developer mode