ghc.git
8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
Ian Lynagh [Wed, 19 Oct 2011 13:19:00 +0000 (14:19 +0100)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agostrip away quotes in the argument, hack to fix 5313(ghci)
Simon Marlow [Wed, 19 Oct 2011 09:08:09 +0000 (10:08 +0100)] 
strip away quotes in the argument, hack to fix 5313(ghci)

8 years agodisable profilng ways (GHC cannot interpret code with profiling)
Simon Marlow [Wed, 19 Oct 2011 08:56:57 +0000 (09:56 +0100)] 
disable profilng ways (GHC cannot interpret code with profiling)

8 years agofollow removal of RunFailed in the GHC API
Simon Marlow [Wed, 19 Oct 2011 08:54:05 +0000 (09:54 +0100)] 
follow removal of RunFailed in the GHC API

8 years agoadd missing file
Simon Marlow [Wed, 19 Oct 2011 08:59:24 +0000 (09:59 +0100)] 
add missing file

8 years agoSimplify the 5313 test definition
Ian Lynagh [Tue, 18 Oct 2011 21:06:11 +0000 (22:06 +0100)] 
Simplify the 5313 test definition

8 years agoFix passing spaces to tests on Windows, and add a test for it
Ian Lynagh [Tue, 18 Oct 2011 20:50:12 +0000 (21:50 +0100)] 
Fix passing spaces to tests on Windows, and add a test for it

8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
Ian Lynagh [Tue, 18 Oct 2011 16:19:39 +0000 (17:19 +0100)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agoadd a test for #5558
Simon Marlow [Tue, 18 Oct 2011 15:17:56 +0000 (16:17 +0100)] 
add a test for #5558

8 years agogeneralise cmd_prefix to a general function to transform the command
Simon Marlow [Tue, 18 Oct 2011 15:17:41 +0000 (16:17 +0100)] 
generalise cmd_prefix to a general function to transform the command

8 years agoGet rid of the multisrc* test types
Ian Lynagh [Tue, 18 Oct 2011 15:07:41 +0000 (16:07 +0100)] 
Get rid of the multisrc* test types

They added too much complexity for their very few uses.
Fixes:
    framework failure for tc251(runTest) Unhandled exception:
    too many values to unpack

8 years agoCatch any uncaught exceptions in test_common_work
Ian Lynagh [Tue, 18 Oct 2011 14:34:45 +0000 (15:34 +0100)] 
Catch any uncaught exceptions in test_common_work

Before, the testsuite just printed
    Unhandled exception in thread started by <function test_common_thread at 0x188bde8>
    [...]
and carried on when using multiple threads, whereas it would just fall
over in single-threaded mode.

8 years agouse "-osuf p.o" instead of "-osuf p_o", to test #5554
Simon Marlow [Tue, 18 Oct 2011 12:18:05 +0000 (13:18 +0100)] 
use "-osuf p.o" instead of "-osuf p_o", to test #5554

8 years agoadd test for #5545
Simon Marlow [Tue, 18 Oct 2011 10:34:08 +0000 (11:34 +0100)] 
add test for #5545

8 years agoChange Safe Haskell tests for new -fpackage-trust flag
David Terei [Tue, 18 Oct 2011 03:35:28 +0000 (20:35 -0700)] 
Change Safe Haskell tests for new -fpackage-trust flag

8 years agoupdate tests for safe haskell changes
David Terei [Mon, 17 Oct 2011 21:14:02 +0000 (14:14 -0700)] 
update tests for safe haskell changes

8 years agoFollow removal of Eq and Show superclasses from Num
Daniel Fischer [Sat, 15 Oct 2011 10:32:12 +0000 (12:32 +0200)] 
Follow removal of Eq and Show superclasses from Num

8 years agoMerge branch 'master' of mac:ghc/git/val32/testsuite
Ian Lynagh [Fri, 14 Oct 2011 02:12:58 +0000 (03:12 +0100)] 
Merge branch 'master' of mac:ghc/git/val32/testsuite

8 years agoFix more tests following the removal of Num's superclasses
Ian Lynagh [Wed, 12 Oct 2011 16:58:45 +0000 (17:58 +0100)] 
Fix more tests following the removal of Num's superclasses

8 years agoReduce T4801 bounds on amd64/Linux
Ian Lynagh [Wed, 12 Oct 2011 16:42:47 +0000 (17:42 +0100)] 
Reduce T4801 bounds on amd64/Linux

Peak megabytes allocated has dropped following the removal of
Num's superclasses.

8 years agoFix some tests following the removal of Num's superclasses
Ian Lynagh [Wed, 12 Oct 2011 16:40:00 +0000 (17:40 +0100)] 
Fix some tests following the removal of Num's superclasses

8 years agoWhitespace only in cgrun044.hs
Ian Lynagh [Wed, 12 Oct 2011 16:21:41 +0000 (17:21 +0100)] 
Whitespace only in cgrun044.hs

8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
David Terei [Wed, 12 Oct 2011 00:41:06 +0000 (17:41 -0700)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agoHave multi[src,mod] test ways clean up after themselves.
David Terei [Wed, 12 Oct 2011 00:40:32 +0000 (17:40 -0700)] 
Have multi[src,mod] test ways clean up after themselves.

8 years agoMerge branch 'master' of mac:ghc/git/val32/testsuite
Ian Lynagh [Tue, 11 Oct 2011 20:27:09 +0000 (21:27 +0100)] 
Merge branch 'master' of mac:ghc/git/val32/testsuite

8 years agoImprove test T5373
Ian Lynagh [Tue, 11 Oct 2011 20:26:35 +0000 (21:26 +0100)] 
Improve test T5373

8 years agomake the test fail if the sleep doesn't get interrupted (#5471)
Simon Marlow [Fri, 7 Oct 2011 13:56:46 +0000 (14:56 +0100)] 
make the test fail if the sleep doesn't get interrupted (#5471)

8 years agoadd test for #5425
Simon Marlow [Mon, 10 Oct 2011 09:39:29 +0000 (10:39 +0100)] 
add test for #5425

8 years agoAdd a test for #5373 (-rtsopts, dynamic libs and OSX / Windows)
Ian Lynagh [Sun, 9 Oct 2011 21:46:08 +0000 (22:46 +0100)] 
Add a test for #5373 (-rtsopts, dynamic libs and OSX / Windows)

8 years agoAdd a test for the output of -ddump-deriv.
Jose Pedro Magalhaes [Wed, 5 Oct 2011 12:32:46 +0000 (13:32 +0100)] 
Add a test for the output of -ddump-deriv.

In particular, we are testing the output of deriving
Generic instances.

8 years agoFix #4264 on OS X
Ian Lynagh [Thu, 6 Oct 2011 21:56:57 +0000 (22:56 +0100)] 
Fix #4264 on OS X

We were getting the RTS linked twice, which caused odd things to happen.

8 years agoUpdate perf bounds for OS X x86
Ian Lynagh [Thu, 6 Oct 2011 19:42:42 +0000 (20:42 +0100)] 
Update perf bounds for OS X x86

8 years agoadd a test for foreign imports in GHCi
Simon Marlow [Thu, 22 Sep 2011 00:31:31 +0000 (01:31 +0100)] 
add a test for foreign imports in GHCi

8 years agoRun the dynCompileExpr test all ways
Ian Lynagh [Wed, 5 Oct 2011 20:34:12 +0000 (21:34 +0100)] 
Run the dynCompileExpr test all ways

8 years agoDriver: define config.libdir for tests to use
Ian Lynagh [Wed, 5 Oct 2011 20:32:44 +0000 (21:32 +0100)] 
Driver: define config.libdir for tests to use

We also use it internally, which saves us running "ghc --print-libdir"
on Windows.

8 years agoTweak ghci032
Ian Lynagh [Wed, 5 Oct 2011 19:46:40 +0000 (20:46 +0100)] 
Tweak ghci032

It was failing for me on OS X as canonicalizePath was altering the
capitalisation of the path (on a case-insensitive filesystem).

It now also prints diagnostic info if it fails.

8 years agoAdd a test for dynCompileExpr
Ian Lynagh [Wed, 5 Oct 2011 18:17:20 +0000 (19:17 +0100)] 
Add a test for dynCompileExpr

8 years agoAccept type error message changes
Ian Lynagh [Sat, 1 Oct 2011 12:33:23 +0000 (13:33 +0100)] 
Accept type error message changes

I think ideally we should give the info from both the old and new
messages; i.e. "You wrote X, which I reduced to Y, which isn't valid".
That way if Y is an abstract newtype then it will be clearer why
the type wasn't valid. We used to only give X, and now we only give Y.
Finding X is now a little messier, especially in cases like ccfail005.

8 years agoAdd a test highlighting a messy case for FFI type errors
Ian Lynagh [Sat, 1 Oct 2011 12:31:00 +0000 (13:31 +0100)] 
Add a test highlighting a messy case for FFI type errors

8 years agoAdd a test for types of GHC FFI primitive imports
Ian Lynagh [Fri, 30 Sep 2011 22:29:36 +0000 (23:29 +0100)] 
Add a test for types of GHC FFI primitive imports

8 years agoMore cc015 cases
Ian Lynagh [Fri, 30 Sep 2011 22:13:43 +0000 (23:13 +0100)] 
More cc015 cases

8 years agoAdd a couple more cases to ccfail004
Ian Lynagh [Fri, 30 Sep 2011 20:55:08 +0000 (21:55 +0100)] 
Add a couple more cases to ccfail004

8 years agoAdd another case to cc015
Ian Lynagh [Fri, 30 Sep 2011 19:27:50 +0000 (20:27 +0100)] 
Add another case to cc015

8 years agoAdd a test for newtypes and the FFI
Ian Lynagh [Fri, 30 Sep 2011 19:23:04 +0000 (20:23 +0100)] 
Add a test for newtypes and the FFI

You can only use newtypes in the FFI if the constructor is visible

8 years agoAdd some tests for handling of FFI types
Ian Lynagh [Fri, 30 Sep 2011 16:22:41 +0000 (17:22 +0100)] 
Add some tests for handling of FFI types

8 years agoAdd a test for #5430
Ian Lynagh [Fri, 30 Sep 2011 00:33:16 +0000 (01:33 +0100)] 
Add a test for #5430

8 years agoAdd test case for #5204.
Geoffrey Mainland [Fri, 30 Sep 2011 16:23:09 +0000 (17:23 +0100)] 
Add test case for #5204.

8 years agoTest Trac #5514
Simon Peyton Jones [Fri, 30 Sep 2011 06:57:15 +0000 (07:57 +0100)] 
Test Trac #5514

8 years agoTest Trac #5508
Simon Peyton Jones [Thu, 29 Sep 2011 15:55:58 +0000 (16:55 +0100)] 
Test Trac #5508

8 years agoAccept error message wibble
Simon Peyton Jones [Thu, 29 Sep 2011 15:46:44 +0000 (16:46 +0100)] 
Accept error message wibble

8 years agoTest Trac #5513
Simon Peyton Jones [Thu, 29 Sep 2011 15:46:30 +0000 (16:46 +0100)] 
Test Trac #5513

8 years agoT5481 should jolly well fail
Simon Peyton Jones [Thu, 29 Sep 2011 14:55:47 +0000 (15:55 +0100)] 
T5481 should jolly well fail

8 years agoTest Trac #5515
Simon Peyton Jones [Thu, 29 Sep 2011 11:31:33 +0000 (12:31 +0100)] 
Test Trac #5515

8 years agoWibbles to error messages following fix to Outputable.quotes
Simon Peyton Jones [Thu, 29 Sep 2011 08:47:11 +0000 (09:47 +0100)] 
Wibbles to error messages following fix to Outputable.quotes

cf Trac #5509

8 years agoAdd tests for NoTraditionalRecordSyntax
Ian Lynagh [Tue, 27 Sep 2011 12:46:43 +0000 (13:46 +0100)] 
Add tests for NoTraditionalRecordSyntax

8 years agoMake T4437 more thorough, and update it
Ian Lynagh [Mon, 26 Sep 2011 23:08:47 +0000 (00:08 +0100)] 
Make T4437 more thorough, and update it

It now knows about all the differences between the extensions that
GHC knows, and the extensions that Cabal knows.

8 years agoFix decodingerror002 on Windows
Max Bolingbroke [Mon, 26 Sep 2011 13:33:53 +0000 (14:33 +0100)] 
Fix decodingerror002 on Windows

8 years agoAdd test that caused <<loop>> before fix to associated type defaults
Max Bolingbroke [Mon, 26 Sep 2011 09:14:31 +0000 (10:14 +0100)] 
Add test that caused <<loop>> before fix to associated type defaults

8 years agoUpdate test output following change to associated type synonym default kind-checking...
Max Bolingbroke [Mon, 26 Sep 2011 08:32:21 +0000 (09:32 +0100)] 
Update test output following change to associated type synonym default kind-checking time

8 years agoTell python to let us use the "with X:" syntax
Ian Lynagh [Sun, 25 Sep 2011 16:01:24 +0000 (17:01 +0100)] 
Tell python to let us use the "with X:" syntax

This fixes the testsuite driver with python 2.5. Patch from Florian Weimer.

8 years agoFix ghci038 on Windows
Ian Lynagh [Sun, 25 Sep 2011 14:53:12 +0000 (15:53 +0100)] 
Fix ghci038 on Windows

It was failing due to quoting differences between Windows and other
platforms.

8 years agoTest some more Integer constant foldings
Ian Lynagh [Sat, 24 Sep 2011 20:38:44 +0000 (21:38 +0100)] 
Test some more Integer constant foldings

8 years agoDon't use "with lock" syntax in the driver
Ian Lynagh [Sat, 24 Sep 2011 14:54:09 +0000 (15:54 +0100)] 
Don't use "with lock" syntax in the driver

Older versions of python, including that on the Windows nightly builder,
throw "SyntaxError: invalid syntax".

8 years agoAttempt to fix decodingerror002 test for non-UTF8 locales
Max Bolingbroke [Sat, 24 Sep 2011 13:01:06 +0000 (22:01 +0900)] 
Attempt to fix decodingerror002 test for non-UTF8 locales

8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
Simon Peyton Jones [Fri, 23 Sep 2011 14:31:03 +0000 (15:31 +0100)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agoRevert "Remove quotes from echo'd comments in GHCi script"
Simon Peyton Jones [Fri, 23 Sep 2011 14:30:34 +0000 (15:30 +0100)] 
Revert "Remove quotes from echo'd comments in GHCi script"

This reverts commit e82472fd68db55a23f07d395fa8104eb6a1e1cc0.

8 years agoFix #5436 by using 'recover' on handle EOF
Max Bolingbroke [Fri, 23 Sep 2011 07:24:39 +0000 (16:24 +0900)] 
Fix #5436 by using 'recover' on handle EOF

8 years agoRemove quotes from echo'd comments in GHCi script
Simon Peyton Jones [Fri, 23 Sep 2011 06:46:30 +0000 (07:46 +0100)] 
Remove quotes from echo'd comments in GHCi script

This leads to gratuitous Windows/Unix differences
which aren't germane to the test

8 years agobump max_bytes_used for T3294
Simon Marlow [Wed, 21 Sep 2011 08:43:38 +0000 (09:43 +0100)] 
bump max_bytes_used for T3294

8 years agoupdate error messages
Simon Marlow [Wed, 21 Sep 2011 00:04:28 +0000 (01:04 +0100)] 
update error messages

8 years agoadd test for a bug with :force
Simon Marlow [Sat, 17 Sep 2011 12:05:21 +0000 (13:05 +0100)] 
add test for a bug with :force

8 years agoTest cases for GHCi data, class, etc.
Daniel Winograd-Cort [Thu, 25 Aug 2011 16:30:41 +0000 (17:30 +0100)] 
Test cases for GHCi data, class, etc.

Test cases for GHCi data, type, newtype, class, instance,
deriving, etc declarations.

8 years agoMerge branch 'master' of mac:ghc/git/val64/testsuite
Ian Lynagh [Sun, 18 Sep 2011 21:08:27 +0000 (22:08 +0100)] 
Merge branch 'master' of mac:ghc/git/val64/testsuite

8 years agoAdd amd64/OS X specific stats to the T4801 test
Ian Lynagh [Sun, 18 Sep 2011 21:06:49 +0000 (22:06 +0100)] 
Add amd64/OS X specific stats to the T4801 test

The OS X codegen has higher memory requirements than the elf codegen.

8 years agoRejig how performance test stats are stored
Ian Lynagh [Sun, 18 Sep 2011 21:02:20 +0000 (22:02 +0100)] 
Rejig how performance test stats are stored

In particular, this allows more specific results to be specified, e.g.
    if_wordsize(64,                    stats_num_field('foo', 50, 54)),
    if_platform('x86_64-apple-darwin', stats_num_field('foo', 62, 66)),

8 years agoAdd missing file
Ian Lynagh [Sun, 18 Sep 2011 19:38:51 +0000 (20:38 +0100)] 
Add missing file

8 years agoUpdate T4801 bounds
Ian Lynagh [Sat, 17 Sep 2011 22:24:56 +0000 (23:24 +0100)] 
Update T4801 bounds

Integers now take up less space, so space usage has improved in this
Integer-heavy test.

8 years agoT4239 now passes
Ian Lynagh [Sat, 17 Sep 2011 22:20:22 +0000 (23:20 +0100)] 
T4239 now passes

8 years agoAdd a test for Integer literals in interface files
Ian Lynagh [Fri, 16 Sep 2011 19:53:50 +0000 (20:53 +0100)] 
Add a test for Integer literals in interface files

In my dev tree, this currently fails with:

    ghc-stage2: panic! (the 'impossible' happened)
      (GHC version 7.3.20110916 for x86_64-unknown-linux):
            Evaluated the place holder for mkInteger

    Please report this as a GHC bug:  http://www.haskell.org/ghc/reportabug

8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
Simon Peyton Jones [Fri, 16 Sep 2011 15:07:29 +0000 (16:07 +0100)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agoTest Trac #5490
Simon Peyton Jones [Fri, 16 Sep 2011 12:55:20 +0000 (13:55 +0100)] 
Test Trac #5490

8 years agoImproved debugger output
Simon Peyton Jones [Wed, 14 Sep 2011 16:21:57 +0000 (17:21 +0100)] 
Improved debugger output

It turns out that the new treatment of Integer literals
means that the debugger can see an Integer value more often
than before (it's a value not a thunk). That improves the
debugger output; hence all these diffs.

8 years agoAccept error message change
Simon Peyton Jones [Wed, 14 Sep 2011 14:30:58 +0000 (15:30 +0100)] 
Accept error message change

8 years agoTest Trac #5478
Simon Peyton Jones [Wed, 14 Sep 2011 14:30:34 +0000 (15:30 +0100)] 
Test Trac #5478

8 years agoTest Trac #3592
Simon Peyton Jones [Tue, 13 Sep 2011 21:42:02 +0000 (22:42 +0100)] 
Test Trac #3592

8 years agoTweak EvalTest to be less sensitive to whitespace changes
Ian Lynagh [Tue, 13 Sep 2011 20:12:27 +0000 (21:12 +0100)] 
Tweak EvalTest to be less sensitive to whitespace changes

8 years agoFix arith013 following integer-gmp changes
Ian Lynagh [Tue, 13 Sep 2011 20:04:17 +0000 (21:04 +0100)] 
Fix arith013 following integer-gmp changes

8 years agoAdd a test for #3743
Ian Lynagh [Tue, 13 Sep 2011 18:23:23 +0000 (19:23 +0100)] 
Add a test for #3743

8 years agoAdd a test for #3103
Ian Lynagh [Mon, 12 Sep 2011 11:22:10 +0000 (12:22 +0100)] 
Add a test for #3103

8 years agoTest #5481
Max Bolingbroke [Sun, 11 Sep 2011 16:09:55 +0000 (17:09 +0100)] 
Test #5481

8 years agoTest irreducible-evidence self-interactive
Max Bolingbroke [Sat, 10 Sep 2011 13:31:58 +0000 (14:31 +0100)] 
Test irreducible-evidence self-interactive

8 years agoBump T3294 a bit higher again due to high variance
Max Bolingbroke [Fri, 9 Sep 2011 13:25:32 +0000 (14:25 +0100)] 
Bump T3294 a bit higher again due to high variance

8 years agoMerge branch 'no-pred-ty'
Max Bolingbroke [Fri, 9 Sep 2011 12:40:10 +0000 (13:40 +0100)] 
Merge branch 'no-pred-ty'

Conflicts:
tests/safeHaskell/safeLanguage/all.T
tests/safeHaskell/unsafeLibs/all.T
tests/typecheck/should_compile/all.T
tests/typecheck/should_compile/tc250.hs
tests/typecheck/should_compile/tc251.hs

8 years agoTweak tcrun043 to test constraint tuple codegen
Max Bolingbroke [Fri, 9 Sep 2011 12:29:29 +0000 (13:29 +0100)] 
Tweak tcrun043 to test constraint tuple codegen

8 years agoAccept increase in T3294 allocation
Max Bolingbroke [Fri, 9 Sep 2011 12:29:18 +0000 (13:29 +0100)] 
Accept increase in T3294 allocation

8 years agoMerge branch 'master' of http://darcs.haskell.org/testsuite
Simon Peyton Jones [Fri, 9 Sep 2011 09:17:35 +0000 (10:17 +0100)] 
Merge branch 'master' of darcs.haskell.org/testsuite

8 years agoTest associated type defaults
Max Bolingbroke [Tue, 6 Sep 2011 07:41:20 +0000 (08:41 +0100)] 
Test associated type defaults

8 years agoTest Trac #5441
Simon Peyton Jones [Thu, 8 Sep 2011 20:36:42 +0000 (21:36 +0100)] 
Test Trac #5441

8 years agoConstraintKind -> ConstraintKinds
Simon Peyton Jones [Wed, 7 Sep 2011 16:00:24 +0000 (17:00 +0100)] 
ConstraintKind -> ConstraintKinds

8 years agoMake the test nicer, now that associated types
Simon Peyton Jones [Wed, 7 Sep 2011 15:14:06 +0000 (16:14 +0100)] 
Make the test nicer, now that associated types
can mention type variables not in the class