diff options
author | simonmar <unknown> | 2002-07-31 14:24:30 +0000 |
---|---|---|
committer | simonmar <unknown> | 2002-07-31 14:24:30 +0000 |
commit | e5063a042c9a1701ea7273da7bacb530d5c077d3 (patch) | |
tree | 5510d52bb15cfa4f9ade978d5346ed43f30532cf /testsuite/tests/ghc-regress/programs/fast2haskell | |
parent | 0d4aee253319bb09c1181c46d455101feb5d7c18 (diff) | |
download | haskell-e5063a042c9a1701ea7273da7bacb530d5c077d3.tar.gz |
[project @ 2002-07-31 14:24:18 by simonmar]
Revamp the testsuite framework. The previous framework was an
experiment that got a little out of control - a whole new language
with an interpreter written in Haskell was rather heavyweight and left
us with a maintenance problem.
So the new test driver is written in Python. The downside is that you
need Python to run the testsuite, but we don't think that's too big a
problem since it only affects developers and Python installs pretty
easily onto everything these days.
Highlights:
- 790 lines of Python, vs. 5300 lines of Haskell + 720 lines of
<strange made-up language>.
- the framework supports running tests in various "ways", which should
catch more bugs. By default, each test is run in three ways:
normal, -O, and -O -fasm. Additionally, if profiling libraries
have been built, another way (-O -prof -auto-all) is added. I plan
to also add a 'GHCi' way.
Running tests multiple ways has already shown up some new bugs!
- documentation is in the README file and is somewhat improved.
- the framework is rather less GHC-specific, and could without much
difficulty be coaxed into using other compilers. Most of the
GHC-specificness is in a separate configuration file (config/ghc).
Things may need a while to settle down. Expect some unexpected
failures.
Diffstat (limited to 'testsuite/tests/ghc-regress/programs/fast2haskell')
-rw-r--r-- | testsuite/tests/ghc-regress/programs/fast2haskell/test.T | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/testsuite/tests/ghc-regress/programs/fast2haskell/test.T b/testsuite/tests/ghc-regress/programs/fast2haskell/test.T index 7d35942e22..d2c8575d1c 100644 --- a/testsuite/tests/ghc-regress/programs/fast2haskell/test.T +++ b/testsuite/tests/ghc-regress/programs/fast2haskell/test.T @@ -1,9 +1,4 @@ -include ($confdir ++ "/../multimod-test.T") - --- Args to mtr are: extra compile flags --- extra run flags --- expected process return value, if not zero - -test "fast2haskell" { mtr("-fglasgow-exts -package lang", "", "") } +test('fast2haskell', normal, multimod_compile_and_run, \ + ['Main', '-fglasgow-exts -package lang']) |