packages feed

tasty-sugar-2.2.3.2: tasty-sugar.cabal

cabal-version:       2.0

name:                tasty-sugar
version:             2.2.3.2
synopsis:            Tests defined by Search Using Golden Answer References
description:
  .
  A tasty testing framework that builds individual test configurations
  from a set of input files and expected results (golden) files along
  with associated files, where multiple expected results and
  associated files for each input file can be parameterized by
  filename.
  .
  Additionally a tasty ingredient is supplied that can be used to show
  the search process and resulting test configurations without
  actually running the tests.

homepage:            https://github.com/kquick/tasty-sugar
-- bug-reports:
license:             ISC
license-file:        LICENSE
author:              Kevin Quick
maintainer:          kquick@galois.com
copyright:           Kevin Quick
category:            Testing
build-type:          Simple

tested-with: GHC == 8.6.5
           , GHC == 8.8.4
           , GHC == 8.10.7
           , GHC == 9.0.1
           , GHC == 9.2.3
           , GHC == 9.4.4
           , GHC == 9.6.1
           , GHC == 9.8
           , GHC == 9.10
           , GHC == 9.12

extra-doc-files: CHANGELOG.md
                 README.org

extra-source-files:  examples/example1/NiftyText.hs
                     examples/example1/README.org
                     examples/example1/test-passthru-ascii.hs
                     examples/example1/testdata/counting
                     examples/example1/testdata/counting.exp
                     examples/example1/testdata/hello_inp
                     examples/example1/testdata/hello_inp.exp
                     examples/params/test-params.hs
                     examples/params/samples/foo.c
                     examples/params/samples/functional.O2.expct
                     examples/params/samples/functional.hs
                     examples/params/samples/recursive.fast.expct
                     examples/params/samples/recursive.rs
                     examples/params/samples/simple-opt.expct
                     examples/params/samples/simple-opt.gcc-exe
                     examples/params/samples/simple.c
                     examples/params/samples/simple.expct
                     examples/params/samples/simple.noopt-gcc.expct
                     examples/params/samples/simple.noopt.clang.exe
                     examples/params/samples/simple.noopt.gcc.exe
                     examples/params/samples/simple.opt-clang.exe
                     test/builds/O0/cow-llvm13.exp
                     test/builds/O0/cow.exe
                     test/builds/O0/cow.exp
                     test/builds/O0/llvm9/cow.exe
                     test/builds/O0/llvm9/cow.lnk
                     test/builds/cow.exp
                     test/builds/gen/llvm10/frog.exe
                     test/builds/gen/llvm13/frog.exe
                     test/builds/gen/llvm9/frog.exe
                     test/builds/llvm10/foo.exp
                     test/builds/llvm13/cow.exe
                     test/builds/llvm13/opts/O3/cow.exe
                     test/builds/want/frog-llvm9-no.exp
                     test/builds/want/frog-no.exp
                     test/builds/want/frog-yes.exp
                     test/data/second/cow-O2.exe
                     test/data/second/foo-llvm13.exp
                     test/data/second/foo.O1-llvm10.exe
                     test/data/single/bar.exe
                     test/data/single/cow.O2.exp
                     test/data/single/cow.c
                     test/data/single/foo.c
                     test/data/single/foo.exp
                     test/data/single/foo.llvm10-O2-exp
                     test/data/single/foo.llvm10.O2.exe
                     test/data/single/foo.llvm13.exe
                     test/data/single/foo.llvm199.exp
                     test/data/single/foo.llvm9.exe
                     test/data/single/foo.llvm9.exp
                     test/data/issue3/test.c
                     test/data/issue3/test.42.c

source-repository head
  type: git
  location: git://github.com/kquick/tasty-sugar.git

library
  exposed-modules:   Test.Tasty.Sugar
  build-depends:       base >=4.10 && < 5
                     , containers
                     , directory
                     , filepath
                     , filemanip >= 0.3 && < 0.4
                     , logict >= 0.7.0.3 && < 0.9
                     , optparse-applicative >= 0.15 && < 0.20
                     , prettyprinter >= 1.7.0 && < 1.8
                     , tasty >= 1.2 && < 1.6
                     , tasty-sugar-internal
                     , text
  hs-source-dirs:      src
  default-language:    Haskell2010
  GHC-options:         -Wall -Wcompat
                       -Wincomplete-uni-patterns
                       -Wpartial-fields
                       -fhide-source-paths
  -- other-modules:
  -- other-extensions:


library tasty-sugar-internal
  exposed-modules:   Test.Tasty.Sugar.Analysis
                   , Test.Tasty.Sugar.AssocCheck
                   , Test.Tasty.Sugar.Candidates
                   , Test.Tasty.Sugar.ExpectCheck
                   , Test.Tasty.Sugar.Iterations
                   , Test.Tasty.Sugar.ParamCheck
                   , Test.Tasty.Sugar.Ranged
                   , Test.Tasty.Sugar.Report
                   , Test.Tasty.Sugar.Types
  build-depends:     base < 5
                   , containers
                   , directory
                   , filepath
                   , filemanip
                   , kvitable >= 1.1.0.0 && < 1.2
                   , logict
                   , microlens >= 0.4 && < 0.6
                   , mtl
                   , parallel >= 3.2 && < 3.4
                   , prettyprinter >= 1.7 && < 1.8
                   , text
  hs-source-dirs:    src/internal
  default-language:  Haskell2010
  GHC-options:      -Wall -Wcompat
                    -Wincomplete-uni-patterns
                    -Wpartial-fields
                    -fhide-source-paths


test-suite test-sugar
  type:                exitcode-stdio-1.0
  hs-source-dirs:      test
  default-language:    Haskell2010
  GHC-options:         -fhide-source-paths
                       -threaded -with-rtsopts=-N
  main-is:             TestMain.hs
  other-modules:       TestMultiAssoc
                       TestNoAssoc
                       TestFileSys
                       TestGCD
                       TestSingleAssoc
                       TestStrlen2
                       TestParams
                       TestParamsAssoc
                       TestUtils
                       TestWildcard
                       TestIssue3
                       TestLLVMRange
                       Sample1
  build-depends: base >= 4 && < 5
               , filepath
               , hedgehog >= 1.1 && < 1.8
               , logict
               , pretty-show >= 1.9 && < 1.11
               , prettyprinter
               , raw-strings-qq >= 1.1 && < 1.2
               , tasty
               , tasty-hedgehog >= 1.3 && < 1.5
               , tasty-hunit >= 0.10 && < 0.11
               , tasty-sugar
               , text
               , transformers

test-suite test-passthru-ascii
  type:             exitcode-stdio-1.0
  hs-source-dirs:   examples/example1
  default-language: Haskell2010
  GHC-options:      -fhide-source-paths
                    -threaded -with-rtsopts=-N
  main-is:          test-passthru-ascii.hs
  other-modules:    NiftyText
  build-depends: base < 5
               , tasty
               , tasty-hunit
               , tasty-sugar

test-suite test-params
  type:             exitcode-stdio-1.0
  hs-source-dirs:   examples/params
  default-language: Haskell2010
  GHC-options:      -fhide-source-paths
                    -threaded -with-rtsopts=-N
  main-is:          test-params.hs
  build-depends: base < 5
               , pretty-show
               , tasty
               , tasty-hunit
               , tasty-sugar

test-suite test-internals
  type:             exitcode-stdio-1.0
  hs-source-dirs:   test/internals
  default-language: Haskell2010
  GHC-options:      -fhide-source-paths
                    -threaded -with-rtsopts=-N
  main-is:          test-internals.hs
  build-depends: base < 5
               , pretty-show
               , tasty
               , tasty-hunit
               , tasty-sugar-internal