1
0
forked from GitHub/gf-core

testsuite: Use Cabal's new test suite interface

* The old way: a user hook in Setup.hs
  * The new way: specify it in gf.cabal
  * The test suite is now called gf-tests, and it runs testsuite/run.hs.
  * You can run it manually with 'runhaskell testsuite/run.hs'. It also runs,
    together with rgl-tests, when you do 'cabal test'
  * Currently only 9 of 34 tests pass. Many failures have silly causes:
    - Error messages that look slightly different
    - Same output but in a different order
    - Absolute paths in output
This commit is contained in:
hallgren
2013-12-03 17:13:39 +00:00
parent 6b3ba6d3ba
commit f5cda1e6a3
3 changed files with 85 additions and 39 deletions

View File

@@ -236,3 +236,9 @@ test-suite rgl-tests
main-is: run.hs
hs-source-dirs: lib/tests/
build-depends: base, HTF, process, HUnit, filepath, directory
test-suite gf-tests
type: exitcode-stdio-1.0
main-is: run.hs
hs-source-dirs: testsuite
build-depends: base>=4.2 && <5, Cabal>=1.8, directory, filepath, process