summaryrefslogtreecommitdiff
path: root/gf.cabal
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2013-12-03 17:13:39 +0000
committerhallgren <hallgren@chalmers.se>2013-12-03 17:13:39 +0000
commitf5cda1e6a385ec6fe847db1ab77b67535ae41e7d (patch)
treeeeb7bf975ec366645652064bb1a9cc92908d2c86 /gf.cabal
parent6b3ba6d3ba5548d29e9175835e0ab1f1b17966c1 (diff)
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
Diffstat (limited to 'gf.cabal')
-rw-r--r--gf.cabal6
1 files changed, 6 insertions, 0 deletions
diff --git a/gf.cabal b/gf.cabal
index 1c5aed4e3..567daea3a 100644
--- a/gf.cabal
+++ b/gf.cabal
@@ -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