Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Mirror of testsuite repository. OBSOLETE. DO NOT SUBMIT PULL REQUESTS HERE
Haskell Python C Objective-C Assembly Shell
Failed to load latest commit information.
config Fix the testsuite config to allow running with GHC 7.6
driver Explain skipping compiler-perf tests when debugging is on
tests Add forgotten stderr output for T5498
timeout Handle ^C better when threads are being used too
.gitignore Add tests for new internal GMP primitives
LICENSE Add LICENSE file, along with a copy of the GPLv3.
Makefile Flag to test suite: SKIP_PERF_TESTS

GHC Testsuite Readme

For the full testsuite documentation, please see here.

Quick Guide

Commands to run testsuite:

  • Full testsuite: make
  • Using more threads: make THREADS=12
  • Reduced (fast) testsuite: make fast
  • Run a specific test: make TEST=tc054
  • Test a specific 'way': make WAY=optllvm
  • Test a specifc stage of GHC: make stage=1
  • Skip performance tests: make SKIP_PERF_TESTS=YES
  • Set verbosity: make VERBOSE=n where n=0: No per-test ouput, n=1: Only failures, n=2: Progress output, n=3: Include commands called (default)
  • Pass in extra GHC options: make EXTRA_HC_OPTS=-fvectorize

You can also change directory to a specific test folder to run that individual test or group of tests. For example:

$ cd tests/array
$ make

Testsuite Ways

The testsuite can be run in a variety of 'ways'. This concept refers to different ways that GHC can compile the code. For example, using the native code generator (-fasm) is one way, while using the LLVM code generator (-fllvm) is another way.

The various ways that GHC supports are defined in config/ghc

Adding Tests

Please see the more extensive documentation here.

Something went wrong with that request. Please try again.