Changes between Version 6 and Version 7 of Building/RunningTests/Running


Ignore:
Timestamp:
Jun 6, 2013 7:13:28 PM (11 months ago)
Author:
dterei
Comment:

Make a little more concise

Legend:

Unmodified
Added
Removed
Modified
  • Building/RunningTests/Running

    v6 v7  
    33This section gives information on how to use the testsuite. 
    44 
    5 Firstly, change from the root of the GHC source tree to: 
    6 {{{ 
    7 $ cd testsuite/tests 
    8 }}} 
    9 This is the root of the actual tests cases in the GHC testsuite. The directories above this one hold the actual testsuite framework for running the tests. All the commands below assume you are in this directory before running them. 
     5The following commands can all be executed simply from the top level directory of the testsuite. 
    106 
    11 To run the testsuite against a GHC build in the same source tree: 
     7To run the full testsuite (slow) against a GHC build in the same source tree: 
    128{{{ 
    139$ make 
    1410}}} 
    15 This is equivalent to running `make fulltest` in the root of the GHC tree as detailed above.  
    1611 
    17 To run a fast version of the testsuite, which should complete in under 10 minutes on a fast machine with an optimised GHC build: 
     12If you have python 2.5.2 or later then you can run the testsuite in parallel to speed it up: 
     13{{{ 
     14$ make THREADS=4 
     15}}} 
     16 
     17To run a reduced (fast) version of the testsuite: 
    1818{{{ 
    1919$ make fast 
     
    3535}}} 
    3636 
    37 To make this even faster, you can also go straight to the subdirectory containing the test (e.g ./typecheck/should_compile/) and say 'make TEST=tc054' from there, which will save some time as the testsuite framework won't need to search as long to find the test you are referring to. 
     37To make this even faster, you can also go straight to the subdirectory containing the test (e.g ./tests/typecheck/should_compile/) and say 'make TEST=tc054' from there, which will save some time as the testsuite framework won't need to search as long to find the test you are referring to. 
    3838 
    3939To run several tests, you just space separate them: 
     
    4444You can also run a whole group of related tests by changing to a subdirectory in the test cases tree: 
    4545{{{ 
    46 $ cd ./array 
     46$ cd ./tests/array 
    4747$ make 
    4848}}} 
     
    6868}}} 
    6969 
    70 If you have python 2.5.2 or later then you can ```run the testsuite in parallel```: 
    71 {{{ 
    72 $ make THREADS=4 
    73 }}} 
    74 This can be a huge time saver these days with the number of cores most people have. 
    75  
    7670== Additional Packages == 
    7771