M libxml-sax.cabal => libxml-sax.cabal +15 -1
@@ 5,7 5,7 @@ license-file: license.txt
author: John Millikin
maintainer: jmillikin@gmail.com
build-type: Simple
-cabal-version: >= 1.6
+cabal-version: >= 1.8
category: Foreign, Text, XML, Parsing
stability: experimental
homepage: https://john-millikin.com/software/haskell-libxml/
@@ 45,3 45,17 @@ library
extra-libraries: xml2
pkgconfig-depends: libxml-2.0
+
+test-suite test
+ type: exitcode-stdio-1.0
+ main-is: tests/Tests.hs
+
+ build-depends:
+ base > 4.1 && < 5.0
+ , bytestring
+ , containers
+ , libxml-sax
+ , text
+ , transformers
+ , xml-types
+ , chell >= 0.5 && < 0.6
M tests/Tests.hs => tests/Tests.hs +16 -15
@@ 19,21 19,22 @@ import qualified Text.XML.LibXML.SAX as SAX
import qualified Data.XML.Types as X
tests :: Suite
-tests = suite "libxml-sax"
- test_Instruction
- test_Comment
- test_InternalSubset
- test_InternalSubsetEmpty
- test_ExternalSubset
- test_Element
- test_Content
- test_ContentNoReference
- test_PlainCDATA
- test_PassthroughCDATA
- test_AttributeContent
- test_AttributeContentNoReference
- test_AttributeOrder
- test_AttributeContentAmpersand
+tests = suite "libxml-sax" [
+ test_Instruction,
+ test_Comment,
+ test_InternalSubset,
+ test_InternalSubsetEmpty,
+ test_ExternalSubset,
+ test_Element,
+ test_Content,
+ test_ContentNoReference,
+ test_PlainCDATA,
+ test_PassthroughCDATA,
+ test_AttributeContent,
+ test_AttributeContentNoReference,
+ test_AttributeOrder,
+ test_AttributeContentAmpersand
+ ]
main :: IO ()
main = defaultMain [tests]
D tests/libxml-sax-tests.cabal => tests/libxml-sax-tests.cabal +0 -18
@@ 1,18 0,0 @@
-name: libxml-sax-tests
-version: 0
-build-type: Simple
-cabal-version: >= 1.6
-
-executable libxml-sax-tests
- main-is: Tests.hs
- ghc-options: -Wall -O2
-
- build-depends:
- base > 4.1 && < 5.0
- , bytestring
- , containers
- , libxml-sax
- , text
- , transformers
- , xml-types
- , chell >= 0.3 && < 0.4