{"thread":{"id":"50675","subject":"How to see raw output from 'make test'?","startedAt":"2019-03-07T05:36:17Z","lastAt":"2019-03-07T05:59:34Z","messageCount":2,"participants":["Jeffrey Walton","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"370861","messageId":"CAH8yC8nP+bDQZXHbn+GdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ@mail.gmail.com","threadId":"50675","inReplyTo":null,"subject":"How to see raw output from 'make test'?","fromName":"Jeffrey Walton","fromEmail":"noloader@gmail.com","sentAt":"2019-03-07T05:35:58Z","receivedAt":"2019-03-07T05:36:17Z","isPatch":false,"sender":{"key":"noloader@gmail.com","avatar":null},"body":"Hi Everyone,\n\nI built Git 2.2.0 from sources. I added CFLAGS=\"-DNDEBUG -g2 -O1\n-fsantize=undefined'. Then, a 'make test V=1'. The tests don't produce\noutput. For example:\n\n*** t0021-conversion.sh ***\nok 1 - setup\nok 2 - check\nok 3 - expanded_in_repo\nok 4 - filter shell-escaped filenames\nok 5 - required filter should filter data\nok 6 - required filter smudge failure\nok 7 - required filter clean failure\nok 8 - filtering large input to small output should use little memory\nok 9 - filter that does not read is fine\n\nYet when I grep for 'runtime error' I am getting some hits for\nundefined behavior:\n\ngit-2.21.0$ grep -IR 'runtime error'\nt/trash directory.t0021-conversion/err:sha1dc/sha1.c:392:2: runtime\nerror: load of misaligned address 0x000002d7d1d5 for type 'const\nuint32_t', which requires 4 byte alignment\nt/trash directory.t0021-conversion/err:sha1dc/sha1.c:397:2: runtime\nerror: load of misaligned address 0x000002d7d1d5 for type 'const\nuint32_t', which requires 4 byte alignment\nt/trash directory.t0021-conversion/err:sha1dc/sha1.c:402:2: runtime\nerror: load of misaligned address 0x000002d7d1d5 for type 'const\nuint32_t', which requires 4 byte alignment\nt/trash directory.t0021-conversion/err:sha1dc/sha1.c:407:2: runtime\nerror: load of misaligned address 0x000002d7d1d5 for type 'const\nuint32_t', which requires 4 byte alignment\n...\n\nHow do I get the full output from 'make test'?\n\nThanks in advance.\n"},{"id":"370864","messageId":"20190307055931.GA20646@sigill.intra.peff.net","threadId":"50675","inReplyTo":"CAH8yC8nP+bDQZXHbn+GdVsEEMRYzC45pViYOcB2_FpbYK4nmqQ@mail.gmail.com","subject":"Re: How to see raw output from 'make test'?","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2019-03-07T05:59:31Z","receivedAt":"2019-03-07T05:59:34Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Thu, Mar 07, 2019 at 12:35:58AM -0500, Jeffrey Walton wrote:\n\n> I built Git 2.2.0 from sources. I added CFLAGS=\"-DNDEBUG -g2 -O1\n> -fsantize=undefined'. Then, a 'make test V=1'. The tests don't produce\n> output. For example:\n> \n> *** t0021-conversion.sh ***\n> ok 1 - setup\n> [...]\n\nTry:\n\n  make test GIT_TEST_OPTS=-v\n\nOr if you have a specific test that's failing, you can just do:\n\n  make\n  cd t\n  ./t0021-conversion.sh -v -i\n\n(the \"-i\" will stop at the failing test).\n\n-Peff\n"}]}