Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/haskell/Cabal. Pull mirroring updated .
  1. Jan 31, 2016
  2. Jan 02, 2016
  3. Dec 29, 2015
  4. Dec 28, 2015
    • Edward Z. Yang's avatar
      Rewrite the package test suite. · e94552e8
      Edward Z. Yang authored
      
      I've rewritten the test suite to be more concise and "correct by
      construction".  The primary method that this is achieved by
      is introducing the 'TestM' monad, which carries around the
      important state for the tests so that (1) we don't have to
      pass it as an argument all around, and (2) we can automatically
      make the correct decisions about how to do things.  This new
      method emphasises "configuration by convention": we assume
      that a test-case named "Foo" has its test packages in the
      directory "tests/PackageTests/Foo".
      
      A secondary change is that all command functions automatically fail if
      they have a non-zero exit code (unless you use the 'shouldFail'
      combinator which inverts the sense.)  This saves a lot of typing
      on test-cases.  (In fact, I've reorganized all of the commands
      related here.)
      
      In the process, I've tightened up the logic for how to find the
      LocalBuildInfo of the Cabal we've testing, so we should now
      reliably be testing the inplace Cabal library, and not the
      system library (as was often the case.)
      
      Because things are a lot shorter, there is no good reason to
      make Check modules except for the biggest test cases.  Most
      test-cases have been folded into PackageTests.Tests; if you
      have a small test-case you should just put it there.
      
      Signed-off-by: default avatarEdward Z. Yang <ezyang@cs.stanford.edu>
      e94552e8
  5. Aug 08, 2015
  6. Jun 23, 2015
    • Michael Snoyman's avatar
      Add a stack.yaml file · fcdfb308
      Michael Snoyman authored
      I needed this when building cabal.exe for MinGHC (see:
      https://github.com/fpco/minghc/issues/69). I thought others might find
      this useful, especially for the use case of bootstrapping cabal
      development.
      
      I went the direction of no curation and explicit packages in the
      extra-deps, as I thought that would make more sense for a project low on
      the dependency chain, but this could certainly be tweaked to use LTS
      Haskell or Stackage Nightly instead.
      fcdfb308
  7. Jan 11, 2015
  8. Aug 26, 2014
  9. Jun 28, 2014
  10. Jun 19, 2014
  11. Apr 26, 2013
  12. Jan 28, 2013
  13. Aug 29, 2012
  14. Aug 06, 2012
  15. Jul 19, 2012
  16. Jun 14, 2012
  17. Apr 28, 2012
Loading