summaryrefslogtreecommitdiff
path: root/testsuite/driver/testglobals.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Simplify, and correct, the code for determining whether we should use threadsIan Lynagh2008-06-121-1/+1
|
* Add if_os, and change derefnull/divbyzero to use itIan Lynagh2008-04-201-0/+1
| | | | | I think different Linux setups generate different output for these tests, so we just ignore the output on Linux now.
* Find compiler version-specific output files automaticallySimon Marlow2008-02-061-0/+1
| | | | | | | | | | | | | | Also, clean up the way we find the output file. From the comment: # Finding the sample output. The filename is of the form # # <test>.stdout[-<compiler>][-<version>][-<wordsize>][-<platform>] # # and we pick the most specific version available. The <version> is # the major version of the compiler (e.g. 6.8.2 would be "6.8"). For # more fine-grained control use if_compiler_lt(). I'll update the wiki too.
* allow extra normalisation to be applied to the output on a per-test basisSimon Marlow2008-01-221-0/+3
|
* Simplify the testsuite driverIan Lynagh2007-12-151-1/+1
| | | | | | | Now instead of saying, e.g. namebase_if_compiler_lt('ghc','6.9', 'foo-6.8') you say if_compiler_lt('ghc','6.9', namebase('foo-6.8'))
* remove the _with_prefix forms of compile_and_run, add cmd_prefix() config ↵Simon Marlow2007-11-221-0/+3
| | | | instead
* Add namebase_if_compiler_lt to the testsuite driverIan Lynagh2007-10-191-0/+4
| | | | | | | | Allows us to use a different name base for foo.stderr for old compilers, e.g. test('tc141', namebase_if_compiler_lt('ghc', '6.9', 'tc141-6.8'), compile_fail, [''])
* Allow files-to-cleanup to be attached to a test using extra_clean(files)Simon Marlow2007-09-131-2/+5
| | | | This is better than a top-level clean() when using threads
* clean up the extra_ways machinerySimon Marlow2007-06-271-0/+4
|
* Allow the "< /dev/null" when running tests to be disabledIan Lynagh2007-06-231-0/+3
| | | | | 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/+3
|
* Allow tests to be skipped based on whether or not the compiler has a tagIan Lynagh2007-04-131-0/+4
| | | | | | 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.
* Calibrate the testsuite timeout if a value of -1 is givenIan Lynagh2007-04-051-0/+3
|
* Time how long is spent on each .T fileIan Lynagh2007-03-311-0/+3
|
* MERGED: Add req_profiling to the driverIan Lynagh2007-03-051-0/+3
|
* Look for .T files in packages tooSimon Marlow2007-02-211-2/+2
| | | | | | | | 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/+2
|
* ignore_output should be a test optionSimon Marlow2007-01-051-0/+3
|
* add support for tests consisting of a C source fileSimon Marlow2006-12-141-0/+3
|
* Allow literate testsIan Lynagh2006-10-131-0/+3
|
* Allow threading to be completely disabled with USETHREADS=0Ian Lynagh2006-08-291-0/+149
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.