From: simonmar Date: Thu, 23 Aug 2001 10:55:37 +0000 (+0000) Subject: [project @ 2001-08-23 10:55:37 by simonmar] X-Git-Tag: Approximately_9120_patches~1103 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=a022fabe26d6d6ebe64a954422a7f10dd3505fd4;p=ghc-hetmet.git [project @ 2001-08-23 10:55:37 by simonmar] Remove no-longer-useful README. All that's left here now is the GHCi tests, which aren't ready to be moved over to the new testsuite yet. --- diff --git a/ghc/tests/README b/ghc/tests/README deleted file mode 100644 index 88975d1..0000000 --- a/ghc/tests/README +++ /dev/null @@ -1,59 +0,0 @@ -------------------------------------------------------------------------------- - GHC COMPILER TESTS -------------------------------------------------------------------------------- - -This directory contains the regression tests for the compiler and the -prelude libraries. Regression tests meaning "correctness", NoFib -deals with "performance". Note that regression tests for other parts -of the ghc system (such as the driver, runtime system, system libs) -belong elsewhere. - -Each test takes the form of a single program (for example, reader001.hs) -and files which specify ghc's expected error output (reader001.stderr). - -"make reader001.runtest" will compile reader001.hs using ghc and compare -the resulting output with that specified in the file reader001.stderr. - -"make all" run all tests. - -If you want to set compilation options globally from the commandline, -use `make EXTRA_HC_OPTS="-foo-option -blah', for global runstdtest options -use EXTRA_RUNTEST_OPTS. - -------------------------------------------------------------------------------- - ADDING A NEW TEST -------------------------------------------------------------------------------- - -To add a new test copy your Haskell program into an appropriately named -file in the appropriate directory (for example, "typecheck/tc093.hs" for -the 93rd typechecker test). - -If the test needs to set the compiler options to something other than -the default for the directory, either modify the SRC_HC_OPTS (applies -to all tests in that directory), or set some extra per-file compiler -options. For example, - - tc093_HC_OPTS = -noC -ddump-tc - --noC tells not bother generating any C (no point in doing that, since -we only want to test the typechecker. NOTE: Currently the driver does -not handle the -noC flag anymore). -ddump-tc tells ghc to dump the -typechecker state. - -Depending on the tests/ subdirectory, a default exit code is -expected from all tests therein, normally 0 (==success). -Per-file options to the runtests script can be set as follows - - tc093_RUNTEST_OPTS = -x 1 - -telling the test script that the compiler is expected to fail -on tc093. - -"touch" the file tc093.stderr. "make tc093.o" will then run -the compiler and fail (because the expected output doesn't match the empty -tc093.stderr). However, it is then easy to update tc093.stderr with the -stuff printed out during "make tc093.o". An alternative is to run -`make' with EXTRA_RUNTEST_OPTS=-accept-output on the new test, and the -runtest script will add the stderr&stdout dump files for you *in the -build tree*. -