Permalink
Browse files

remove old haskell sources

  • Loading branch information...
1 parent 8274e58 commit 8e0ae72b74d76ac5797de486f72aa702bd115640 @JPMoresmau committed Jan 21, 2013
Showing with 0 additions and 233 deletions.
  1. +0 −17 net.sf.eclipsefp.haskell.core.test/hs-src/AllTests_Suite.hs
  2. +0 −57 net.sf.eclipsefp.haskell.core.test/hs-src/GHCOutputParser_Test.hs
  3. +0 −35 net.sf.eclipsefp.haskell.core.test/hs-src/ValidateCabalFile_Test.hs
  4. 0 net.sf.eclipsefp.haskell.core.test/hs-src/res/001
  5. +0 −1 net.sf.eclipsefp.haskell.core.test/hs-src/res/002
  6. +0 −1 net.sf.eclipsefp.haskell.core.test/hs-src/res/003
  7. +0 −2 net.sf.eclipsefp.haskell.core.test/hs-src/res/004
  8. +0 −2 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/001
  9. +0 −2 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/002
  10. +0 −2 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/003
  11. +0 −5 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/004
  12. +0 −4 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/005
  13. +0 −5 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/006
  14. +0 −5 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/007
  15. +0 −5 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/008
  16. +0 −4 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/009
  17. +0 −4 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/010
  18. +0 −9 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/011
  19. +0 −11 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/012
  20. +0 −17 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/013
  21. +0 −4 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/014
  22. +0 −7 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/015
  23. +0 −15 net.sf.eclipsefp.haskell.core.test/hs-src/res/ghc_output_parser/016
  24. +0 −13 net.sf.eclipsefp.haskell.core.test/hs-src/runCoverage.sh
  25. +0 −6 net.sf.eclipsefp.haskell.core.test/hs-src/runTests.sh
@@ -1,17 +0,0 @@
--- Copyright (c) 2006-2008 by Leif Frenzel - see http://leiffrenzel.de
--- This code is made available under the terms of the Eclipse Public
--- License, version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
---
--- | collects all HUnit test cases; this is for the convenience of running
--- them all at once, and also so that we can build a single executable to
--- run with hpc.
-
-import Test.HUnit
-
-import ValidateCabalFile_Test
-import GHCOutputParser_Test
-
-main = runTestTT $ TestList [
- ValidateCabalFile_Test.tests,
- GHCOutputParser_Test.tests
- ]
@@ -1,57 +0,0 @@
--- Copyright (c) 2008 by Leif Frenzel - see http://leiffrenzel.de
--- This code is made available under the terms of the Eclipse Public
--- License, version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
---
-module GHCOutputParser_Test( tests ) where
-
-import Control.Monad( liftM )
-import Test.HUnit
-
-import Cohatoe.Data.MarkerDesc
-
-import GHCOutputParser( parseBuffer )
-
-tests :: Test
-tests = TestList [
- testCase "001" [MarkerDesc "Main.hs" 3 unspecified " Not in scope: `fac'" 25 27 Error],
- testCase "002" [MarkerDesc "Main.hs" 3 unspecified " Not in scope: `f'" 25 unspecified Error],
- testCase "003" [MarkerDesc "Main.hs" 3 unspecified " Not in scope: `Compiling'" 25 33 Error],
- testCase "004" [
- MarkerDesc "Main.hs" 4 unspecified " Not in scope: `fac'" 26 28 Error,
- MarkerDesc "Main.hs" 4 unspecified " Not in scope: `fib'" 32 34 Error
- ],
- testCase "005" [MarkerDesc "Main.hs" 4 unspecified " Not in scope: `fac'" 25 27 Error],
- testCase "006" [MarkerDesc "Main.hs" 6 unspecified " Not in scope: `fib'" 25 27 Error],
- testCase "007" [MarkerDesc "Main.hs" 6 unspecified " Not in scope: `fib'" 25 27 Error],
- testCase "008" [MarkerDesc "Main.hs" 4 unspecified " Not in scope: `fac'" 28 30 Error],
- testCase "009" [MarkerDesc "Main.hs" 4 unspecified " Failed to load interface for `Factorial':" 0 15 Error],
- testCase "010" [], -- hm, what could we possibly report back in this case?
- testCase "011" [MarkerDesc "Main.hs" 4 unspecified " Expecting a function type, but found `IO a'\r" 0 unspecified Error],
- testCase "012" [
- MarkerDesc "Main.hs" 4 unspecified " Definition but no type signature for `main'\r" 0 unspecified Warning,
- MarkerDesc "Main.hs" 4 unspecified " Defaulting the following constraint(s) to type `Integer'\r" 13 14 Warning
- ],
- testCase "013" [
- MarkerDesc "Main.hs" 3 unspecified " Definition but no type signature for `main'" 0 23 Warning,
- MarkerDesc "Main.hs" 3 unspecified " Defaulting the following constraint(s) to type `Integer'" 22 23 Warning,
- MarkerDesc "Main.hs" 5 unspecified " Definition but no type signature for `ladida'" 0 18 Warning
- ],
- testCase "014" [MarkerDesc "GHCOutputParser.hs" 4 unspecified " Imported from `Control.Monad' but not used: `liftM2'" 29 34 Warning],
- testCase "015" [MarkerDesc "Main.hs" 4 unspecified " Module `Gro' is imported, but nothing from it is used," 0 9 Warning],
- testCase "016" [
- MarkerDesc "Main.hs" 7 unspecified " Defined but not used: `n'" 15 unspecified Warning,
- MarkerDesc "Main.hs" 13 14 " Definition but no type signature for `prop_MkTestCaseName_len'" 0 17 Warning,
- MarkerDesc "Main.hs" 14 unspecified " Defined but not used: `types'" 2 unspecified Warning,
- MarkerDesc "Main.hs" 16 unspecified " Definition but no type signature for `prop_MkTestCaseName_suffix'" 0 68 Warning
- ]
- ]
-
-
--- helping functions
---------------------
-
-testCase :: String -> [MarkerDesc] -> Test
-testCase name expected = TestCase $ do
- valRes <- liftM parseBuffer (readFile $ "res/ghc_output_parser/" ++ name)
- assertEqual ("Case " ++ name) expected valRes
-
@@ -1,35 +0,0 @@
--- Copyright (c) 2006-2008 by Leif Frenzel - see http://leiffrenzel.de
--- This code is made available under the terms of the Eclipse Public
--- License, version 1.0 (EPL). See http://www.eclipse.org/legal/epl-v10.html
---
-
-module ValidateCabalFile_Test where
-
-import Test.HUnit
-
-import Cohatoe.Data.MarkerDesc
-import ValidateCabalFile( validateCabalFile )
-
--- test cases
--------------
-
-tests = TestList [
- testCase "001" [ mkWarning "res/001" "No library or executable specified" ],
- testCase "002" [
- mkWarning "res/002" "A package using section syntax should require\n\"Cabal-Version: >= 1.2\" or equivalent.",
- mkWarning "res/002" "Ignoring trailing declarations.",
- mkWarning "res/002" "Unknown section type: totally ignoring..."
- ],
- testCase "003" [ mkWarning "res/003" "No library or executable specified" ],
- testCase "004" []
- ]
-
-
--- helping functions
---------------------
-
-testCase :: String -> [MarkerDesc] -> Test
-testCase name expected = TestCase $ do
- valRes <- validateCabalFile $ "res/" ++ name
- assertEqual ("Case " ++ name) expected valRes
-
@@ -1 +0,0 @@
-totally unrelated content - not a valid cabal file
@@ -1 +0,0 @@
-name: bla
@@ -1,2 +0,0 @@
-name: bla
-Executable: bla
@@ -1,2 +0,0 @@
-
-Main.hs:3:25-27: Not in scope: `fac'
@@ -1,2 +0,0 @@
-
-Main.hs:3:25: Not in scope: `f'
@@ -1,2 +0,0 @@
-
-Main.hs:3:25-33: Not in scope: `Compiling'
@@ -1,5 +0,0 @@
-
-Main.hs:4:26-28: Not in scope: `fac'
-
-Main.hs:4:32-34: Not in scope: `fib'
-
@@ -1,4 +0,0 @@
-Chasing modules from: Main.hs
-Compiling Main ( Main.hs, Main.o )
-
-Main.hs:4:25-27: Not in scope: `fac'
@@ -1,5 +0,0 @@
-Chasing modules from: Main.hs
-Compiling Factorial ( ./Factorial.hs, ./Factorial.o )
-Compiling Main ( Main.hs, Main.o )
-
-Main.hs:6:25-27: Not in scope: `fib'
@@ -1,5 +0,0 @@
-Chasing modules from: Main.hs
-Skipping Factorial ( ./Factorial.hs, ./Factorial.o )
-Compiling Main ( Main.hs, Main.o )
-
-Main.hs:6:25-27: Not in scope: `fib'
@@ -1,5 +0,0 @@
-Chasing modules from: Main.hs
-Compiling Main ( Main.hs, C:\programas\eclipse\platform\3.2\eclipse\tmp\runtime-workspace\qsort\out/Main.o )
-
-Main.hs:4:28-30: Not in scope: `fac'
-
@@ -1,4 +0,0 @@
-Main.hs:4:0-15:
- Failed to load interface for `Factorial':
- Could not find module `Factorial':
- use -v to see a list of the files searched for
@@ -1,4 +0,0 @@
- Chasing modules from: Main.hs
- Could not find module `Factorial':
- use -v to see a list of the files searched for
- (imported from Main.hs)
@@ -1,9 +0,0 @@
-Chasing modules from: Main.hs
-Compiling Main ( Main.hs, C:\workspaces\GHCOutputParser\GHCOutputParser\out/Main.o )
-
-Main.hs:4:0:
- Expecting a function type, but found `IO a'
- Expected type: IO a
- Inferred type: a1 -> IO ()
- In the first argument of `GHC.TopHandler.runMainIO', namely `main'
- When checking the type of the main function `main'
@@ -1,11 +0,0 @@
-Chasing modules from: Main.hs
-Compiling Main ( Main.hs, C:\workspaces\GHCOutputParser\GHCOutputParser\out/Main.o )
-
-Main.hs:4:0: Warning: Definition but no type signature for `main'
-
-Main.hs:4:13-14:
- Warning: Defaulting the following constraint(s) to type `Integer'
- `Num a' arising from the literal `42' at Main.hs:4:13-14
- In the first argument of `print', namely `42'
- In the definition of `main': main = print 42
-Linking ...
@@ -1,17 +0,0 @@
-[1 of 1] Compiling Main ( Main.hs, /Users/leif/workspaces/runtime-New_configuration/test/out/Main.o )
-
-Main.hs:3:0-23:
- Warning: Definition but no type signature for `main'
- Inferred type: main :: IO ()
-
-Main.hs:3:22-23:
- Warning: Defaulting the following constraint(s) to type `Integer'
- `Num a' arising from the literal `10' at Main.hs:3:22-23
- In the first argument of `ladida', namely `10'
- In the second argument of `($)', namely `ladida 10'
- In the expression: print $ ladida 10
-
-Main.hs:5:0-18:
- Warning: Definition but no type signature for `ladida'
- Inferred type: ladida :: forall t. (Num t) => t -> t
-Linking /Users/leif/workspaces/runtime-New_configuration/test/bin/theResult ...
@@ -1,4 +0,0 @@
-[2 of 2] Compiling GHCOutputParser ( GHCOutputParser.hs, /Users/leif/workspaces/eclipsefp/ghcparser/out/GHCOutputParser.o )
-
-GHCOutputParser.hs:4:29-34:
- Warning: Imported from `Control.Monad' but not used: `liftM2'
@@ -1,7 +0,0 @@
-[2 of 2] Compiling Main ( Main.hs, /Users/leif/workspaces/runtime-New_configuration/demo/out/Main.o )
-
-Main.hs:4:0-9:
- Warning: Module `Gro' is imported, but nothing from it is used,
- except perhaps instances visible in `Gro'
- To suppress this warning, use: import Gro()
-Linking /Users/leif/workspaces/runtime-New_configuration/demo/bin/theResult ...
@@ -1,15 +0,0 @@
-[1 of 1] Compiling Bla ( Main.hs, /Users/leif/workspaces/eclipsefp/organize_imports/out/Bla.o )
-
-Main.hs:7:15: Warning: Defined but not used: `n'
-
-Main.hs:(13,0)-(14,17):
- Warning: Definition but no type signature for `prop_MkTestCaseName_len'
- Inferred type: prop_MkTestCaseName_len :: Int -> Bool
-
-Main.hs:14:2: Warning: Defined but not used: `types'
-
-Main.hs:16:0-68:
- Warning: Definition but no type signature for `prop_MkTestCaseName_suffix'
- Inferred type: prop_MkTestCaseName_suffix :: Int -> Bool
-Warning: output was redirected with -o, but no output will be generated
-because there is no Main module.
@@ -1,13 +0,0 @@
-#!/bin/bash
-SRC=../../net.sf.eclipsefp.haskell.core/hs-src
-mkdir tmp coverage_report
-ghc -i$SRC -fhpc --make -odir tmp -hidir tmp AllTests_Suite.hs
-rm -r tmp
-./AllTests_Suite
-hpc markup AllTests_Suite \
- --exclude=ValidateCabalFile_Test \
- --exclude=GHCOutputParser_Test \
- --srcdir=$SRC \
- --srcdir=. \
- --destdir=coverage_report
-rm -r AllTests_Suite *.tix .hpc
@@ -1,6 +0,0 @@
-#!/bin/bash
-export PATH=$PATH:/usr/local/bin
-SRC=../../net.sf.eclipsefp.haskell.core/hs-src
-GHCI_CMD="ghci -i$SRC -package HUnit"
-echo "Test.HUnit.runTestTT tests" | $GHCI_CMD ValidateCabalFile_Test.hs | grep Cases
-echo "Test.HUnit.runTestTT tests" | $GHCI_CMD GHCOutputParser_Test.hs | grep Cases

0 comments on commit 8e0ae72

Please sign in to comment.