[m-dev.] Failing tests
Ian MacLarty
maclarty at cs.mu.OZ.AU
Wed Nov 24 14:48:55 AEDT 2004
On 24 Nov 2004, at 14:01, Fergus Henderson wrote:
>
> You would get more information if the Mmakefile ina
> tests/debugger/declarative was better.
>
> Have a look at the rule for creating *.out files in
> tests/Mmake.common:
>
> %.out: %
> { [ -f $*.inp ] && cat $*.inp; } | ./$< > $@ 2>&1 || \
> { grep . $@ /dev/null; exit 1; }
>
>
> Notice the part starting with "||" and continuing on to the next line.
> This displays the contents of the ".out" file if the command to build
> it fails. (It uses "grep . $@ /dev/null" rather than "cat $@" so
> that each line of the output is prefixed by the file name.)
>
> It would be nice to modify the rules in tests/debugger/declarative
> to do the same...
>
Thanks Fergus - that was very helpful. I'll make the change.
Ian.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to: mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions: mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------
More information about the developers
mailing list