make detailed-0.9 test work, fix cabal test specification

This commit is contained in:
Jost Berthold 2014-09-02 17:50:45 +02:00
parent 3420ec74d5
commit c0c43a3139
2 changed files with 24 additions and 26 deletions

View File

@ -1,7 +1,7 @@
{-
Some tests to verify that serialisation works as expected
-}
module Test.AllTests(tests)
module AllTests(tests)
where
import GHC.Packing
@ -48,11 +48,7 @@ tests = do putStrLn "Running all tests"
mapM (return . Test . uncurry runIt) mytests
-- all configured tests, see below
mytests = [eval_array , testingOnly ]
-- , pack_array, pack_ThreadId, pack_MVar ]
-- baaang. this one fails, with a weird linker error. Cabal bug?
testingOnly = ("testing only", putStrLn (show P_UNSUPPORTED) >> return True)
mytests = [eval_array, pack_array, pack_ThreadId, pack_MVar ]
-- test data
arr, output :: A.Array Int Int

View File

@ -53,7 +53,8 @@ library
test-suite simpletest
type: exitcode-stdio-1.0
main-is: Test/TestSerialisation.hs
main-is: TestSerialisation.hs
hs-source-dirs: Test
build-depends: base >= 4.7,
directory >= 1.2,
ghc-prim >= 0.3,
@ -68,7 +69,8 @@ test-suite simpletest
test-suite testexceptions
type: exitcode-stdio-1.0
main-is: Test/TestExceptions.hs
main-is: TestExceptions.hs
hs-source-dirs: Test
build-depends: base >= 4.7,
directory >= 1.2,
ghc-prim >= 0.3,
@ -82,26 +84,27 @@ test-suite testexceptions
if flag(debug)
ghc-options: -debug -optc-g -optc-DDEBUG
-- DOZNWOK!
-- test-suite alltests
-- type: detailed-0.9
-- test-module: Test.AllTests
-- build-depends: base >= 4.7,
-- directory >= 1.2,
-- ghc-prim >= 0.3,
-- array >= 0.5,
-- binary >= 0.7,
-- bytestring >= 0.10,
-- primitive >= 0.5,
-- Cabal >= 1.18,
-- packman
-- default-language: Haskell2010
-- if flag(debug)
-- ghc-options: -debug -optc-g -optc-DDEBUG
test-suite alltests
type: detailed-0.9
test-module: AllTests
hs-source-dirs: Test
build-depends: base >= 4.7,
directory >= 1.2,
ghc-prim >= 0.3,
array >= 0.5,
binary >= 0.7,
bytestring >= 0.10,
primitive >= 0.5,
Cabal >= 1.18,
packman
default-language: Haskell2010
if flag(debug)
ghc-options: -debug -optc-g -optc-DDEBUG
test-suite testmthread
type: exitcode-stdio-1.0
main-is: Test/TestMThread.hs
main-is: TestMThread.hs
hs-source-dirs: Test
build-depends: base >= 4.7,
directory >= 1.2,
ghc-prim >= 0.3,
@ -117,7 +120,6 @@ test-suite testmthread
else
ghc-options: -threaded
source-repository head
type: git
location: git://github.com/jberthold/packman.git