<div dir="ltr"><div>Hi Omer,</div><div><br></div><div>If you frequently require this it would be a trivial thing to add, it's a small modification to find_expected_file,</div><div>I can probably find some time next week to do this for you if you want.</div><div><br></div><div>
><br>
> I don't believe there is a way to do this. I would likely make<br>
> test_debug.stdout a symlink to test.stdout. <br></div><div><br></div><div>Please don't, the symlinks won't persist on Windows where we'll end up with file copies instead, which goes horribly wrong once you modify one of them.</div><div><br></div><div>Regards,</div><div>Tamar<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 23, 2019 at 4:44 AM Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com">omeragacan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">These days when I need something like this I just use a make rule, which is not<br>
great as you have to run multiple tests in one make rule and you can't run only<br>
one with the TESTS parameter or skip some of the tests.<br>
<br>
Another problem is I can't have multiple tests that use single source file,<br>
again I have to use a make rule.<br>
<br>
Ömer<br>
<br>
Ben Gamari <<a href="mailto:ben@smart-cactus.org" target="_blank">ben@smart-cactus.org</a>>, 23 Oca 2019 Çar, 02:44 tarihinde şunu yazdı:<br>
><br>
> Ömer Sinan Ağacan <<a href="mailto:omeragacan@gmail.com" target="_blank">omeragacan@gmail.com</a>> writes:<br>
><br>
> > I have a test that I want to run with different compile and runtime parameters.<br>
> > I managed to reuse the source file across different tests by adding a<br>
> > extra_files(['source.hs']) to the tests, but I don't know how to do the same for<br>
> > stdout/stderr files. Any ideas?<br>
> ><br>
> > In more details, I have<br>
> ><br>
> >     test.hs<br>
> >     test.stdout<br>
> ><br>
> > and two tests<br>
> ><br>
> >     test('test',<br>
> >          [extra_run_opts('...')],<br>
> >          compile_and_run,<br>
> >          [])<br>
> ><br>
> >     test('test_debug',<br>
> >          [extra_run_opts('...'),<br>
> >           extra_hc_opts('-debug'),<br>
> >           extra_files(['test.hs'])],<br>
> >          compile_and_run,<br>
> >          [])<br>
> ><br>
> > The first test works fine, but the second test fails because I don't know how to<br>
> > tell it to use test.stdout as the stdout file and it looks for<br>
> > test_debug.stdout.<br>
> ><br>
> This is probably no longer relevant but:<br>
><br>
> I don't believe there is a way to do this. I would likely make<br>
> test_debug.stdout a symlink to test.stdout.<br>
><br>
> Cheers,<br>
><br>
> - Ben<br>
_______________________________________________<br>
ghc-devs mailing list<br>
<a href="mailto:ghc-devs@haskell.org" target="_blank">ghc-devs@haskell.org</a><br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/ghc-devs</a><br>
</blockquote></div></div>