Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
4fe140c9
Commit
4fe140c9
authored
Nov 15, 2011
by
dterei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleaning of testsuite
parent
8a931a60
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
10 additions
and
126 deletions
+10
-126
testsuite/Makefile
testsuite/Makefile
+0
-1
testsuite/config/ghc
testsuite/config/ghc
+2
-0
testsuite/config/hugs
testsuite/config/hugs
+0
-21
testsuite/driver/runtests.py
testsuite/driver/runtests.py
+0
-4
testsuite/ghci054.script
testsuite/ghci054.script
+0
-4
testsuite/tests/KNOWN_FAILURES
testsuite/tests/KNOWN_FAILURES
+0
-50
testsuite/tests/Makefile
testsuite/tests/Makefile
+1
-1
testsuite/tests/NOTES
testsuite/tests/NOTES
+0
-34
testsuite/timeout/TimeMe.hs
testsuite/timeout/TimeMe.hs
+0
-1
testsuite/timeout/WinCBindings.hsc
testsuite/timeout/WinCBindings.hsc
+0
-1
testsuite/timeout/timeout.cabal
testsuite/timeout/timeout.cabal
+5
-8
testsuite/timeout/timeout.hs
testsuite/timeout/timeout.hs
+2
-1
No files found.
testsuite/Makefile
View file @
4fe140c9
TOP
=
.
TOP
=
.
# If we're cleaning then we don't want to do all the GHC detection hardwork,
# If we're cleaning then we don't want to do all the GHC detection hardwork,
...
...
testsuite/config/ghc
View file @
4fe140c9
...
@@ -56,6 +56,7 @@ if (ghc_with_profiling == 1 and ghc_with_threaded_rts == 1):
...
@@ -56,6 +56,7 @@ if (ghc_with_profiling == 1 and ghc_with_threaded_rts == 1):
config.run_ways.append('profthreaded')
config.run_ways.append('profthreaded')
if (ghc_with_llvm == 1):
if (ghc_with_llvm == 1):
config.compile_ways.append('optllvm')
config.run_ways.append('optllvm')
config.run_ways.append('optllvm')
config.in_tree_compiler = in_tree_compiler
config.in_tree_compiler = in_tree_compiler
...
@@ -157,3 +158,4 @@ def get_compiler_info():
...
@@ -157,3 +158,4 @@ def get_compiler_info():
config.package_conf_cache_file = compilerInfoDict["Global Package DB"] + '/package.cache'
config.package_conf_cache_file = compilerInfoDict["Global Package DB"] + '/package.cache'
except:
except:
config.package_conf_cache_file = ''
config.package_conf_cache_file = ''
testsuite/config/hugs
deleted
100644 → 0
View file @
8a931a60
# Testsuite configuration setup for Hugs
#
# This file is Python source
#
config.compiler_type = 'hugs'
config.compiler = 'hugs-hc'
config.compiler_always_flags = []
# We test the 'normal' way only
config.compile_ways = ['normal']
config.run_ways = ['normal']
# No other ways for Hugs
config.other_ways = []
config.way_flags = { 'normal' : [] }
config.way_rts_flags = { 'normal' : [] }
def get_compiler_info():
pass
testsuite/driver/runtests.py
View file @
4fe140c9
...
@@ -2,10 +2,6 @@
...
@@ -2,10 +2,6 @@
# (c) Simon Marlow 2002
# (c) Simon Marlow 2002
#
#
# ToDo:
# GHCi tests
# expect failure for some ways only
import
sys
import
sys
import
os
import
os
import
string
import
string
...
...
testsuite/ghci054.script
deleted
100644 → 0
View file @
8a931a60
--Testing type synonyms
type Foo = String
let foo = "foo" :: Foo
:t foo
testsuite/tests/KNOWN_FAILURES
deleted
100644 → 0
View file @
8a931a60
Current known failures
~~~~~~~~~~~~~~~~~~~~~~
deSugar/should_compile/ds052
-- inaccuracy in non-exhaustive pattern warnings
lib/IO/hReady001
-- IO.hReady doesn't detect the end of a file
lib/IO/openFile005, openFile007, readFile001 [Windows]
-- file locking is broken on Windows
lib/IOExts/hTell001, hTell002 [Windows]
-- seeking on text handles not implemented on Windows
lib/net/net001 [Windows]
-- getProtocolByName seems not to be working on Windows
lib/system/system001 [Windows]
-- probably a failure due to System.system using Cmd.exe?
parser/should_fail/read002
-- we don't disallow certain characters in strings (eg. newline)
parser/should_fail/read024
-- parser bug related to layout processing
rename/should_fail/rnfail034
-- duplicated "in" in an error message
typecheck/should_fail/tcfail080
-- ambiguity test: ambiguity isn't detected early enough
-- (behaviour is sound but could be more helpful, according
-- to SPJ)
typecheck/should_run/tcrun007
-- tests for generics, which are currently broken in 5.02
programs/okeefe_neural
-- causes the compiler to run out of heap in the simplifier
-- (problem with large constant data structures?)
-- These tests fail the 'optasm' way, due to inconsistent floating
-- point results on x86. The inconsistency is caused
numeric/should_run/arith008
numeric/should_run/arith012
programs/barton_mangler_bug
programs/cholewo-eval
programs/galois_raytrace
testsuite/tests/Makefile
View file @
4fe140c9
...
@@ -10,9 +10,9 @@ ifeq "$(findstring base,$(LIBRARIES))" ""
...
@@ -10,9 +10,9 @@ ifeq "$(findstring base,$(LIBRARIES))" ""
$(error
base
library
does
not
seem
to
be
installed)
$(error
base
library
does
not
seem
to
be
installed)
endif
endif
# XXX Do this better?
# Now find the "tests" directories of those libraries, where they exist
# Now find the "tests" directories of those libraries, where they exist
LIBRARY_TEST_PATHS
:=
$(
wildcard
$(
patsubst
%,
$(TOP)
/../libraries/%/tests,
$(LIBRARIES)
))
LIBRARY_TEST_PATHS
:=
$(
wildcard
$(
patsubst
%,
$(TOP)
/../libraries/%/tests,
$(LIBRARIES)
))
# Add tests from packages
# Add tests from packages
RUNTEST_OPTS
+=
$(
patsubst
%,
--rootdir
=
%,
$(LIBRARY_TEST_PATHS)
)
RUNTEST_OPTS
+=
$(
patsubst
%,
--rootdir
=
%,
$(LIBRARY_TEST_PATHS)
)
testsuite/tests/NOTES
deleted
100644 → 0
View file @
8a931a60
Deficiencies
~~~~~~~~~~~~
typecheck/should_compile tc056,tc115,tc116: stderr not checked
(maybe fixed; ToDo: check)
typecheck/should_fail
Data82.hs Digraph.hs Digraph.stderr Inst82_1.hs Inst82_2.hs
have not been assimilated.
(are needed by tcfail082 but am not sure how to do multi-module
tests yet)
rename/should_compile
rn037 issues
stranal/should_compile
There are some failures in here due to unexpected stdouts
(the compiler isn't asked to generate any?)
specialise/
Contains complete progs. Not done yet.
simpleCore/should_compile
simpl006 has extra bits
deSugar/should_compile
cvh-ds-unboxed/ not done
specialise/
none of these are run in the old framework, so not included
in new.
testsuite/timeout/TimeMe.hs
View file @
4fe140c9
module
Main
(
main
)
where
module
Main
(
main
)
where
import
System.IO
import
System.IO
...
...
testsuite/timeout/WinCBindings.hsc
View file @
4fe140c9
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
{-# LANGUAGE CPP, ForeignFunctionInterface #-}
module WinCBindings where
module WinCBindings where
#if defined(mingw32_HOST_OS)
#if defined(mingw32_HOST_OS)
...
...
testsuite/timeout/timeout.cabal
View file @
4fe140c9
Name: timeout
Name: timeout
-- XXX Version number:
Version: 1
Version: 1
Copyright:
XXX
Copyright:
GHC Team
License: BSD3
License: BSD3
-- XXX License-File: LICENSE
Author: GHC Team <cvs-ghc@haskell.org>
Author: XXX
Maintainer: GHC Team <cvs-ghc@haskell.org>
Maintainer: XXX
Synopsis: timout utility
Synopsis: XXX
Description: timeout utility
Description:
XXX
Category: Development
Category: Development
build-type: Simple
build-type: Simple
cabal-version: >=1.2
cabal-version: >=1.2
...
...
testsuite/timeout/timeout.hs
View file @
4fe140c9
{-# OPTIONS -cpp #-}
{-# OPTIONS -cpp #-}
module
Main
where
import
Prelude
hiding
(
catch
)
import
Prelude
hiding
(
catch
)
import
Control.Concurrent
(
forkIO
,
threadDelay
)
import
Control.Concurrent
(
forkIO
,
threadDelay
)
import
Control.Concurrent.MVar
(
putMVar
,
takeMVar
,
newEmptyMVar
)
import
Control.Concurrent.MVar
(
putMVar
,
takeMVar
,
newEmptyMVar
)
import
Control.Monad
import
Control.Exception
import
Control.Exception
import
Data.Maybe
(
isNothing
)
import
Data.Maybe
(
isNothing
)
import
System.Environment
(
getArgs
)
import
System.Environment
(
getArgs
)
import
System.Exit
import
System.Exit
import
System.IO
(
hPutStrLn
,
stderr
)
import
System.IO
(
hPutStrLn
,
stderr
)
import
Control.Monad
#
if
!
defined
(
mingw32_HOST_OS
)
#
if
!
defined
(
mingw32_HOST_OS
)
import
System.Posix
hiding
(
killProcess
)
import
System.Posix
hiding
(
killProcess
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment