summaryrefslogtreecommitdiff
path: root/testsuite/driver/testlib.py
Commit message (Collapse)AuthorAgeFilesLines
...
* add a test for foreign imports in GHCiSimon Marlow2011-10-061-0/+3
|
* Tell python to let us use the "with X:" syntaxIan Lynagh2011-09-251-8/+4
| | | | This fixes the testsuite driver with python 2.5. Patch from Florian Weimer.
* Don't use "with lock" syntax in the driverIan Lynagh2011-09-241-1/+8
| | | | | Older versions of python, including that on the Windows nightly builder, throw "SyntaxError: invalid syntax".
* Rejig how performance test stats are storedIan Lynagh2011-09-181-6/+10
| | | | | | 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)),
* Don't clean tests that we aren't runningIan Lynagh2011-09-051-7/+8
| | | | | | | | 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.
* Improve check-files-written modeIan Lynagh2011-09-041-20/+48
| | | | Also look for files that are written but aren't cleaned
* Improve the check-files-written testsuite driver codeIan Lynagh2011-09-041-17/+23
|
* Check explicitly for writes to ghci_historyIan Lynagh2011-09-011-4/+16
|
* Improve the check-files-written testsuite driver functionalityIan Lynagh2011-09-011-21/+68
|
* Use True/False rather than 1/0 for opts.aloneIan Lynagh2011-08-081-1/+1
|
* Add support for checking whether files are written by more than one testIan Lynagh2011-08-071-9/+122
| | | | | | | | | | | | | | | | | | | | Work in progress, but largely works. Known issues: * only supported when using the timeout program * 'test.strace' files aren't cleaned, as they end up in the root directory rather than the test's directory * Doesn't yet track what the current directory is, so finds several files like "A.o" being written by multiple tests (and conversely, may be missing writes to the same file from different directories) * Lots of tests write to $HOME/.ghc/ghci_history. We should probably be passing ghci a flag to stop this from happening. * Some .strace lines aren't understood yet, causing framework failures * One .strace file can cause muiltiple framework failures, if it contains lots of lines that aren't understood Performance: Threads fast testsuite time fast testsuite time with checks 1 16:36.14 25:16.07 5 5:33.95 8:04.05
* Testcase for objective-c++ compilation (trac #5150)Peter Wortmann2011-08-061-0/+5
|
* Fix a framework failure on Windows when accepting output, and allowSimon Marlow2011-08-031-13/+8
| | | | | accepting output when the output file does not exist (it is now created).
* support globbing in extra_clean([...])Simon Marlow2011-08-031-4/+5
|
* fix a bug in displaying diffs when there is no expected outputSimon Marlow2011-07-201-2/+2
|
* When the output files differ, present the diffs between the *actual*Simon Marlow2011-07-201-4/+10
| | | | | | | output, not the normalised output. The latter may have newlines removed, making the diff unreadable. I broke this recently, but it was only working by accident, now it is working by design (and is commented, to boot).
* Fix a driver problem with older versions of pythonIan Lynagh2011-07-191-1/+3
|
* Fix some (significant!) white spaceIan Lynagh2011-07-141-1/+1
|
* Remove used of python 2.5 featureDavid Terei2011-07-141-12/+15
|
* Make and use a req_interp helperIan Lynagh2011-07-131-0/+4
| | | | | Tests can now specify that they require the interpreter (i.e. that they use one of ghci, annotations, TH, etc).
* Handle missing stderr filesIan Lynagh2011-07-131-3/+10
| | | | Sometimes, "prog 2> err" won't actually create err on Windows.
* Clean .comp.stats filesIan Lynagh2011-07-081-1/+1
|
* Improvements to testsuite to allow more complex testsDavid Terei2011-07-061-55/+103
|
* Fix spurious failure in ghcpkg05 in the nightly buildSimon Marlow2011-06-281-3/+3
|
* Expect 4006 to fail on msysIan Lynagh2011-06-231-0/+12
| | | | | | | In the 65001 codepage, we can't even cat the expected output on msys: $ cat 4006.stdout It works here cat: write error: Permission denied
* Print the reason tests fail in the testsuite summary (#5024)Ian Lynagh2011-06-171-6/+36
|
* When tests return 'fail', return a 'reason' tooIan Lynagh2011-06-171-38/+52
| | | | We don't do anything with the reason yet, but we will shortly...
* Show directories in testsuite summary; partially fixes #5024Ian Lynagh2011-06-151-21/+28
|
* Fix bug in mutlisrc compile not picking up compilation errors.David Terei2011-06-141-1/+3
|
* Add test for new ghc mem* prim opsDavid Terei2011-05-311-9/+24
|
* Tests for trac #5025.Austin Seipp2011-04-031-0/+5
| | | | | Also teach the testsuite how to compile objective-c code with .m as a suffix.
* cope if the compiler doesn't tell us the "Global Package DB"Simon Marlow2010-12-031-10/+12
|
* Add a framework test for the package cache file being modifiedIan Lynagh2010-11-141-1/+17
| | | | Tests shouldn't touch the compiler's package database
* Add 'unless_os' testlib helperIan Lynagh2010-11-101-0/+6
|
* Add a test for #4255: can't use TH with a profiled compilerIan Lynagh2010-09-221-0/+6
|
* Add an if_compiler_profiled helperIan Lynagh2010-09-211-0/+6
| | | | and use it to skip the th, ghci and debugger tests when GHC is profiled.
* when calling ghc-pkg for reqlib(), add --no-user-package-confSimon Marlow2010-09-201-1/+1
|
* Remove some errmsg normalisation (removing paths from filenames)Ian Lynagh2010-08-081-3/+0
| | | | This wasn't needed, but was breaking "data/newtype" in an error message
* Make the dynlib tests work on WindowsIan Lynagh2010-05-031-0/+16
|
* Fix the ffi002 testIan Lynagh2010-04-281-1/+14
|
* Fix running hp2ps in a directory containing spacesIan Lynagh2010-03-041-1/+1
|
* Give more info in the testsuite outputIan Lynagh2010-01-011-1/+4
|
* Check for duplicate test names, and report them as framework failuresIan Lynagh2010-01-011-0/+5
|
* Refactor the cleaning codeIan Lynagh2009-12-191-31/+32
|
* Remove unused clean_o_hi functionIan Lynagh2009-12-191-3/+0
|
* Add clean_cmd to the testsuite, and use it in bug1465Ian Lynagh2009-12-191-0/+17
|
* Remove debugging printIan Lynagh2009-12-191-1/+0
|
* Add pre-command support to the testsuite, and fix annrun01 by using itIan Lynagh2009-12-191-0/+19
|
* Allow tests to behave differently depending on whether the compiler is in-treeIan Lynagh2009-12-181-0/+12
| | | | | And skip testwsdeque if it is not in-tree, as we rely on some headers from the build tree.
* Print out how many tests we have done and the total when we run a testIan Lynagh2009-11-281-1/+1
| | | | | | | This isn't perfect, as it doesn't account for tests that will be skipped in the total. But that's hard to work out, as we might skip a test in only some ways and we currently don't work out which ways to run it until later, so I think this is good enough for now.