Commit 8cb98436 authored by simonmar's avatar simonmar
Browse files

[project @ 2003-07-23 09:54:09 by simonmar]

Add ghci_script, a simple variation on run_command that runs GHCi with
a specified script as input.
parent ecb2cccb
......@@ -360,6 +360,16 @@ def run_command( name, way, cmd ):
def run_command_ignore_output( name, way, cmd ):
return simple_run( name, cmd, '', 1 )
# -----------------------------------------------------------------------------
# GHCi tests
def ghci_script( name, way, script ):
cmd = "'" + config.compiler + "'" + \
' --interactive -v0 ' + \
join(config.compiler_always_flags,' ')
testopts.stdin = script
return simple_run( name, cmd, '', 0 )
# -----------------------------------------------------------------------------
# Compile-only tests
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment