mirror of
https://github.com/jberthold/packman.git
synced 2024-09-11 13:45:24 +03:00
make detailed-0.9 test work, fix cabal test specification
This commit is contained in:
parent
3420ec74d5
commit
c0c43a3139
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user