threads / discuss / 50675

How to see raw output from 'make test'?

Subject: How to see raw output from 'make test'?

## tl;dr

2 messages between Mar 7, 2019 and Mar 7, 2019.

replies: 1people: 2as markdown or json

Jeffrey Walton· Mar 7, 2019, 05:35 UTC · lore
Hi Everyone,

I built Git 2.2.0 from sources. I added CFLAGS="-DNDEBUG -g2 -O1 -fsantize=undefined'. Then, a 'make test V=1'. The tests don't produce output. For example:

*** t0021-conversion.sh *** ok 1 - setup ok 2 - check ok 3 - expanded_in_repo ok 4 - filter shell-escaped filenames ok 5 - required filter should filter data ok 6 - required filter smudge failure ok 7 - required filter clean failure ok 8 - filtering large input to small output should use little memory ok 9 - filter that does not read is fine

Yet when I grep for 'runtime error' I am getting some hits for undefined behavior:

git-2.21.0$ grep -IR 'runtime error' t/trash directory.t0021-conversion/err:sha1dc/sha1.c:392:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:397:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:402:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment t/trash directory.t0021-conversion/err:sha1dc/sha1.c:407:2: runtime error: load of misaligned address 0x000002d7d1d5 for type 'const uint32_t', which requires 4 byte alignment ...

How do I get the full output from 'make test'?
Thanks in advance.
Jeff King· Mar 7, 2019, 05:59 UTC · re: Jeffrey Walton · lore

Re: How to see raw output from 'make test'?

On Thu, Mar 07, 2019 at 12:35:58AM -0500, Jeffrey Walton wrote:
Show 7 quoted lines
> I built Git 2.2.0 from sources. I added CFLAGS="-DNDEBUG -g2 -O1
> -fsantize=undefined'. Then, a 'make test V=1'. The tests don't produce
> output. For example:
> 
> *** t0021-conversion.sh ***
> ok 1 - setup
> [...]
Try:
  make test GIT_TEST_OPTS=-v
Or if you have a specific test that's failing, you can just do:
  make
  cd t
  ./t0021-conversion.sh -v -i
(the "-i" will stop at the failing test).
-Peff

← back to recent threads