summaryrefslogtreecommitdiff
path: root/testsuite/tests/driver/Makefile
Commit message (Collapse)AuthorAgeFilesLines
* Filter instance visibility based on set of visible orphans, fixes #2182.ghc-instvisEdward Z. Yang2014-11-291-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Amazingly, the fix for this very old bug is quite simple: when type-checking, maintain a set of "visible orphan modules" based on the orphans list of modules which we explicitly imported. When we import an instance and it is an orphan, we check if it is in the visible modules set, and if not, ignore it. A little bit of refactoring for when orphan-hood is calculated happens so that we always know if an instance is an orphan or not. For GHCi, we preinitialize the visible modules set based on the list of interactive imports which are active. Future work: Cache the visible orphan modules set for GHCi, rather than recomputing it every type-checking round. (But it's tricky what to do when you /remove/ a module: you need a data structure a little more complicated than just a set of modules.) Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: new tests and validate Reviewers: simonpj, austin Subscribers: thomie, carter Differential Revision: https://phabricator.haskell.org/D488 GHC Trac Issues: #2182
* ghc: allow --show-options and --interactive togetherLennart Kolmodin2014-11-211-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Previously 'ghc --show-options' showed all options that GHC can possibly accept. With this patch, it'll only show the options that have effect in non-interactive modes. This change also adds support for using 'ghc --interactive --show-options' which previously was disallowed. This command will show all options that have effect in the interactive mode. The CmdLineParser is updated to know about the GHC modes, and then each flag is annotated with which mode it has effect. This fixes #9259. Test Plan: Try out --show-options with --interactive on the command line. With and without --interactive should give different results. Run the test suite, mode001 has been updated to verify this new flag combination. Reviewers: austin, jstolarek Reviewed By: austin, jstolarek Subscribers: jstolarek, thomie, carter, simonmar Differential Revision: https://phabricator.haskell.org/D337 GHC Trac Issues: #9259
* Revert "Make -fno-write-interface to all modes of GHC, not just -fno-code."Edward Z. Yang2014-06-271-6/+0
| | | | This reverts commit 05120ecd95b2ebf9b096a95304793cd78be9506e.
* Make -fno-write-interface to all modes of GHC, not just -fno-code.Edward Z. Yang2014-06-271-0/+6
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Add new flag -fwrite-interface for -fno-code.Edward Z. Yang2014-06-261-0/+12
| | | | | | | | | | | | | | | | | | | Summary: Normally, -fno-code does not generate interface files. However, if you want to use it to type check over multiple runs of GHC, you will need the interface files to check source files further down the dependency chain; -fwrite-interface does this for you. Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu> Test Plan: clean validate, and a new test-case Reviewers: simonpj Subscribers: simonmar, relrod, carter Differential Revision: https://phabricator.haskell.org/D27
* Only use UnicodeSytanx pretty printing if the locale supports itJoachim Breitner2014-06-061-0/+4
| | | | using the same check as for unicode quotes.
* Fix #8641, creating directories when we have stubs.Edward Z. Yang2014-04-101-0/+8
| | | | Signed-off-by: Edward Z. Yang <ezyang@cs.stanford.edu>
* Test for -staticlib flagLuke Iannini2013-09-041-0/+4
| | | | Signed-off-by: Austin Seipp <aseipp@pobox.com>
* Add test to check stack is not executable, to prevent #703 regressions.Edward Z. Yang2013-07-091-0/+6
| | | | Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
* Fix some testsuite cleaning; part of #7941Ian Lynagh2013-06-141-1/+1
|
* Fix tests for dynamic ghcIan Lynagh2013-03-151-2/+2
|
* Add a test for #2507; we should get `' quotes if unicode quotes don't workIan Lynagh2013-02-241-0/+4
|
* Add a test for #6037Ian Lynagh2013-02-231-0/+4
|
* Fix shared001Ian Lynagh2013-02-031-1/+2
|
* Rename some tests to not start with a digitIan Lynagh2013-01-251-5/+5
|
* Add a test for #7563Ian Lynagh2013-01-121-0/+5
|
* Follow changes in dependency generationIan Lynagh2012-11-021-3/+3
|
* Add test for #7130Paolo Capriotti2012-08-131-0/+4
|
* Add testcase for #7060Paolo Capriotti2012-07-131-0/+23
|
* Remove duplicated options from a testIan Lynagh2011-11-181-1/+1
|
* Filter -fforce-recomp out of TEST_HC_OPTS in the driver testsIan Lynagh2011-11-181-73/+77
| | | | It would make lots of them trivially pass
* Add a test for T5198Ian Lynagh2011-11-181-0/+8
|
* Define the GHC "compiler_always_flags" in make; fixes trac #5213Ian Lynagh2011-11-171-2/+2
| | | | We now pass the "always" flags to Makefile tests as well as python tests.
* add test for #5584Simon Marlow2011-11-161-0/+6
|
* Move tests from tests/ghc-regress/* to just tests/*David Terei2011-07-201-0/+487