Ömer Sinan Ağacan <[email protected]> writes:

> I have a test that I want to run with different compile and runtime 
> parameters.
> I managed to reuse the source file across different tests by adding a
> extra_files(['source.hs']) to the tests, but I don't know how to do the same 
> for
> stdout/stderr files. Any ideas?
>
> In more details, I have
>
>     test.hs
>     test.stdout
>
> and two tests
>
>     test('test',
>          [extra_run_opts('...')],
>          compile_and_run,
>          [])
>
>     test('test_debug',
>          [extra_run_opts('...'),
>           extra_hc_opts('-debug'),
>           extra_files(['test.hs'])],
>          compile_and_run,
>          [])
>
> The first test works fine, but the second test fails because I don't know how 
> to
> tell it to use test.stdout as the stdout file and it looks for
> test_debug.stdout.
>
This is probably no longer relevant but:

I don't believe there is a way to do this. I would likely make
test_debug.stdout a symlink to test.stdout.

Cheers,

- Ben

Attachment: signature.asc
Description: PGP signature

_______________________________________________
ghc-devs mailing list
[email protected]
http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs

Reply via email to