summaryrefslogtreecommitdiff
path: root/packages/tests/hmatrix-tests.cabal
blob: 05148439e62e4ce939053c4fd9782cf0df7ad41e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Name:               hmatrix-tests
Version:            0.4.1.0
License:            BSD3
License-file:       LICENSE
Author:             Alberto Ruiz
Maintainer:         Alberto Ruiz <aruiz@um.es>
Stability:          provisional
Homepage:           https://github.com/albertoruiz/hmatrix
Synopsis:           Tests for hmatrix
Description:        Tests for hmatrix
Category:           Math
tested-with:        GHC==7.8

cabal-version:      >=1.8

build-type:         Simple

extra-source-files: CHANGES,
                    src/TestBase.hs,
                    src/TestGSL.hs,
                    src/Benchmark.hs

flag gsl
  description: Enable GSL tests
  default: True

library

    Build-Depends:      base >= 4 && < 5,
                        QuickCheck >= 2, HUnit, random,
                        hmatrix >= 0.16
    if flag(gsl)
      Build-Depends:    hmatrix-gsl >= 0.16

    hs-source-dirs:     src

    exposed-modules:    Numeric.LinearAlgebra.Tests
    if flag(gsl)
      exposed-modules:  Numeric.GSL.Tests

    other-modules:      Numeric.LinearAlgebra.Tests.Instances,
                        Numeric.LinearAlgebra.Tests.Properties

    ghc-options:        -Wall -fno-warn-missing-signatures -fno-warn-orphans


source-repository head
    type:     git
    location: https://github.com/albertoruiz/hmatrix


test-suite hmatrix-base-testsuite
    type: exitcode-stdio-1.0
    main-is: src/TestBase.hs
    build-depends:      base >= 4 && < 5,
                        hmatrix-tests,
                        QuickCheck >= 2, HUnit, random


test-suite hmatrix-gsl-testsuite
    type: exitcode-stdio-1.0
    main-is: src/TestGSL.hs
    build-depends:      base >= 4 && < 5,
                        hmatrix-tests,
                        QuickCheck >= 2, HUnit, random
    if flag(gsl)
      buildable:        True
    else
      buildable:        False


benchmark hmatrix-base-benchmark
    type:               exitcode-stdio-1.0
    main-is:            src/Benchmark.hs
    build-depends:      base >= 4 && < 5,
                        hmatrix-tests,
                        QuickCheck >= 2, HUnit, random