ndmitchell / hoogle

Haskell API search engine
http://hoogle.haskell.org/
Other
738 stars 134 forks source link

Test suite failures #101

Open snoyberg opened 9 years ago

snoyberg commented 9 years ago

Just got these from both a Stackage build and running the test suite directly, version 4.2.38. I'm running the tests on 4.2.37 as well for comparison, I'll post results next.

Test suite hoogle-test: RUNNING...
Downloading downloads/platform.cabal
# platform.cabal (for downloads/platform.cabal)
2015-03-03 11:30:17 URL:http://code.galois.com/darcs/haskell-platform/haskell-platform.cabal [3334/3334] -> "downloads/platform.cabal" [1]
Downloaded downloads/platform.cabal
Downloading downloads/cabal.tar.gz
# cabal.tar.gz (for downloads/cabal.tar.gz)
2015-03-03 11:30:24 URL:http://hackage.haskell.org/packages/index.tar.gz [8939834/8939834] -> "downloads/cabal.tar.gz" [1]
Downloaded downloads/cabal.tar.gz
# cabal.tar (for downloads/cabal.tar)
Extracting tar file downloads/cabal.index
# cabal.tar (for downloads/cabal.index)
Finished extracting tar file downloads/cabal.index
# cabal.tar (for downloads/cabal.index)
Downloading downloads/hoogle.tar.gz
# hoogle.tar.gz (for downloads/hoogle.tar.gz)
2015-03-03 11:30:36 URL:http://hackage.haskell.org/packages/hoogle.tar.gz [21111201/21111201] -> "downloads/hoogle.tar.gz" [1]
Downloaded downloads/hoogle.tar.gz
# hoogle.tar (for downloads/hoogle.tar)
Extracting tar file downloads/hoogle.index
# hoogle.tar (for downloads/hoogle.index)
Finished extracting tar file downloads/hoogle.index
# hoogle.tar (for downloads/hoogle.index)
Downloading downloads/base.txt
# base.txt (for downloads/base.txt)
2015-03-03 11:30:43 URL:https://www.haskell.org/hoogle/base.txt [515083] -> "downloads/base.txt" [1]
Downloaded downloads/base.txt
Creating mtl.hoo... 
Creating transformers.hoo... 
Creating text.hoo... 
Creating deepseq.hoo... 
Creating HTTP.hoo... 
Creating zlib.hoo... 
Creating xhtml.hoo... 
Creating syb.hoo... 
Creating stm.hoo... 
Creating regex-posix.hoo... 
Creating regex-compat.hoo... 
Creating regex-base.hoo... 
Creating QuickCheck.hoo... 
Creating parsec.hoo... 
Creating parallel.hoo... 
Creating OpenGL.hoo... 
Creating network.hoo... 
Creating HUnit.hoo... 
Creating html.hoo... 
Creating haskell-src.hoo... 
Creating GLUT.hoo... 
Creating fgl.hoo... 
Creating cgi.hoo... 
Creating unix.hoo... 
Creating time.hoo... 
Creating template-haskell.hoo... 
Creating random.hoo... 
Creating process.hoo... 
Creating pretty.hoo... 
Creating old-time.hoo... 
Creating old-locale.hoo... 
Creating filepath.hoo... 
Creating extensible-exceptions.hoo... 
Creating directory.hoo... 
Creating containers.hoo... 
Creating bytestring.hoo... 
Creating base.hoo... 
Creating array.hoo... 
Creating platform.hoo from 38 databases... 
Creating package.hoo... 
Downloading downloads/keyword.htm
# keyword.htm (for downloads/keyword.htm)
2015-03-03 11:31:08 URL:https://wiki.haskell.org/Keywords [1144] -> "downloads/keyword.htm" [1]
Downloaded downloads/keyword.htm
Creating keyword.hoo... 
Creating default.hoo from 3 databases... 
77 warnings, saved to .warnings
Data generation complete
(0 tests)         (1 test)        (2 tests)         (3 tests)         (4 tests)         (5 tests)         (6 tests)         (7 tests)         (8 tests)         (9 tests)         (10 tests)          (11 tests)          (12 tests)          (13 tests)          (14 tests)          (15 tests)          (16 tests)          (17 tests)          (18 tests)          (19 tests)          (20 tests)          (21 tests)          (22 tests)          (23 tests)          (24 tests)          (25 tests)          (26 tests)          (27 tests)          (28 tests)          (29 tests)          (30 tests)          (31 tests)          (32 tests)          (33 tests)          (34 tests)          (35 tests)          (36 tests)          (37 tests)          (38 tests)          (39 tests)          (40 tests)          (41 tests)          (42 tests)          (43 tests)          (44 tests)          (45 tests)          (46 tests)          (47 tests)          (48 tests)          (49 tests)          (50 tests)          (51 tests)          (52 tests)          (53 tests)          (54 tests)          (55 tests)          (56 tests)          (57 tests)          (58 tests)          (59 tests)          (60 tests)          (61 tests)          (62 tests)          (63 tests)          (64 tests)          (65 tests)          (66 tests)          (67 tests)          (68 tests)          (69 tests)          (70 tests)          (71 tests)          (72 tests)          (73 tests)          (74 tests)          (75 tests)          (76 tests)          (77 tests)          (78 tests)          (79 tests)          (80 tests)          (81 tests)          (82 tests)          (83 tests)          (84 tests)          (85 tests)          (86 tests)          (87 tests)          (88 tests)          (89 tests)          (90 tests)          (91 tests)          (92 tests)          (93 tests)          (94 tests)          (95 tests)          (96 tests)          (97 tests)          (98 tests)          (99 tests)          Running static tests
+++ OK, passed 100 tests.
Converting testdata
Testing /home/michael/Desktop/hoogle-4.2.38/datadir/tests.txt
Testing /home/michael/Desktop/hoogle-4.2.38/datadir/examples.txt
Failed test on line 4
Failed to match
Expected: keyword ~
Got:
No results found

Failed test on line 8
Failed to match
Expected: keyword ~
Got:
Test.HUnit.Base (~:) :: Testable t => String -> t -> Test

Failed test on line 12
Failed to match
Expected: keyword ! -- http://haskell.org/haskellwiki/Keywords#.21
Got:
No results found

Failed test on line 16
Failed to match
Expected: keyword forall
Got:
Language.Haskell.TH.Lib forallC :: [TyVarBndr] -> CxtQ -> ConQ -> ConQ
Language.Haskell.TH forallC :: [TyVarBndr] -> CxtQ -> ConQ -> ConQ
Language.Haskell.TH.Lib forallT :: [TyVarBndr] -> CxtQ -> TypeQ -> TypeQ
Language.Haskell.TH forallT :: [TyVarBndr] -> CxtQ -> TypeQ -> TypeQ
Test.QuickCheck.Property forAll :: (Show a, Testable prop) => Gen a -> (a -> prop) -> Property
Test.QuickCheck forAll :: (Show a, Testable prop) => Gen a -> (a -> prop) -> Property
Language.Haskell.TH.Syntax ForallC :: [TyVarBndr] -> Cxt -> Con -> Con
Language.Haskell.TH ForallC :: [TyVarBndr] -> Cxt -> Con -> Con
Test.QuickCheck.Monadic forAllM :: (Monad m, Show a) => Gen a -> (a -> PropertyM m b) -> PropertyM m b
Test.QuickCheck.All forAllProperties :: Q Exp

Failed test on line 23
Failed to match
Expected: keyword module
Got:
package module-management
System.Posix.DynamicLinker.Module moduleClose :: Module -> IO ()
System.Posix.DynamicLinker.Module.ByteString moduleClose :: Module -> IO ()
System.Posix.DynamicLinker.Module moduleError :: IO String
System.Posix.DynamicLinker.Module.ByteString moduleError :: IO String
System.Posix.DynamicLinker.Module.ByteString moduleOpen :: RawFilePath -> [RTLDFlags] -> IO Module
System.Posix.DynamicLinker.Module moduleOpen :: String -> [RTLDFlags] -> IO Module
package modulespection
System.Posix.DynamicLinker.Module moduleSymbol :: Module -> String -> IO (FunPtr a)
System.Posix.DynamicLinker.Module.ByteString moduleSymbol :: Module -> String -> IO (FunPtr a)

TEST FAILURES (5)
hoogle-test: Command: dist/build/hoogle/hoogle test --example
Failed with: ExitFailure 1
Test suite hoogle-test: FAIL
Test suite logged to: dist/test/hoogle-4.2.38-hoogle-test.log
snoyberg commented 9 years ago

Same failure, I'm guessing this is a bug in the data being downloaded from Hackage. I'll disable the test suite temporarily in Stackage.

ndmitchell commented 9 years ago

Looks like someone broke the keyword file, possibly moving the wiki server around. I'm not super interested in fixing it, because the development focus is towards Hoogle 5, which is significantly different. Disabling and not worrying is fine by me.