From f5cda1e6a385ec6fe847db1ab77b67535ae41e7d Mon Sep 17 00:00:00 2001 From: hallgren Date: Tue, 3 Dec 2013 17:13:39 +0000 Subject: 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 --- gf.cabal | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gf.cabal') 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 -- cgit v1.2.3