summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Allow files-to-cleanup to be attached to a test using extra_clean(files)Simon Marlow2007-09-131-0/+10
| | | | This is better than a top-level clean() when using threads
* don't try to run hp2ps if the program failed with exit(>127)Simon Marlow2007-09-031-1/+2
|
* Add exit_code_if_platform functions to the testlibIan Lynagh2007-08-031-0/+7
|
* Define and use rawSystem in the testsuite driver and the driver testsIan Lynagh2007-08-021-13/+15
| | | | spawnlp doesn't exist in Windows, so this avoids using it.
* Adding compile_and_run_with_prefix and multimod_compile_and_run_with_prefix ↵andy2007-07-181-6/+18
| | | | as test-fns.
* reqlib now uses subprocess (when it's available)Ian Lynagh2007-07-091-1/+11
| | | | Fixes a problem where /dev/null doesn't exist on mingw.
* Fall back to os.spawnv is we don't have the subprocess moduleIan Lynagh2007-07-071-3/+17
|
* clean up the extra_ways machinerySimon Marlow2007-06-271-1/+4
|
* Use subprocess.call rather than os.spawnv in the testsuite driverIan Lynagh2007-07-061-5/+8
| | | | os.spawnv is broken on non-cygwin Windows (looks like it goes via a shell).
* Allow the "< /dev/null" when running tests to be disabledIan Lynagh2007-06-231-1/+8
| | | | | The user001 test in the unix package can fail when stdin comes from a file.
* add extra_ways, for adding running a test in more waysSimon Marlow2007-06-131-0/+10
|
* Add comments about runCmdsimonpj2007-06-061-0/+11
|
* sed-o in the testsuite driverIan Lynagh2007-05-051-1/+1
|
* Don't dump stderr/stdout before we've split the ghci outputIan Lynagh2007-05-051-7/+7
| | | | Fixes some framework failures.
* Fix commentIan Lynagh2007-05-041-1/+1
|
* Close 2 files that we open so we know that the writes have actually happenedIan Lynagh2007-04-161-0/+2
|
* Allow tests to be skipped based on whether or not the compiler has a tagIan Lynagh2007-04-131-0/+16
| | | | | | When working on a new foo extension, you can now put your tests in the testsuite, set ProjectTags=-foo in mk/build.mk and skip_unless_tag('foo') in the tests.
* Print stdout/stderr when we get a bad resultIan Lynagh2007-04-131-0/+12
|
* Check stderr output before stdout outputIan Lynagh2007-04-011-4/+4
|
* On failure, diff the normalised test outputsIan Lynagh2007-04-011-76/+77
|
* Use unified, rather than context, diffsIan Lynagh2007-03-301-1/+1
|
* MERGED: Add req_profiling to the driverIan Lynagh2007-03-051-0/+4
|
* Windows: the .ps file is <prog>.exe.psSimon Marlow2007-02-281-2/+5
|
* Look for .T files in packages tooSimon Marlow2007-02-211-2/+5
| | | | | | | | This means we can put package-specific tests in the repository for the package, rather than putting them in the testsuite. There should be a .T file to go with the tests, in the same way as for other tests in the testsuite (but this could be in addition to a standalone test driver that works with Cabal's 'setup test').
* Expect tests to fail if we don't have libraries that they useIan Lynagh2007-02-061-0/+9
|
* Don't put double-quotes around the command when passing it to timeoutSimon Marlow2007-02-021-3/+1
| | | | | | | | Fixes the testsuite on Cygwin/MSYS using Cygwin Python. I hope it hasn't broken it using the native Python... if it has, we'll need to revisit. I can't see a good reason for the quotes, anyway.
* Ignore output when told to in the ghci wayIan Lynagh2007-01-311-1/+2
|
* fixes to the ignore-output patchSimon Marlow2007-01-161-12/+8
|
* oops, fix bogosity in "ignore_output should be a test option"Simon Marlow2007-01-081-1/+1
|
* ignore_output should be a test optionSimon Marlow2007-01-051-41/+20
|
* fail -> brokenIan Lynagh2006-12-191-1/+1
|
* fail -> brokenIan Lynagh2006-12-191-0/+7
|
* Add a composes function to the driverIan Lynagh2006-12-151-0/+3
|
* More infrastructure for 'broken'Ian Lynagh2006-12-151-0/+6
|
* add 'broken' variant of expect_broken_if_platformIan Lynagh2006-12-141-0/+7
|
* Start ok 'broken' infrastructureIan Lynagh2006-12-141-0/+6
|
* add support for tests consisting of a C source fileSimon Marlow2006-12-141-1/+6
|
* Check running ghci with -hide-package haskell98 works. Tests trac #1001.Ian Lynagh2006-12-091-1/+1
|
* add tests for heap profiles and hp2psravi2006-09-181-3/+66
|
* removing .tix files before running testsandy2006-10-251-0/+1
|
* Allow literate testsIan Lynagh2006-10-131-3/+13
|
* Allow testsuite to run under MSYS/MinGW using native Python (not Cygwin Python).brianlsmith2006-09-171-9/+13
| | | | | | | | | | | | | This patch is based on a similar one "Enable timeout in Windows and don't require cygwin python" by Esa Ilari Vuokko. It seems like timeout is always built on Windows so I rearranged the logic there to make the code clearer, Esa's patch required the user to uncomment the MinGW-specific logic in order for it to work; this patch does not have the MinGW-specific logic commented out. I tested this on the trunk in Ubuntu 6.06 on i686 (VMWare). I tested this on the trunk and ghc-6.6 branch on Windows i686.
* Catch exceptions while cleaning rather than checking for existence firstIan Lynagh2006-09-101-1/+3
| | | | | As well as being generally a good idea, os.access('foo') seems to return true if foo.exe exists on Windows.
* Add cleaning for .exe filesIan Lynagh2006-09-101-3/+3
|
* add skip_if_platformSimon Marlow2006-08-301-0/+9
|
* Allow threading to be completely disabled with USETHREADS=0Ian Lynagh2006-08-291-181/+42
| | | | | | | I had to pull the global classes and instances out into their own module as there was a catch-22: testlib needed to know if threading was enabled, but we don't know that until we have gone through the argument, but going through the arguments required changing things like config in testlib.
* Clean .hp filesIan Lynagh2006-08-291-1/+1
|
* Driver: Add THREADS-supportEsa Ilari Vuokko2006-08-221-42/+93
|
* Fix driver not to normalise output when using platform specific output filesEsa Ilari Vuokko2006-08-131-9/+13
|
* fix for GHCi tests that raise exceptions or exitSimon Marlow2006-03-201-1/+1
| | | | | | | | | | | | We need to call GHC.TopHandler.runIOFastExit instead of GHC.TopHandler.runIO. Recent fixes to the shutdown code have meant that when a thread invokes shutdownHaskellAndExit(), other main threads get a chance to exit (as they should), but this means that we might have a race between the child thread trying to exit the program and the main thread doing the same. In the case of GHCi, if we're running an interpreted computation that needs to exit (as some tests do), then we really want this child thread to exit the program rather than the main thread.