summaryrefslogtreecommitdiff
path: root/testsuite/config
Commit message (Collapse)AuthorAgeFilesLines
* Make GHCi & TH work when the compiler is built with -profSimon Marlow2015-11-071-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Amazingly, there were zero changes to the byte code generator and very few changes to the interpreter - mainly because we've used good abstractions that hide the differences between profiling and non-profiling. So that bit was pleasantly straightforward, but there were a pile of other wibbles to get the whole test suite through. Note that a compiler built with -prof is now like one built with -dynamic, in that to use TH you have to build the code the same way. For dynamic, we automatically enable -dynamic-too when TH is required, but we don't have anything equivalent for profiling, so you have to explicitly use -prof when building code that uses TH with a profiled compiler. For this reason Cabal won't work with TH. We don't expect to ship a profiled compiler, so I think that's OK. Test Plan: validate with GhcProfiled=YES in validate.mk Reviewers: goldfire, bgamari, rwbarton, austin, hvr, erikd, ezyang Reviewed By: ezyang Subscribers: thomie Differential Revision: https://phabricator.haskell.org/D1407 GHC Trac Issues: #4837, #545
* Testsuite Windows: don't use forward slashes in topdir pathThomas Miedema2015-10-201-2/+1
| | | | | | | | | | | | | | Changing backwards slashes to forward slashes apparently confuses msys2/mingw magic path handling. I don't quite understand why, but this fixes it. Test Plan: on Windows, make sure PATH does not contain 'inplace/mingw/bin' (let the testsuite driver add it), then run: make TEST='ghcilink003 ghcilink006'. Before this patch, it would fail. Reviewed by: Phyx, bgamari, austin Differential Revision: https://phabricator.haskell.org/D1343
* Testsuite: delete remaining only_compiler_types(['ghc']) setupsThomas Miedema2015-07-141-1/+0
| | | | | No point in pretending other compilers can use the GHC testsuite. This makes the *.T files a bit shorter.
* Testdriver: don't use os.popen in config/ghcPhil Ruffwind2015-05-281-8/+3
| | | | | | | | | | | | | | | Rewrite config/ghc to use getStdout (which use subprocess.Popen) instead of os.popen, which is deprecated; this also avoids the use of shell Also: * Move getStdout to driver/testutil.py so both config/ghc and driver/runtests.py can use it * Remove support for Python below 2.4, which doesn't have subprocess Reviewed By: thomie Differential Revision: https://phabricator.haskell.org/D908
* testsuite: handle missing stats files gracefully (#10305)Thomas Miedema2015-05-231-0/+1
| | | | | | | | | | | | | The following tests would result in framework failures when using a ghc build with HADDOCK_DOCS=NO in mk/build.mk or mk/validate.mk: * haddock.Cabal * haddock.base * haddock.compiler Test Plan: run make in tests/perf/haddock Differential Revision: https://phabricator.haskell.org/D899
* testdriver: delete unused waysThomas Miedema2015-04-071-11/+5
| | | | | | | | | And mention more prominently that `-DDEBUG` and tests that call `compiler_stats_num_fields` don't play well together Reviewed By: austin Differential Revision: https://phabricator.haskell.org/D799
* Cleanup test framework string formattingThomas Miedema2015-03-111-2/+2
| | | | | | | | | | | | * Use format strings instead of string concatenation. * Wrap `config.compiler`, `config.hpc` etc. in quotes in `mk/test.mk`, so we don't have to in .T scripts and driver/testlib.py. Update hpc submodule (test cleanup) Reviewers: austin Differential Revision: https://phabricator.haskell.org/D718
* Debug test case and test suite wayPeter Wortmann2014-12-161-1/+4
| | | | | | | | | | | | Adds a test way for debug (-g -dannot-lint) as well as a test covering basic source tick functionality. The debug way fails for a number of test cases because of annotation linting: Tracing simplification (e.g. rule firings) will see duplicated output, and sometimes expression matching might take so long that the test case timeouts. We blacklist these tests. (From Phabricator D169)
* Python 3 support, second attempt (Trac #9184)Krzysztof Gogolewski2014-10-191-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | Summary: This is a fixup of https://phabricator.haskell.org/D233 The only difference is in findTFiles (first commit), which previously broke Windows runner; now I translated literally instead attempting to improve it, and checked it works. Test Plan: I used validate under 2,3 on Linux and under 2 on msys2. On Windows I've seen a large number of failures, but they don't seem to be connected with the patch. Reviewers: hvr, simonmar, thomie, austin Reviewed By: austin Subscribers: thomie, carter, ezyang, simonmar Differential Revision: https://phabricator.haskell.org/D310 GHC Trac Issues: #9184
* Revert "Basic Python 3 support for testsuite driver (Trac #9184)"Krzysztof Gogolewski2014-10-031-9/+13
| | | | | | This reverts commit 084d241b316bfa12e41fc34cae993ca276bf0730. This is a possible culprit of Windows breakage reported at ghc-devs.
* Basic Python 3 support for testsuite driver (Trac #9184)Krzysztof Gogolewski2014-10-011-13/+9
| | | | | | | | | | | | | | | | | | | | | | | | Summary: Most of the changes is adaptation of old Python 2 only code. My priority was not breaking Python 2, and so I avoided bigger changes to the driver. In particular, under Python 3 the output is a str and buffering cannot be disabled. To test, define PYTHON=python3 in testsuite/mk/boilerplate.mk. Thanks to aspidites <emarshall85@gmail.com> who provided the initial patch. Test Plan: validate under 2 and 3 Reviewers: hvr, simonmar, thomie, austin Reviewed By: thomie, austin Subscribers: aspidites, thomie, simonmar, ezyang, carter Differential Revision: https://phabricator.haskell.org/D233 GHC Trac Issues: #9184
* testsuite: add list of llvm_waysReid Barton2014-08-091-0/+4
|
* Remove external coreAustin Seipp2014-05-031-6/+1
| | | | Signed-off-by: Austin Seipp <austin@well-typed.com>
* Fix the testsuite config to allow running with GHC 7.6Ian Lynagh2013-04-201-4/+13
|
* Fix a framework error when using a non-dynamic GHCIan Lynagh2013-03-191-0/+1
|
* Fix tests for dynamic ghcIan Lynagh2013-03-151-0/+14
|
* Use .hpc.<testname> for the hpc directoryIan Lynagh2013-01-241-5/+5
| | | | | All tests used to use .hpc, which caused failures when running in parallel.
* Only run dynamicToo001 if we have both vanilla and dynamic librariesIan Lynagh2012-12-141-0/+3
|
* Add if_compiler_debugged to testsuite driverIan Lynagh2012-11-101-0/+2
| | | | arrowfail001 currently fails only when DEBUG is defined.
* Don't enable the "static" way if we don't have vanilla librariesIan Lynagh2012-11-021-1/+1
|
* Testsuite fixes for when we only have dynamic librariesIan Lynagh2012-10-251-0/+3
|
* ghcilink001 is expected to fail when ghci is dynamicIan Lynagh2012-10-121-1/+2
| | | | dynamic ghci can't load .a files
* Use -shared for the prof waysIan Lynagh2012-10-091-11/+11
| | | | | | | I'm not sure whether it makes more sense to make this change, or to change the build system to build -prof -dynamic libraries. But at least this change suffices to make the two match, so the tests don't all fail due to missing libraries.
* Driver: Define have_shared_libs correctlyIan Lynagh2012-10-051-1/+3
|
* Don't use the dyn way if we're dynamic by defaultIan Lynagh2012-10-041-4/+4
| | | | | 'normal' and 'optasm' are using dynamic libs anyway, so no point having another way for it.
* Add a -static way, enabled only if dynlibs are used by defaultIan Lynagh2012-10-031-0/+5
|
* Add bunch of llvm ways for testing purposes.David Terei2012-10-011-3/+20
|
* Fix handling of optllvm wayDavid Terei2012-06-251-1/+1
|
* Add optllvm as allowed way in testsuiteDavid M Peixotto2012-02-161-1/+1
| | | | | | | | | The hooks for the optllvm way were there in the ghc config file, but there was no entry in config.other_ways so that a `make WAY=optllvm` would fail with an "unknown way" error message. This patch simply adds optllvm to the other_ways list.
* add req_smpSimon Marlow2012-02-161-0/+1
|
* Fix debugllvm WAYDavid Terei2011-12-051-1/+1
|
* posix009: omit threaded waysSimon Marlow2011-12-011-1/+1
|
* defined prof_ways, threaded_ways and opt_ways automaticallySimon Marlow2011-11-291-18/+25
| | | | These are handy for using in only_ways() and expect_broken_for()
* Define the GHC "compiler_always_flags" in make; fixes trac #5213Ian Lynagh2011-11-171-1/+1
| | | | We now pass the "always" flags to Makefile tests as well as python tests.
* cleaning of testsuiteDavid Terei2011-11-152-21/+2
|
* only add -fno-ghci-history if GHC >= 7.3Simon Marlow2011-11-071-1/+6
|
* add an unoptimised profiled way ('prof')Simon Marlow2011-11-021-4/+7
|
* profasm does not require the NCG any moreSimon Marlow2011-11-021-3/+2
|
* Driver: define config.libdir for tests to useIan Lynagh2011-10-051-0/+3
| | | | | We also use it internally, which saves us running "ghc --print-libdir" on Windows.
* Don't clean tests that we aren't runningIan Lynagh2011-09-051-0/+1
| | | | | | | | This can make it a lot faster to run a single test. You can run make CLEANUP=1 CLEAN_ONLY=YES to clean everything without running any tests.
* Use -fno-ghci-history when running testsIan Lynagh2011-09-011-1/+1
|
* Formatting fixesDavid Terei2011-08-201-76/+74
|
* Add debugllvm targetDavid Terei2011-08-201-1/+3
|
* Make and use a req_interp helperIan Lynagh2011-07-131-0/+1
| | | | | Tests can now specify that they require the interpreter (i.e. that they use one of ghci, annotations, TH, etc).
* remove optllvm from other_ways (it is already automatically added toSimon Marlow2011-07-061-1/+1
| | | | run_ways, having it in other_ways just causes strange effects)
* test +RTS -G1 for the codeGen/should_run testsSimon Marlow2011-05-241-3/+5
|
* - remove threaded2_qw way, the -qw flag has been a no-op for a whileSimon Marlow2011-05-111-5/+5
| | | | | - add the threaded2_hT way, for testing +RTS -N -hT (#5127) - enable threaded2_hT for concprog002, to test for #5127
* Remove the optc and profc waysIan Lynagh2011-03-291-9/+3
| | | | -fvia-c is now a no-op
* add a 'threaded1_ls' way, like threaded1 but with +RTS -lsSimon Marlow2010-12-101-4/+7
|
* cope if the compiler doesn't tell us the "Global Package DB"Simon Marlow2010-12-031-2/+4
|