Discussion:
make check stderr?
Mike Mestnik
2017-10-26 02:04:42 UTC
Permalink
I have two questions, the first is about stderr output of tests,
sometimes I like to run under strace to see why the test is failing.
I can't seem to find where stderr is being redirected. I thought it
was in [1]tap-driver.sh so I patched it but still no [2]strace output.
I want to do this under make for travis-ci, so the test can run under
a controlled and known environment.

1. https://github.com/cheako/tor2web/blob/33572b2ee888c12f91817f33dd90cfe6bd37622d/.tap-driver.sh#L138
2. https://travis-ci.org/cheako/tor2web/builds/292915873#L1809

The other question I had was about overriding check.am, is there a way
to include a replacement copy of this file in my project to enable
extended support for TAP? I want to have the summery include stats
from TAPs tests and plans.
Ralph Corderoy
2017-10-26 10:59:54 UTC
Permalink
Hi Mike,
I like to run under strace to see why the test is failing. I can't
seem to find where stderr is being redirected. I thought it was in
tap-driver.sh so I patched it but still no strace output.
Have you tried strace(1)'s -o option so its output doesn't appear on
stderr and you don't have to hunt for it?
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
Mike Mestnik
2017-10-26 14:35:12 UTC
Permalink
On Oct 26, 2017 5:59 AM, "Ralph Corderoy" <***@inputplus.co.uk> wrote:

Hi Mike,
I like to run under strace to see why the test is failing. I can't
seem to find where stderr is being redirected. I thought it was in
tap-driver.sh so I patched it but still no strace output.
Have you tried strace(1)'s -o option so its output doesn't appear on
stderr and you don't have to hunt for it?


Where as in what code contains "2>", not where as in what follows that.


--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
Ralph Corderoy
2017-10-26 15:03:17 UTC
Permalink
Post by Ralph Corderoy
Hi Mike,
I like to run under strace to see why the test is failing. I can't
seem to find where stderr is being redirected. I thought it was in
tap-driver.sh so I patched it but still no strace output.
Have you tried strace(1)'s -o option so its output doesn't appear on
stderr and you don't have to hunt for it?
Where as in what code contains "2>", not where as in what follows that.
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
That gives a very incorrect impression of who wrote what.
Is the blame with

X-Content-Filtered-By: Mailman/MimeDel 2.1.21
X-Mailman-Version: 2.1.21

I'm guessing it discarded the text/html alternative and either the
text/plain wasn't great, or it got mangled too. Perhaps the list should
just reject emails with text/html parts.
--
Cheers, Ralph.
https://plus.google.com/+RalphCorderoy
Loading...