# How to see raw output from 'make test'?

2 messages from 2019-03-07 to 2019-03-07. Participants: Jeffrey Walton, Jeff King.
Thread: https://gitlist.dev/t/50675

## Jeffrey Walton, 2019-03-07 05:35

Subject: How to see raw output from 'make test'?
Message-ID: <CAH8yC8nP+bDQZXHbn+GdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ@mail.gmail.com>
URL: https://gitlist.dev/e/CAH8yC8nP%2BbDQZXHbn%2BGdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ%40mail.gmail.com

```
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, 2019-03-07 05:59

Subject: Re: How to see raw output from 'make test'?
Message-ID: <20190307055931.GA20646@sigill.intra.peff.net>
URL: https://gitlist.dev/e/20190307055931.GA20646%40sigill.intra.peff.net
In-Reply-To: <CAH8yC8nP+bDQZXHbn+GdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ@mail.gmail.com>

```
On Thu, Mar 07, 2019 at 12:35:58AM -0500, Jeffrey Walton wrote:

> 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

```
